Browse Source

Rename camera projection view function name

master
Riyyi 3 years ago
parent
commit
bb2b1ed38f
  1. 2
      inferno/src/inferno/scene/scene.cpp
  2. 2
      inferno/src/inferno/systems/camera.cpp
  3. 2
      inferno/src/inferno/systems/camera.h

2
inferno/src/inferno/scene/scene.cpp

@ -105,7 +105,7 @@ namespace Inferno {
glm::mat4 Scene::cameraProjectionView()
{
return CameraSystem::the().cameraProjectionView();
return CameraSystem::the().projectionView();
}
}

2
inferno/src/inferno/systems/camera.cpp

@ -43,7 +43,7 @@ namespace Inferno {
s_instance = nullptr;
}
glm::mat4 CameraSystem::cameraProjectionView()
glm::mat4 CameraSystem::projectionView()
{
auto orthoView = m_registry->view<TransformComponent, OrthographicCameraComponment>();

2
inferno/src/inferno/systems/camera.h

@ -24,7 +24,7 @@ namespace Inferno {
void update();
void destroy();
glm::mat4 cameraProjectionView();
glm::mat4 projectionView();
void setRegistry(const std::shared_ptr<entt::registry>& registry) { m_registry = registry; };

Loading…
Cancel
Save