diff options
Diffstat (limited to 'src/shader.h')
| -rw-r--r-- | src/shader.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 <GL/gl.h> #include <cglm/cglm.h> +#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); |