summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/camera.cpp2
-rw-r--r--gfx/gl/camera.h2
-rw-r--r--gfx/gl/sceneRenderer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp
index c751ba8..7438739 100644
--- a/gfx/gl/camera.cpp
+++ b/gfx/gl/camera.cpp
@@ -9,7 +9,7 @@ Camera::Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar)
}
glm::mat4
-Camera::GetViewProjection() const
+Camera::getViewProjection() const
{
return projection * glm::lookAt(pos, pos + forward, up);
}
diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h
index b4dd0d5..e22d23f 100644
--- a/gfx/gl/camera.h
+++ b/gfx/gl/camera.h
@@ -7,7 +7,7 @@ class Camera {
public:
Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar);
- [[nodiscard]] glm::mat4 GetViewProjection() const;
+ [[nodiscard]] glm::mat4 getViewProjection() const;
[[nodiscard]] Ray unProject(const glm::vec2 &) const;
glm::vec3 pos;
diff --git a/gfx/gl/sceneRenderer.cpp b/gfx/gl/sceneRenderer.cpp
index ecf83a0..b3f2c47 100644
--- a/gfx/gl/sceneRenderer.cpp
+++ b/gfx/gl/sceneRenderer.cpp
@@ -55,7 +55,7 @@ SceneRenderer::SceneRenderer(glm::ivec2 s, GLuint o) :
void
SceneRenderer::render(const SceneProvider & scene) const
{
- shader.setViewProjection(camera.GetViewProjection());
+ shader.setViewProjection(camera.getViewProjection());
glViewport(0, 0, size.x, size.y);
// Geometry pass