I need to know how to get the final vertex coords (in relation to the origin) after transformations of another vertex.
glTranslatef(0,0-10); // or any other numbers
glRotatef(45,0,1,0); // ...
//Now I need to get a single glVertex command that will do the same as the above...
For example, with only:
what I am trying to find is the final vertex from the above, which is easy in this case:
but add rotations and it becomes a bit harder...
I think you must get the current matrix (modelview) and somehow apply it to the vertex you currently have. Help?