allright correct me if im wrong but:
will move the entry (?) point 3 units to the right on the x (seen from 0.0) no matter if you drew another GL_TRIANGLE on another place before that?Code:glTranslatef(3.0f, 0.0f, 0.0f);
allright correct me if im wrong but:
will move the entry (?) point 3 units to the right on the x (seen from 0.0) no matter if you drew another GL_TRIANGLE on another place before that?Code:glTranslatef(3.0f, 0.0f, 0.0f);
Yes....it will move 3 points from the origin (wherever that may be at the time).Originally posted by TeQno
allright correct me if im wrong but:
will move the entry (?) point 3 units to the right on the x (seen from 0.0) no matter if you drew another GL_TRIANGLE on another place before that?Code:glTranslatef(3.0f, 0.0f, 0.0f);
You can draw in a place you have drawn before, but how it comes out depends on the z order and if you have any sort of blending set
so
will always but the point in the middle of the screen as it were?Code:glTranslatef(0.0f, 0.0f, 0.0f);
If the origin is set to the middle (because it will have no effect).....Originally posted by TeQno
so
will always but the point in the middle of the screen as it were?Code:glTranslatef(0.0f, 0.0f, 0.0f);
[edit]
if you want to move to the middle, call glLoadIdentity()
ah i see now thanks !