summaryrefslogtreecommitdiff
path: root/src/renderer/archive
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-30 22:19:07 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-30 22:19:07 +1000
commit59854f60b761d77cee4095c9ce45062c926dea5a (patch)
tree383d9a232e2ddf7341acbf1a96a8f45b96331219 /src/renderer/archive
parentbaf787b9eb742b0c52ecf8c9ae319dbfb4ea0f1b (diff)
wip
Diffstat (limited to 'src/renderer/archive')
-rw-r--r--src/renderer/archive/render_backend.h2
-rw-r--r--src/renderer/archive/render_types.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/renderer/archive/render_backend.h b/src/renderer/archive/render_backend.h
index da30bcc..6df9c81 100644
--- a/src/renderer/archive/render_backend.h
+++ b/src/renderer/archive/render_backend.h
@@ -22,7 +22,7 @@ void clear_screen(vec3 colour);
void texture_data_upload(texture* tex);
void bind_texture(shader s, texture* tex, u32 slot);
void bind_mesh_vertex_buffer(void* backend, mesh* mesh);
-void draw_primitives(cel_primitive_topology primitive, u32 start_index, u32 count);
+// void draw_primitives(cel_primitive_topology primitive, u32 start_index, u32 count);
shader shader_create_separate(const char* vert_shader, const char* frag_shader);
void set_shader(shader s);
diff --git a/src/renderer/archive/render_types.h b/src/renderer/archive/render_types.h
index f5ea986..5ee3316 100644
--- a/src/renderer/archive/render_types.h
+++ b/src/renderer/archive/render_types.h
@@ -147,10 +147,10 @@ typedef struct mesh {
u32 vbo, vao; /** OpenGL data. TODO: dont leak OpenGL details */
} mesh;
-// #ifndef TYPED_MESH_ARRAY
-// KITC_DECL_TYPED_ARRAY(mesh) // creates "mesh_darray"
-// #define TYPED_MESH_ARRAY
-// #endif
+#ifndef TYPED_MESH_ARRAY
+KITC_DECL_TYPED_ARRAY(mesh) // creates "mesh_darray"
+#define TYPED_MESH_ARRAY
+#endif
typedef struct model {
str8 name;