diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-12-11 10:49:50 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-12-11 10:51:40 -0500 |
| commit | fa8fa6784559ed0fc8d780e36880273f77e272c4 (patch) | |
| tree | 7456a4e9148d47e409ba837bafdc6238b6c757db /src/shader.h | |
| parent | add ubos (diff) | |
| download | voxel-fa8fa6784559ed0fc8d780e36880273f77e272c4.tar.gz voxel-fa8fa6784559ed0fc8d780e36880273f77e272c4.tar.bz2 voxel-fa8fa6784559ed0fc8d780e36880273f77e272c4.zip | |
i did a lot
Diffstat (limited to 'src/shader.h')
| -rw-r--r-- | src/shader.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/shader.h b/src/shader.h deleted file mode 100644 index e6f794e..0000000 --- a/src/shader.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#include <GL/gl.h> -#include <cglm/cglm.h> - -#include "mesh.h" - -typedef struct { - GLuint program_id; - GLuint vertex_id; - GLuint fragment_id; - int attributes; -} Shader; - -Shader *shader_init(const char *vertexFile, const char *fragmentFile); -void shader_bind(Shader *shader); -void shader_unbind(void); -void shader_free(Shader *shader); - -GLint shader_uniform_location(Shader *shader, const char *name); -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); |