diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
commit | 0c2f902238010903388b7d9a3af00979340eff2c (patch) | |
tree | b718d72d8761769ec4aefbfd74cbb2d695f89741 /src/maths/primitives.c | |
parent | 43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff) |
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'src/maths/primitives.c')
-rw-r--r-- | src/maths/primitives.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/maths/primitives.c b/src/maths/primitives.c index bb8a348..1e1e673 100644 --- a/src/maths/primitives.c +++ b/src/maths/primitives.c @@ -6,11 +6,6 @@ #include "render_types.h" // --- Helpers -#define VERT_3D(arr, pos, norm, uv) \ - { \ - Vertex v = { .static_3d = { .position = pos, .normal = norm, .tex_coords = uv } }; \ - Vertex_darray_push(arr, v); \ - } void push_triangle(u32_darray* arr, u32 i0, u32 i1, u32 i2) { u32_darray_push(arr, i0); @@ -58,15 +53,6 @@ Geometry Geo_CreatePlane(f32x2 extents) { return geo; } -static const Vec3 BACK_BOT_LEFT = (Vec3){ 0, 0, 0 }; -static const Vec3 BACK_BOT_RIGHT = (Vec3){ 1, 0, 0 }; -static const Vec3 BACK_TOP_LEFT = (Vec3){ 0, 1, 0 }; -static const Vec3 BACK_TOP_RIGHT = (Vec3){ 1, 1, 0 }; -static const Vec3 FRONT_BOT_LEFT = (Vec3){ 0, 0, 1 }; -static const Vec3 FRONT_BOT_RIGHT = (Vec3){ 1, 0, 1 }; -static const Vec3 FRONT_TOP_LEFT = (Vec3){ 0, 1, 1 }; -static const Vec3 FRONT_TOP_RIGHT = (Vec3){ 1, 1, 1 }; - Geometry Geo_CreateCuboid(f32x3 extents) { Vertex_darray* vertices = Vertex_darray_new(36); |