1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

[refactor] represent colors with arrays

This commit is contained in:
Emil Ernerfeldt
2020-09-02 22:04:10 +02:00
parent 9823e4d63c
commit dc40a5d31d
4 changed files with 162 additions and 176 deletions

View File

@@ -234,7 +234,7 @@ impl Painter {
.iter()
.map(|v| Vertex {
a_pos: [v.pos.x, v.pos.y],
a_srgba: [v.color.r, v.color.g, v.color.b, v.color.a],
a_srgba: v.color.0,
a_tc: [v.uv.0, v.uv.1],
})
.collect();