Jump to content

  • Log In with Google      Sign In   
  • Create Account

OpenGL Matrix Operations


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Smack0007   Members   -  Reputation: 157

Like
Likes
Like

Posted 27 November 1999 - 05:54 PM

How do you apply Matrix Operations to an individual object rather then the whole screen?

Sponsor:

#2 benjamin bunny   GDNet+   -  Reputation: 838

Like
Likes
Like

Posted 27 November 1999 - 05:54 PM

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).]





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS