I am using OpenGL with Python, and have the following code:
glTranslatef(0, 0, -3.0)
glRotatef(rotation * 100.0, 0.0, 1.0, 0.0)
square.render()
- where rotation is a integer which increases by frame and square.render()
simply renders a quad to the screen.
Most sources will advise translating the matrix and then rotating it, as I have done here. However, when the quad renders to the screen, it rotates around a circle rather than a fixed point. My issue is that I want the quad to rotate around a fixed point, and I have been unsuccessful thus far in doing so. What am I doing wrong?