summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-09 01:57:27 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-09 01:57:27 +0000
commitd771fbda2c171cfbc36cc0eb3122c1a02ffbb081 (patch)
tree69d2879e41da2b79264b6c3b8500b5d18383ae85 /gfx/gl/sceneShader.cpp
parentWIP typedefing all the things - sources (diff)
downloadilt-d771fbda2c171cfbc36cc0eb3122c1a02ffbb081.tar.bz2
ilt-d771fbda2c171cfbc36cc0eb3122c1a02ffbb081.tar.xz
ilt-d771fbda2c171cfbc36cc0eb3122c1a02ffbb081.zip
WIP typedefing just about everything else
Diffstat (limited to 'gfx/gl/sceneShader.cpp')
-rw-r--r--gfx/gl/sceneShader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index 04b6d9e..2dc2e70 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -35,7 +35,7 @@ SceneShader::setViewProjection(const glm::mat4 & viewProjection) const
}
void
-SceneShader::setViewPort(const glm::ivec4 & viewPort) const
+SceneShader::setViewPort(const ViewPort & viewPort) const
{
for (const auto & prog : std::array<const SceneProgram *, 7> {
&basic, &basicInst, &water, &landmass, &absolute, &pointLight, &spotLight}) {
@@ -51,7 +51,7 @@ SceneShader::SceneProgram::setViewProjection(const glm::mat4 & viewProjection) c
}
void
-SceneShader::SceneProgram::setViewPort(const glm::ivec4 & viewPort) const
+SceneShader::SceneProgram::setViewPort(const ViewPort & viewPort) const
{
if (viewPortLoc >= 0) {
glUseProgram(*this);