summaryrefslogtreecommitdiff
path: root/chisel/backends/opengl/shader.h
diff options
context:
space:
mode:
authorAlejandro W. Sior <aho@sior.be>2023-06-25 11:13:48 +0200
committerAlejandro W. Sior <aho@sior.be>2023-06-25 11:13:48 +0200
commit35dc4c496075df44efeba617e6283b6425dcc133 (patch)
tree87ba1f51d8e21b4fde08b4eb1eb9a710781b1c4f /chisel/backends/opengl/shader.h
initial commitHEADmaster
Diffstat (limited to 'chisel/backends/opengl/shader.h')
-rw-r--r--chisel/backends/opengl/shader.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chisel/backends/opengl/shader.h b/chisel/backends/opengl/shader.h
new file mode 100644
index 0000000..9db33e7
--- /dev/null
+++ b/chisel/backends/opengl/shader.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <string>
+#include <glad/glad.h>
+
+namespace gfx {
+ class Shader {
+ GLuint _shader_id;
+
+ public:
+ Shader(const std::string& text, int type);
+ Shader(const Shader&& other) = delete;
+ Shader(Shader&& other);
+ ~Shader();
+
+ GLuint shader_id();
+ };
+} \ No newline at end of file