diff options
Diffstat (limited to 'src/jake2/render/LwjglGL.java')
-rw-r--r-- | src/jake2/render/LwjglGL.java | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/jake2/render/LwjglGL.java b/src/jake2/render/LwjglGL.java index 1fb500d..4ec108f 100644 --- a/src/jake2/render/LwjglGL.java +++ b/src/jake2/render/LwjglGL.java @@ -6,7 +6,17 @@ import java.nio.*; import org.lwjgl.util.GL; -public class LwjglGL extends LWJGLBase { +public class LwjglGL implements QGL { + + private static QGL self = new LwjglGL(); + + private LwjglGL() { + // singleton + } + + public static QGL getInstance() { + return self; + } public final void glAlphaFunc(int func, float ref) { GL.glAlphaFunc(func, ref); @@ -279,4 +289,20 @@ public class LwjglGL extends LWJGLBase { GL.glPointParameterfEXT(pname, param); } + public final void glLockArraysEXT(int first, int count) { + GL.glLockArraysEXT(first, count); + } + + public final void glArrayElement(int index) { + GL.glArrayElement(index); + } + + public final void glUnlockArraysEXT() { + GL.glUnlockArraysEXT(); + } + + public final void glMultiTexCoord2f(int target, float s, float t) { + GL.glMultiTexCoord2f(target, s, t); + } + } |