diff options
Diffstat (limited to 'chisel/backends/opengl/program.h')
| -rw-r--r-- | chisel/backends/opengl/program.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chisel/backends/opengl/program.h b/chisel/backends/opengl/program.h new file mode 100644 index 0000000..27b131a --- /dev/null +++ b/chisel/backends/opengl/program.h @@ -0,0 +1,22 @@ +#pragma once + +#include "shader.h" + +#include <glad/glad.h> + +namespace gfx { + class Program { + GLuint _program_id; + + public: + Program(); + Program(const Program&& other) = delete; + Program(Program&& other); + ~Program(); + void attach(Shader& shader); + void link(); + void use(); + + GLuint program_id(); + }; +}
\ No newline at end of file |
