Skip to main content
GameDev.net gamedev.net
🔒 Locked

rotation

Started by ankan666 May 10, 2000 at 1:01 PM 3 replies 1k views
Original Post
ankan666
ankan666
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
Mezz
Mezz
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
goltrpoat
goltrpoat
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.

--Float like a butterfly, bite like a crocodile.
goltrpoat
goltrpoat
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.

--Float like a butterfly, bite like a crocodile.
Cessen
Cessen
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.