<s> from OpenGL . GL import * <EOL> from OpenGL . GLU import * <EOL> import pygame <EOL> from pygame . locals import * <EOL> screen = pygame . display . set_mode ( ( <NUM_LIT> , <NUM_LIT> ) , HWSURFACE | DOUBLEBUF | OPENGL ) <EOL> def resize ( width , height ) : <EOL> glViewport ( <NUM_LIT:0> , <NUM_LIT:0> , width , height ) <EOL> glMatrixMode ( GL_PROJECTION ) <EOL> glLoadIdentity ( ) <EOL> gluPerspective ( <NUM_LIT> , float ( width ) / height , <NUM_LIT:1> , <NUM_LIT> ) <EOL> glMatrixMode ( GL_MODELVIEW ) <EOL> glLoadIdentity ( ) </s>
