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