diff options
author | 3gg <3gg@shellblade.net> | 2024-03-15 21:44:15 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-03-15 21:44:15 -0700 |
commit | b55bc7d6620f069f576cbabaf47c571ee2e545b9 (patch) | |
tree | 7bfe8699757cca747cea2769178ec8f9a31688cb /gfx/src/core/shader_program.h | |
parent | 88ab79e436aec6ede0fca4949570f534ffb1b853 (diff) |
Rename render -> core.
Diffstat (limited to 'gfx/src/core/shader_program.h')
-rw-r--r-- | gfx/src/core/shader_program.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gfx/src/core/shader_program.h b/gfx/src/core/shader_program.h new file mode 100644 index 0000000..1443663 --- /dev/null +++ b/gfx/src/core/shader_program.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <gfx/core.h> | ||
4 | #include <gfx/sizes.h> | ||
5 | |||
6 | #include "gl_util.h" | ||
7 | |||
8 | #include <math/fwd.h> | ||
9 | |||
10 | #include <stdbool.h> | ||
11 | |||
12 | typedef struct Texture Texture; | ||
13 | |||
14 | typedef struct ShaderProgram { | ||
15 | GLuint id; | ||
16 | ShaderUniform uniforms[GFX_MAX_UNIFORMS_PER_SHADER]; | ||
17 | int num_uniforms; | ||
18 | } ShaderProgram; | ||
19 | |||
20 | /// Create a new shader program. | ||
21 | bool gfx_build_shader_program(ShaderProgram*, const ShaderProgramDesc*); | ||
22 | |||
23 | /// Destroy the shader program. | ||
24 | void gfx_del_shader_program(ShaderProgram*); | ||