Skip to content

Commit 3e7cb86

Browse files
committed
Applied naming and default value cleanups
1 parent aa151bd commit 3e7cb86

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

engine/render/renderer/renderer/Renderer2D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Renderer2D
2626
Renderer2D() = default;
2727
void Initialise(const char* const globalDataName);
2828
void DrawQuad(const Vec2 position,
29-
const Vec2 scale = Vec2::Zero,
29+
const Vec2 scale = Vec2::One,
3030
const IColour colour = IColour::White,
3131
float rotation = 0.f,
3232
const uint8_t zIndex = 0,

examples/render/src/Camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void Camera::UpdatePerspectiveProjection(const float& fovy,
2020
projectionMatrix = Siege::Graphics::Perspective(fovy, aspect, near, far);
2121
}
2222

23-
void Camera::UpdateOthrographicProjection(const float& left,
23+
void Camera::UpdateOrthographicProjection(const float& left,
2424
const float& right,
2525
const float& top,
2626
const float& bottom,

examples/render/src/Camera.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Camera
2525
const float& near,
2626
const float& far);
2727

28-
void UpdateOthrographicProjection(const float& left,
28+
void UpdateOrthographicProjection(const float& left,
2929
const float& right,
3030
const float& top,
3131
const float& bottom,

examples/render/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int main()
158158
camera.UpdatePerspectiveProjection(Siege::Float::Radians(50.f), aspect, 0.1f, 100.f);
159159

160160
camera2
161-
.UpdateOthrographicProjection(0, window.GetWidth(), 0, window.GetHeight(), 0.1f, 100.f);
161+
.UpdateOrthographicProjection(0, window.GetWidth(), 0, window.GetHeight(), 0.1f, 100.f);
162162

163163
if (inputEnabled)
164164
{

0 commit comments

Comments
 (0)