Пример #1
0
 def stop(self):
     glutDestroyWindow(glutGetWindow())
     for _ in range(10):  # At least 2 to close
         OpenGL.GLUT.freeglut.glutMainLoopEvent()
Пример #2
0
 def stop(self):
     glutDestroyWindow(glutGetWindow())
Пример #3
0
 def close(self):
     # embed()
     glutDestroyWindow(glutGetWindow())
     # embed()
     sys.exit() # How do I clean up memory resources before exiting? Is it needed, or handled by destroywindow