Exemplo n.º 1
0
    def showWindow(self):
        GLFW.glfwMakeContextCurrent(self.__window)
        self.__initialize()

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

        GLFW.glfwTerminate()
Exemplo n.º 2
0
 def should_draw(self):
     return self._window and not glfw.glfwWindowShouldClose(self._window)