Jump to content
  • Advertisement

Archived

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

ankan666

rotation

This topic is 6918 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

Hi guys. I''m all little confused when it comes to glRotate. Does glrotate affect all objects on screen? or does it only affect the commands in the next glBegin, glEnd clause? Thanx

Share this post


Link to post
Share on other sites
Advertisement
I believe that it remains in effect until you specify another rotation, or perform a glLoadIdentity() call, this is because GL is a state machine. Like when you specify a colour, glColor4f(crap...) all primitives will be rendered with this colour until you clear the buffer glClear(COLOR_BUFFER_BIT) or something.

I think thats right.

-Mezz

Share this post


Link to post
Share on other sites
glRotate() "rotates" the current transformation matrix, presumably modelview.. the current transformation matrix affects the commands within any glBegin()/glEnd() clause after it''s set, until it''s changed.
i dunno if that made any sense, i''m not terribly good at explaining things

--
Float like a butterfly, bite like a crocodile.

Share this post


Link to post
Share on other sites
man.. the past four topics i replied to, someone replied at the same time as i did.. its a curse i tells ya.. a curse..



--
Float like a butterfly, bite like a crocodile.

Share this post


Link to post
Share on other sites
Perhaps you already have, but I just want to let you know that if you haven''t, learn what the rotation algorithms are! It will cause all of the hardware stuff to make a lot more sense

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!