diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-09 01:57:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-09 01:57:27 +0000 |
commit | d771fbda2c171cfbc36cc0eb3122c1a02ffbb081 (patch) | |
tree | 69d2879e41da2b79264b6c3b8500b5d18383ae85 /gfx/gl/sceneShader.cpp | |
parent | WIP typedefing all the things - sources (diff) | |
download | ilt-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.cpp | 4 |
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); |