Let's say I use glRotateto translate the current view based on some arbitrary user input (i.e. if you press the left key, then rtri+=2.5f)
glRotatef(rtri,0.0f,1.0f,0.0f);
Then I draw a triangle in a rotated position:
glBegin(GL_TRIANGLES);
glVertex3f( 0.0f, 1.0f, 0.0f);
glVertex3f(-1.0f,-1.0f, 0.0f);
glVertex3f( 1.0f,-1.0f, 0.0f);
glEnd();
How to get the resulting translated vertices for use in detecting conflicts? Or will I have to manually apply the conversion and thereby double the work?
The reason I am asking is because I would not miss the display lists.
source
share