Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

OpenGL Matrix Operations

4: Adsense

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   

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?

#2 benjamin bunny   GDNet+   

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.