Exemplo n.º 1
0
 def close_display(window_id: int):
     glutDestroyWindow(window_id)
Exemplo n.º 2
0
 def stop(self):
     glutDestroyWindow(glutGetWindow())
Exemplo n.º 3
0
 def stop(self):
     glutDestroyWindow(glutGetWindow())
     for _ in range(10):  # At least 2 to close
         OpenGL.GLUT.freeglut.glutMainLoopEvent()
Exemplo n.º 4
0
 def close(self):
     if self.__glut_window:
         glutDestroyWindow(self.__glut_window)
         self.__glut_window = None
     super(MTWindowGlut, self).close()
Exemplo n.º 5
0
 def close(self):
     if self.__glut_window:
         glutDestroyWindow(self.__glut_window)
         self.__glut_window = None
     super(MTWindowGlut, self).close()
Exemplo n.º 6
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