inline OpenGL functions to lwjgl GLxx

This commit is contained in:
Sen 2025-03-18 10:24:05 +01:00
parent 783adb350b
commit a2ffb2991d
90 changed files with 1008 additions and 1204 deletions

View file

@ -1,6 +1,6 @@
package game.util;
import game.window.WCF;
import game.window.Window;
public enum PerfSection {
TIMING("Timing"),
@ -29,7 +29,7 @@ public enum PerfSection {
}
public void enter() {
this.time = WCF.getTime();
this.time = Window.getTime();
if(section != null)
section.last[swap] = section.time = this.time - section.time;
section = this;
@ -44,7 +44,7 @@ public enum PerfSection {
}
public static void swap() {
long current = WCF.getTime();
long current = Window.getTime();
total = current - start;
start = current;
swap ^= 1;