diff options
author | Carsten Weisse <[email protected]> | 2005-07-16 17:59:37 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-07-16 17:59:37 +0000 |
commit | 5be7ebececd604bda480b5ba4cb64d6f5b423d64 (patch) | |
tree | 227f3acd2254c6acd1dcf745e42e1204929a7892 /src/jake2/render | |
parent | 5da37535f1147088c88245bd160407ab267c83d0 (diff) |
implementation of QGL
Diffstat (limited to 'src/jake2/render')
-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); + } + } |