コード例 #1
0
ファイル: Program.cs プロジェクト: mrenow/2D-Game
        private static void MainLoop()
        {
            GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit | ClearBufferMask.StencilBufferBit);

            GameTime.Update();
            Glfw.SetWindowTitle(window, "FPS: " + GameTime.FPS);

            CooldownTimer.Update();

            Glfw.PollEvents();
            Update();
            Renderer.Render();


            Glfw.SwapBuffers(window);
        }
コード例 #2
0
ファイル: CooldownTimer.cs プロジェクト: mrenow/2D-Game
 public static void AddTimer(CooldownTimer t)
 {
     Timers.Add(t);
 }