![[Next]](buttons/ArrowRightOff.gif)
C Specification
void glRotated(
GLdouble angle,
GLdouble x,
GLdouble y,
GLdouble z)
void glRotatef(
GLfloat angle,
GLfloat x,
GLfloat y,
GLfloat z)
Parameters
Description
xx
(1 c) + c |
xy
(1 c)
zs |
xz
(1 c) +
ys |
0 |
yx
(1 c) +
zs |
yy
(1 c) + c |
yz
(1 c)
xs |
0 |
zx
(1 c)
ys |
zy
(1 c) +
xs |
zz
(1 c) + c |
0 |
| 0 | 0 | 0 | 1 |
Where
If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glRotate is called are rotated. Use glPushMatrix and glPopMatrix to save and restore the unrotated coordinate system.
Notes
Errors
Associated Gets
See Also