set initial viewing transformation without receiving resize event

This commit is contained in:
Josh Holtrop 2012-07-15 20:09:25 -04:00
parent 177951c395
commit 7b9805b013

View File

@ -28,6 +28,13 @@ def main(argv):
glEnable(GL_COLOR_MATERIAL)
glColor3f(1, 0.6, 0)
glEnable(GL_DEPTH_TEST)
glDepthMask(GL_TRUE)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspective(60.0, 800.0 / 600.0, 1.0, 1000.0)
while window.IsOpened():
event = sf.Event()