Skip to content

Commit 522cf81

Browse files
committed
Sprite rotation
1 parent 01407ba commit 522cf81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Graphics/Sprite.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ namespace Monocle
8585
Graphics::PushMatrix();
8686

8787
Graphics::Translate(position.x, position.y, 0.0f);
88+
Graphics::Rotate(rotation, 0, 0, 1);
8889
Graphics::BindTexture(texture);
8990
Graphics::SetBlend(blend);
9091

@@ -114,7 +115,6 @@ namespace Monocle
114115
{
115116
Graphics::PushMatrix();
116117
Graphics::Translate(position.x, position.y, 0.0f);
117-
Graphics::Rotate(rotation, 0, 0, 0);
118118

119119
if (Debug::selectedEntity == entity)
120120
Graphics::SetColor(Color::orange);

0 commit comments

Comments
 (0)