Hi...
I just started to learn OpenGL programming and I stumbled on a problem.
When I use glRotatef() function, it rotates ALL objects that I make later. I have a solution, use glRotatef() with opposite parameters, but that''s a waste of time and resources. Isn''t there a simplier way???

Just to make things clear here is an example:
glRotatef(...);
creating triangle;
creating square;
I want to rotate only the triangle, but the square is rotated also...

Help?
-=*ECHO*=-