aboutsummaryrefslogtreecommitdiff
path: root/src/core/shader_program.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-06-27 10:18:39 -0700
committer3gg <3gg@shellblade.net>2025-06-27 10:18:39 -0700
commitbd57f345ed9dbed1d81683e48199626de2ea9044 (patch)
tree4221f2f2a7ad2244d2e93052bd68187ec91b8ea9 /src/core/shader_program.h
parent9a82ce0083437a4f9f58108b2c23b957d2249ad8 (diff)
Restructure projectHEADmain
Diffstat (limited to 'src/core/shader_program.h')
-rw-r--r--src/core/shader_program.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/shader_program.h b/src/core/shader_program.h
new file mode 100644
index 0000000..1443663
--- /dev/null
+++ b/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
12typedef struct Texture Texture;
13
14typedef 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.
21bool gfx_build_shader_program(ShaderProgram*, const ShaderProgramDesc*);
22
23/// Destroy the shader program.
24void gfx_del_shader_program(ShaderProgram*);