# glRotatef()

**URL:** <https://community.khronos.org/t/glrotatef/14062>\
**Category:** OpenGL: Basic Coding\
**Created:** [December 14, 2002, 11:48am UTC](https://community.khronos.org/t/glrotatef/14062 "2002-12-14T11:48:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Brian\_Jones](https://community.khronos.org/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@Brian\_Jones](https://community.khronos.org/u/Brian_Jones)\
**Post date:** [December 14, 2002, 12:46pm UTC](https://community.khronos.org/t/glrotatef/14062/2 "2002-12-14T12:46:00Z")

</div>

> Originally posted by simmosn:  
> however, when i rotate in any of the other axies, nothing. ie the following doesn’t do anything:  
> glRotatef(0.0, 0.0, 45.0, 1.0),

The first argument specifies how many degree you want to rotate around an axis. The following three argument specifiy the x, y, z axis to rotate, respectively. In that statement, you’re rotating the y and z axis 0 degrees. Thats why you don’t see any change. Also, the last three parameters are clamped to the range of [0, 1].

---

_[View the full topic](https://community.khronos.org/t/glrotatef/14062)._
