コード例 #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()
コード例 #2
0
 def should_draw(self):
     return self._window and not glfw.glfwWindowShouldClose(self._window)