From b56c621bf7c8689ba4b5d9fd64a6d69387f705df Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 4 Dec 2025 14:55:24 -0500 Subject: add ubos --- src/shader.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/shader.h') diff --git a/src/shader.h b/src/shader.h index 931dd33..e6f794e 100644 --- a/src/shader.h +++ b/src/shader.h @@ -3,6 +3,8 @@ #include #include +#include "mesh.h" + typedef struct { GLuint program_id; GLuint vertex_id; @@ -16,7 +18,8 @@ void shader_unbind(void); void shader_free(Shader *shader); GLint shader_uniform_location(Shader *shader, const char *name); -void shader_loadf(GLint location, float value); -void shader_loadi(GLint location, int value); -void shader_loadv3f(GLint location, vec3 value); -void shader_loadm4f(GLint location, mat4 value); +void shader_load_float(GLint location, float value); +void shader_load_int(GLint location, int value); +void shader_load_vec3(GLint location, vec3 value); +void shader_load_mat4(GLint location, mat4 value); +void shader_load_ubo(GLint location, GLuint index, Uniform *uniform); -- cgit v1.2.3-freya