OpenGL Matrix Operations

Started by
0 comments, last by Smack0007 24 years, 4 months ago
How do you apply Matrix Operations to an individual object rather then the whole screen?
- I don't pretend to know anything.Snowsoft
Advertisement
glMatrixMode(GL_MODELVIEW); to enable changes to the modelview matrix (as opposed to GL_PERSPECTIVE, which enables changes to the perspective matrix)

and then

glPushMatrix() to push a matrix onto the stack

and glPopMatrix() to pop a matrix from the stack. (I kid you not)

This stuff, and more, can be found in the openGL man pages. Its worth reading them if you're serious about openGL coding:
http://www.sun.com/software/graphics/OpenGL/manpages/

Hope that helps.

[This message has been edited by benjamin bunny (edited November 27, 1999).]

____________________________________________________________www.elf-stone.com | Automated GL Extension Loading: GLee 5.00 for Win32 and Linux

This topic is closed to new replies.

Advertisement