3 # This is my exploration in pyopengl land
7 from OpenGL
.GL
import *
8 from OpenGL
.GLUT
import *
11 WINDOW_SIZE
= (800, 600)
12 WINDOW_TITLE
= "Whee!"
17 glutInitDisplayMode(GLUT_RGB|GLUT_DEPTH|GLUT_DOUBLE
)
18 glutInitWindowSize(WINDOW_SIZE
[0], WINDOW_SIZE
[1])
19 glutCreateWindow(WINDOW_TITLE
)
21 glClearColor(0.0, 0.0, 0.0, 0.0)
27 glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT
)
28 glColor3f(0.0, 1.0, 0.0);
29 glRectf(-0.75,0.75, 0.75, -0.75);
35 glutDisplayFunc(display
)
46 if __name__
== '__main__':