summaryrefslogtreecommitdiff
path: root/gfx/gl/uiShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 18:35:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 18:35:40 +0000
commit81f340d7fa7360c3f01c0c3c06e759e76ede9933 (patch)
treed1264071cd86258d8282424306080ddbb60d122a /gfx/gl/uiShader.cpp
parentSimpler testing rule (diff)
downloadilt-81f340d7fa7360c3f01c0c3c06e759e76ede9933.tar.bz2
ilt-81f340d7fa7360c3f01c0c3c06e759e76ede9933.tar.xz
ilt-81f340d7fa7360c3f01c0c3c06e759e76ede9933.zip
Need a way to select the UI shader
Diffstat (limited to 'gfx/gl/uiShader.cpp')
-rw-r--r--gfx/gl/uiShader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gfx/gl/uiShader.cpp b/gfx/gl/uiShader.cpp
index b3fee14..1c2a0e1 100644
--- a/gfx/gl/uiShader.cpp
+++ b/gfx/gl/uiShader.cpp
@@ -14,3 +14,8 @@ UIShader::UIShader(size_t width, size_t height) : program {uiShader_vs.compile()
glUniformMatrix4fv(loc, 1, GL_FALSE, glm::value_ptr(uiProjection));
}
}
+void
+UIShader::use() const
+{
+ glUseProgram(program.m_program);
+}