set initial viewing transformation without receiving resize event
This commit is contained in:
parent
177951c395
commit
7b9805b013
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user