From ba770a85b2b0ff9222e2867689c693ebee841e55 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 18 Nov 2022 20:39:54 +0000 Subject: Rename rdiv to ratio and add a vec2 override --- ui/sceneRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/sceneRenderer.cpp') 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 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); -- cgit v1.2.3