From 35dc4c496075df44efeba617e6283b6425dcc133 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Sun, 25 Jun 2023 11:13:48 +0200 Subject: initial commit --- chisel/backends/opengl/program.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 chisel/backends/opengl/program.h (limited to 'chisel/backends/opengl/program.h') 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 + +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 -- cgit v1.2.3