diff options
| author | Alejandro W. Sior <aho@sior.be> | 2023-06-25 11:13:48 +0200 |
|---|---|---|
| committer | Alejandro W. Sior <aho@sior.be> | 2023-06-25 11:13:48 +0200 |
| commit | 35dc4c496075df44efeba617e6283b6425dcc133 (patch) | |
| tree | 87ba1f51d8e21b4fde08b4eb1eb9a710781b1c4f /chisel/backends/opengl/program.h | |
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 |
