summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl/backend_opengl.h
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-07 12:10:53 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-07 12:10:53 +1000
commit4976c723a7add3a1409eb529d088868a2c568fbb (patch)
tree1ca0f1fb33cb97d79722cae5b5571653b9e1689b /src/renderer/backends/opengl/backend_opengl.h
parentf553d66891e6f77b0fa78c279f51a44d1c51ff9f (diff)
add vertex/index buffer binding in opengl
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.h')
-rw-r--r--src/renderer/backends/opengl/backend_opengl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h
index 784c061..0ce765a 100644
--- a/src/renderer/backends/opengl/backend_opengl.h
+++ b/src/renderer/backends/opengl/backend_opengl.h
@@ -9,21 +9,23 @@ typedef struct gpu_swapchain {
u32x2 dimensions;
} gpu_swapchain;
typedef struct gpu_device {} gpu_device;
-typedef struct gpu_pipeline_layout {} gpu_pipeline_layout;
+typedef struct gpu_pipeline_layout { void* pad } gpu_pipeline_layout;
typedef struct gpu_pipeline {
u32 shader_id;
+ u32 pad;
} gpu_pipeline;
-typedef struct gpu_renderpass {} gpu_renderpass;
-typedef struct gpu_cmd_encoder {} gpu_cmd_encoder; // Recording
-typedef struct gpu_cmd_buffer {} gpu_cmd_buffer; // Ready for submission
+typedef struct gpu_renderpass { void* pad } gpu_renderpass;
+typedef struct gpu_cmd_encoder { void* pad } gpu_cmd_encoder; // Recording
+typedef struct gpu_cmd_buffer { void* pad } gpu_cmd_buffer; // Ready for submission
typedef struct gpu_buffer {
union {
u32 vbo;
u32 ibo;
} id;
+ u32 pad;
} gpu_buffer;
-typedef struct gpu_texture {} gpu_texture;
+typedef struct gpu_texture { void* pad } gpu_texture;
u32 shader_create_separate(const char *vert_shader, const char *frag_shader);
@@ -32,4 +34,4 @@ void uniform_vec3f(u32 program_id, const char *uniform_name, vec3 *value);
void uniform_f32(u32 program_id, const char *uniform_name, f32 value);
void uniform_i32(u32 program_id, const char *uniform_name, i32 value);
void uniform_mat4f(u32 program_id, const char *uniform_name, mat4 *value);
-#endif \ No newline at end of file
+#endif