summaryrefslogtreecommitdiff
path: root/gfx/src/core/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/src/core/shader.h')
-rw-r--r--gfx/src/core/shader.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gfx/src/core/shader.h b/gfx/src/core/shader.h
new file mode 100644
index 0000000..b9f5679
--- /dev/null
+++ b/gfx/src/core/shader.h
@@ -0,0 +1,17 @@
1#pragma once
2
3#include <gfx/core.h>
4
5#include "gl_util.h"
6
7#include <stdbool.h>
8
9typedef struct Shader {
10 GLuint id;
11} Shader;
12
13/// Compile a new shader.
14bool gfx_compile_shader(Shader*, const ShaderDesc*);
15
16/// Destroy the shader.
17void gfx_del_shader(Shader*);