示例#1
0
文件: window.py 项目: gamesclub/Path
    def showWindow(self):
        GLFW.glfwMakeContextCurrent(self.__window)
        self.__initialize()

        while not GLFW.glfwWindowShouldClose(self.__window):
            self.__loop(self)

        GLFW.glfwTerminate()
 def should_draw(self):
     return self._window and not glfw.glfwWindowShouldClose(self._window)