Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jon723

using glPushMatrix()

This topic is 5312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have a couple of objects that I render to the screen and are user controlled (well one of them is user controlled at this point). I wanted to know if there is a way to have the user move the object with out calling glPushMatrix() for each object I render. I would really like to not have the layering effect that pushing a matrix creates with my objects. Could I just encapsulate every object I draw inside the glPushMatrix() glPopMatrix() calls and still have the users object move properly and not everything have everything move at the same time?

Share this post


Link to post
Share on other sites
Advertisement
I don''t understand what you mean by "not wanting the layering effect". IMHO, it''s probably going to cost you more headache and computing overhead to manage the states and orientations of each individual object than it would to just use the Push and Pop.

----------------
Amusing quote deleted at request of owner

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!