I am totally new to opengl.
I am in a question of how to reset the position after applying it a time.
ex - I am using following code to draw a cube.
glTranslatef(0, 1, 0);
glColor4f(0.3, 0.3, 0.3, 0.3 );
After doing above how to rest the position to draw a new cube?
Actually by calling
glTranslatef(0, -1, 0);
I could do that.
Instead any inbuild method for resetting?
I mean resetting colors, position ,etc…