diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-02 23:22:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-02 23:22:12 +0100 |
commit | 2245fc8a3bb521afc2e6dd575cd1757ecab23558 (patch) | |
tree | c4565e14b2e9b01c970b3ee5816f6ec849b61e92 /gfx/gl/uiShader.cpp | |
parent | Merge remote-tracking branch 'origin/ptrs' (diff) | |
parent | Remove the old unused network.png icon (diff) | |
download | ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.bz2 ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.xz ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.zip |
Diffstat (limited to 'gfx/gl/uiShader.cpp')
-rw-r--r-- | gfx/gl/uiShader.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gfx/gl/uiShader.cpp b/gfx/gl/uiShader.cpp deleted file mode 100644 index 23da9dc..0000000 --- a/gfx/gl/uiShader.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "uiShader.h" -#include "gl_traits.h" -#include <gfx/gl/program.h> -#include <gfx/gl/shader.h> -#include <gfx/gl/shaders/fs-uiShader.h> -#include <gfx/gl/shaders/fs-uiShaderFont.h> -#include <gfx/gl/shaders/vs-uiShader.h> -#include <glm/glm.hpp> -#include <glm/gtc/type_ptr.hpp> - -UIShader::IconProgram::IconProgram(const glm::mat4 & vp) : UIProgram {vp, uiShader_vs, uiShader_fs} { } - -UIShader::TextProgram::TextProgram(const glm::mat4 & vp) : UIProgram {vp, uiShader_vs, uiShaderFont_fs} { } - -UIShader::UIShader(size_t width, size_t height) : - UIShader {glm::ortho<float>(0, static_cast<float>(width), 0, static_cast<float>(height))} -{ -} - -UIShader::UIShader(const glm::mat4 & viewProjection) : icon {viewProjection}, text {viewProjection} { } - -void -UIShader::TextProgram::use(const RGB & colour) const -{ - Program::use(); - glUniform(colorLoc, colour); -} |