Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static void AddTimer(CooldownTimer t)
 {
     Timers.Add(t);
 }