diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-01 13:01:08 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-01 14:40:06 +0000 |
commit | 1f68fe78e84f25c8ddacdc37a293a5de31725bab (patch) | |
tree | 4537db483391b579387c1bcc00c3f1e3b6adc106 /gfx/gl/uiShader.h | |
parent | Add glm::vec concatenation operator|| (diff) | |
download | ilt-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.h | 6 |
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 |