I'm stuck on trying to figure out how to rotate the viewport(or camera). So far I've figured out I need to use the function glRotatef and glMatrixMode(GL_MODELVIEW). But I have no idea how to apply the rotations to the model view. I'm sorry I have no code to show because I have no idea how to get started. Any help would be greatly appreciated!
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
|||||||||
|
|
glRotatef should apply to whatever matrix is currently selected by glMatrixMode. Just execute it after glMatrixMode. It's worth nothing that glMatrixMode is a deprecated command. The new way of doing things involves using shaders, binding a matrix to them and multiplying them together with the vertex coordinates. |
||||
|
|
