summaryrefslogtreecommitdiff
path: root/gfx/gl/uiShader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 13:01:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 14:40:06 +0000
commit1f68fe78e84f25c8ddacdc37a293a5de31725bab (patch)
tree4537db483391b579387c1bcc00c3f1e3b6adc106 /gfx/gl/uiShader.h
parentAdd glm::vec concatenation operator|| (diff)
downloadilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.tar.bz2
ilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.tar.xz
ilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.zip
First iteration with font/text support
Diffstat (limited to 'gfx/gl/uiShader.h')
-rw-r--r--gfx/gl/uiShader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/uiShader.h b/gfx/gl/uiShader.h
index 45ccc23..502ba13 100644
--- a/gfx/gl/uiShader.h
+++ b/gfx/gl/uiShader.h
@@ -4,17 +4,19 @@
#include "programHandle.h"
#include <GL/glew.h>
#include <cstddef>
+#include <glm/glm.hpp>
class UIShader {
public:
UIShader(std::size_t width, std::size_t height);
- void use() const;
+ void useDefault() const;
+ void useText(glm::vec3) const;
private:
class UIProgramHandle : public ProgramHandleBase {
using ProgramHandleBase::ProgramHandleBase;
};
- UIProgramHandle program;
+ UIProgramHandle progDefault, progText;
};
#endif