PrintMatrix( matrix2 ); printf( "Now perform OpenGL glRotate function.\n" ); glRotatef( angle, x, y, z ); glGetFloatv( GL_MODELVIEW_MATRIX, matrix1 ); PrintMatrix( matrix1 ); printf( "Now perform MyRotate function.\n" ); MyRotatef( matrix2, angle, x, y, z ); PrintMatrix( ...
PrintMatrix( matrix2 ); printf( "Now perform OpenGL glRotate function.\n" ); glRotatef( angle, x, y, z ); glGetFloatv( GL_MODELVIEW_MATRIX, matrix1 ); PrintMatrix( matrix1 ); printf( "Now perform MyRotate function.\n" ); MyRotatef( matrix2, angle, x, y, z ); PrintMatrix( ...
Apply ModelView transformations. You will most likely want to wrap calls to this function with ``glPushMatrix()``/``glPopMatrix()`` """x, y = director.get_window_size()ifnot(self.gridandself.grid.active):# only apply the camera if the grid is not active# otherwise, the camera will...