summaryrefslogtreecommitdiff
path: root/gfx/gl/uiShader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 16:12:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-12 16:12:01 +0000
commit6c268e0f98722c3253366b639a3a0abe37c8835d (patch)
tree409376e0b302009d29ed27dcb4601f037f377e6f /gfx/gl/uiShader.h
parentMove program handle to its own files (diff)
downloadilt-6c268e0f98722c3253366b639a3a0abe37c8835d.tar.bz2
ilt-6c268e0f98722c3253366b639a3a0abe37c8835d.tar.xz
ilt-6c268e0f98722c3253366b639a3a0abe37c8835d.zip
Introduce the UI shader
Diffstat (limited to 'gfx/gl/uiShader.h')
-rw-r--r--gfx/gl/uiShader.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gfx/gl/uiShader.h b/gfx/gl/uiShader.h
new file mode 100644
index 0000000..ff0e96d
--- /dev/null
+++ b/gfx/gl/uiShader.h
@@ -0,0 +1,18 @@
+#ifndef UISHADER_H
+#define UISHADER_H
+
+#include "programHandle.h"
+#include <cstdint>
+
+class UIShader {
+public:
+ UIShader(std::size_t width, std::size_t height);
+
+private:
+ class UIProgramHandle : public ProgramHandleBase {
+ using ProgramHandleBase::ProgramHandleBase;
+ };
+ UIProgramHandle program;
+};
+
+#endif