How can I rotate multiple quads separately? (Pygame, PyOpengl)
问题 I'd like to rotate my quads roughly around they own axis. My first thought was to use glPushMatrix() and glPophMatrix(), but doesn't work. Regardless of that I believe this is the good way. Code: import time, pygame from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * def makeQuad(): glBegin(GL_QUADS) glVertex2f(0, 0) glVertex2f(0, 50) glVertex2f(50, 50) glVertex2f(50, 0) glEnd() def main(): pygame.init() display = (800,800) pygame.display.set_mode(display, DOUBLEBUF