コード例 #1
0
        public void Update()
        {
            Glfw3.glfwPollEvents();

            if (Glfw3.glfwWindowShouldClose(this.WindowHandle))
            {
                this.game.SignalStop();
            }

            this.IsResized = this.isResizeSignalled;

            this.isResizeSignalled = false;
        }
コード例 #2
0
        private void MainLoop()
        {
            this.initialTimestamp = Stopwatch.GetTimestamp();

            while (!Glfw3.glfwWindowShouldClose(this.window))
            {
                this.device.WaitIdle();

                this.UpdateUniformBuffer();
                this.DrawFrame();

                Glfw3.glfwPollEvents();
            }
        }