Setting my game view
Im my last major project i must have called gltranslate a couple hundred times befor just starting to draw the scene. How could i adjust my 0,0,0 value to where i want it, and then use glLoadidentity() to reset back to that position and then put those values into my real matrix.
Translate a couple of hundred times
glPushMatrix();
(blah, do stuff here...
glPopMatrix();
forget about the glLoadIdentity.
Better would be to make a camera so you''d have to rotate/translate only once and not hundreds.....
- An eye for an eye will make the world go blind -
glPushMatrix();
(blah, do stuff here...
glPopMatrix();
forget about the glLoadIdentity.
Better would be to make a camera so you''d have to rotate/translate only once and not hundreds.....
- An eye for an eye will make the world go blind -
<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement