mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Several rad2deg conversions for glRotate
This commit is contained in:
@@ -1086,7 +1086,7 @@ namespace opengl
|
||||
|
||||
void Graphics::rotate(float r)
|
||||
{
|
||||
glRotatef(r, 0, 0, 1);
|
||||
glRotatef(r * 57.29578f, 0, 0, 1);
|
||||
}
|
||||
|
||||
void Graphics::scale(float x, float y)
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace opengl
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(x, y, 0.0f);
|
||||
glRotatef(angle, 0, 0, 1.0f);
|
||||
glRotatef(angle * 57.29578f, 0, 0, 1.0f);
|
||||
glScalef(sx, sy, 1.0f);
|
||||
|
||||
GLuint OpenGLFont = list;
|
||||
|
||||
@@ -397,7 +397,7 @@ namespace opengl
|
||||
glPushAttrib(GL_CURRENT_BIT);
|
||||
|
||||
glTranslatef(x, y, 0);
|
||||
glRotatef(angle, 0, 0, 1.0f);
|
||||
glRotatef(angle * 57.29578f, 0, 0, 1.0f);
|
||||
glScalef(sx, sy, 1.0f);
|
||||
glTranslatef( ox, oy, 0);
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace opengl
|
||||
glPushMatrix();
|
||||
|
||||
glTranslatef(ceil(x), ceil(y), 0.0f);
|
||||
glRotatef(angle, 0, 0, 1.0f);
|
||||
glRotatef(angle * 57.29578f, 0, 0, 1.0f);
|
||||
glScalef(sx, sy, 1.0f);
|
||||
|
||||
GLuint TrueTypeFont = list;
|
||||
|
||||
Reference in New Issue
Block a user