rotation
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
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
I think thats right.
-Mezz
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.
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.
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.
--Float like a butterfly, bite like a crocodile.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement