コード例 #1
0
        public void Start()
        {
            int width  = 0;
            int height = 0;

            GLFW.GlfwGetFramebufferSize(Window, ref width, ref height);
            Viewport(0, 0, width, height);
            while (GLFW.GlfwWindowShouldClose(Window) == 0)
            {
                Frame?.Invoke();
                GLFW.GlfwSwapBuffers(Window);
                GLFW.GlfwPollEvents();
            }
            ShuttingDown?.Invoke();
            GLFW.GlfwDestroyWindow(Window);
            GLFW.GlfwTerminate();
        }