summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-18 20:39:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-18 20:39:54 +0000
commitba770a85b2b0ff9222e2867689c693ebee841e55 (patch)
tree179908c62b1ca5d18c9d7c33a3aa641002b479e8 /ui
parentSimplified texture save (diff)
downloadilt-ba770a85b2b0ff9222e2867689c693ebee841e55.tar.bz2
ilt-ba770a85b2b0ff9222e2867689c693ebee841e55.tar.xz
ilt-ba770a85b2b0ff9222e2867689c693ebee841e55.zip
Rename rdiv to ratio and add a vec2 override
Diffstat (limited to 'ui')
-rw-r--r--ui/sceneRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/sceneRenderer.cpp b/ui/sceneRenderer.cpp
index 852f64c..6986fb6 100644
--- a/ui/sceneRenderer.cpp
+++ b/ui/sceneRenderer.cpp
@@ -12,7 +12,7 @@ static constexpr std::array<glm::vec4, 4> displayVAOdata {{
{1.0f, -1.0f, 1.0f, 0.0f},
}};
SceneRenderer::SceneRenderer(glm::ivec2 size, GLuint o) :
- camera {{-1250.0F, -1250.0F, 35.0F}, quarter_pi, rdiv(size.x, size.y), 0.1F, 10000.0F}, output {o},
+ camera {{-1250.0F, -1250.0F, 35.0F}, quarter_pi, ratio(size), 0.1F, 10000.0F}, output {o},
lighting {lightingShader_vs, lightingShader_fs}
{
glBindVertexArray(displayVAO);