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