public void Update() { Glfw3.glfwPollEvents(); if (Glfw3.glfwWindowShouldClose(this.WindowHandle)) { this.game.SignalStop(); } this.IsResized = this.isResizeSignalled; this.isResizeSignalled = false; }
private void MainLoop() { this.initialTimestamp = Stopwatch.GetTimestamp(); while (!Glfw3.glfwWindowShouldClose(this.window)) { this.device.WaitIdle(); this.UpdateUniformBuffer(); this.DrawFrame(); Glfw3.glfwPollEvents(); } }