Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT)
- GL.glLoadIdentity()
- GL.glPushMatrix()
- GL.glLoadIdentity()
- GL.glViewport(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)
- GL.glMatrixMode(GL.GL_PROJECTION)
- GL.glLoadIdentity()
- GL.glPushMatrix()
- GL.glOrtho(0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, 1, -1)
- GL.glMatrixMode(GL.GL_MODELVIEW)
- GL.glLoadIdentity()
- GL.glTranslatef(.1, .1, .1)
- GL.glColor4f(1, 1, 1, .6)
- GL.glBegin(GL.GL_QUADS)
- GL.glVertex3f(-1, 0, -1)
- GL.glVertex3f(1, 0, -1)
- GL.glVertex3f(1, 0, 1)
- GL.glVertex3f(-1, 0, 1)
- GL.glVertex3f(0, -1, -1)
- GL.glVertex3f(0, 1, -1)
- GL.glVertex3f(0, 1, 1)
- GL.glVertex3f(0, -1, 1)
- GL.glVertex3f(-1, -1, 0)
- GL.glVertex3f(1, -1, 0)
- GL.glVertex3f(1, 1, 0)
- GL.glVertex3f(-1, 1, 0)
- GL.glEnd()
- pygame.display.flip()
- GL.glMatrixMode(GL.GL_PROJECTION)
- GL.glPopMatrix()
- GL.glMatrixMode(GL.GL_MODELVIEW)
- GL.glPopMatrix()
- print "Flip!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement