Several rad2deg conversions for glRotate

This commit is contained in:
bart@bartbes.ath.cx
2009-11-30 08:21:48 +01:00
parent 692fd9a890
commit af01b840a1
4 changed files with 79 additions and 79 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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;