aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/program.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 18:05:18 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-12 18:05:18 +1100
commit1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (patch)
tree222dfcd07a1e40716127a347bbfd7119ce3d0984 /src/client/render/program.hh
initial commit
Diffstat (limited to 'src/client/render/program.hh')
-rw-r--r--src/client/render/program.hh29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/render/program.hh b/src/client/render/program.hh
new file mode 100644
index 0000000..10ae19c
--- /dev/null
+++ b/src/client/render/program.hh
@@ -0,0 +1,29 @@
+#ifndef CLIENT_RENDER_PROGRAM_HH_
+#define CLIENT_RENDER_PROGRAM_HH_
+
+#include <stdexcept>
+#include <string_view>
+
+#include <epoxy/glx.h>
+
+#include "shared/shared.hh"
+
+namespace client {
+namespace render {
+
+class program {
+private:
+ GLuint index;
+
+public:
+ program(const std::string_view vpath, const std::string_view fpath);
+ program(const program&) = delete;
+ program(program&&) = delete;
+
+ operator unsigned int() const noexcept { return this->index; };
+};
+
+} // namespace render
+} // namespace client
+
+#endif