diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/geometry.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util/geometry.c b/src/util/geometry.c index afe0109..2ea0c82 100644 --- a/src/util/geometry.c +++ b/src/util/geometry.c | |||
| @@ -17,12 +17,13 @@ static void make_quad_01_positions(vec2 positions[4]) { | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | static GeometryDesc make_quad_desc(vec2 positions[4]) { | 19 | static GeometryDesc make_quad_desc(vec2 positions[4]) { |
| 20 | GeometryDesc desc = (GeometryDesc){0}; | 20 | return (GeometryDesc){ |
| 21 | desc.positions2d.data = positions; | 21 | .positions2d = (BufferView2d){.data = positions, |
| 22 | desc.positions2d.size_bytes = 4 * sizeof(vec2); | 22 | .size_bytes = 4 * sizeof(vec2), |
| 23 | desc.num_verts = 4; | 23 | .count = 4}, |
| 24 | desc.type = TriangleStrip; | 24 | .num_verts = 4, |
| 25 | return desc; | 25 | .type = TriangleStrip |
| 26 | }; | ||
| 26 | } | 27 | } |
| 27 | 28 | ||
| 28 | Geometry* gfx_make_quad_11(GfxCore* gfxcore) { | 29 | Geometry* gfx_make_quad_11(GfxCore* gfxcore) { |
