You only need to invert the order of the istruction: glRotatef(rotateroom,0,0,1); glTranslatef(5,5,0);. Whenever you trasform a point you ... ... <看更多>
Search
Search
You only need to invert the order of the istruction: glRotatef(rotateroom,0,0,1); glTranslatef(5,5,0);. Whenever you trasform a point you ... ... <看更多>
OpenGL uses a column vector convention, which means the matrices must be applied in the opposite of the order in which you actually want the ... ... <看更多>
... <看更多>