Archived

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

jon723

using glPushMatrix()

Recommended Posts

jon723    168
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
yakuza    134
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