refactor: rename zoom function

This commit is contained in:
2023-06-07 12:36:31 +02:00
parent 368bc450ce
commit 1cdc738839
3 changed files with 3 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ void Renderer::Resize(int width, int height) {
glViewport(0, 0, width, height);
}
void Renderer::SetZoom(float zoom) {
void Renderer::AddZoom(float zoom) {
m_Camera.CamPos.y = std::max(1.0f, m_Camera.CamPos.y - zoom);
m_Camera.CamDistance = std::max(1.0f, m_Camera.CamDistance - zoom);
SetCamLook(m_Camera.CamLook);