diff options
Diffstat (limited to 'src/jake2/render')
-rw-r--r-- | src/jake2/render/opengl/CountGL.java | 134 | ||||
-rw-r--r-- | src/jake2/render/opengl/DummyGL.java | 4 | ||||
-rw-r--r-- | src/jake2/render/opengl/JoglGL.java | 4 | ||||
-rw-r--r-- | src/jake2/render/opengl/Jsr231GL.java | 4 | ||||
-rw-r--r-- | src/jake2/render/opengl/LwjglGL.java | 4 | ||||
-rw-r--r-- | src/jake2/render/opengl/QGL.java | 2 | ||||
-rw-r--r-- | src/jake2/render/opengl/QGLConst.java | 4 |
7 files changed, 90 insertions, 66 deletions
diff --git a/src/jake2/render/opengl/CountGL.java b/src/jake2/render/opengl/CountGL.java index 393387b..1e2f525 100644 --- a/src/jake2/render/opengl/CountGL.java +++ b/src/jake2/render/opengl/CountGL.java @@ -18,108 +18,108 @@ public class CountGL implements QGL { } public void glAlphaFunc(int func, float ref) { - count++; + ++count; } public void glBegin(int mode) { - count++; + ++count; } public void glBindTexture(int target, int texture) { - count++; + ++count; } public void glBlendFunc(int sfactor, int dfactor) { - count++; + ++count; } public void glClear(int mask) { - count++; + ++count; } public void glClearColor(float red, float green, float blue, float alpha) { - count++; + ++count; } public void glColor3f(float red, float green, float blue) { - count++; + ++count; } public void glColor3ub(byte red, byte green, byte blue) { - count++; + ++count; } public void glColor4f(float red, float green, float blue, float alpha) { - count++; + ++count; } public void glColor4ub(byte red, byte green, byte blue, byte alpha) { - count++; + ++count; } public void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) { - count++; + ++count; } public void glColorPointer(int size, int stride, FloatBuffer pointer) { - count++; + ++count; } public void glCullFace(int mode) { - count++; + ++count; } public void glDeleteTextures(IntBuffer textures) { - count++; + ++count; } public void glDepthFunc(int func) { - count++; + ++count; } public void glDepthMask(boolean flag) { - count++; + ++count; } public void glDepthRange(double zNear, double zFar) { - count++; + ++count; } public void glDisable(int cap) { - count++; + ++count; } public void glDisableClientState(int cap) { - count++; + ++count; } public void glDrawArrays(int mode, int first, int count) { - count++; + ++count; } public void glDrawBuffer(int mode) { - count++; + ++count; } public void glDrawElements(int mode, IntBuffer indices) { - count++; + ++count; } public void glEnable(int cap) { - count++; + ++count; } public void glEnableClientState(int cap) { - count++; + ++count; } public void glEnd() { - count++; + ++count; } public void glFinish() { - count++; + ++count; } public void glFlush() { @@ -129,7 +129,7 @@ public class CountGL implements QGL { public void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) { - count++; + ++count; } public int glGetError() { @@ -137,7 +137,7 @@ public class CountGL implements QGL { } public void glGetFloat(int pname, FloatBuffer params) { - count++; + ++count; } public String glGetString(int name) { @@ -149,162 +149,166 @@ public class CountGL implements QGL { } } + public void glHint(int target, int mode) { + ++count; + } + public void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { - count++; + ++count; } public void glLoadIdentity() { - count++; + ++count; } public void glLoadMatrix(FloatBuffer m) { - count++; + ++count; } public void glMatrixMode(int mode) { - count++; + ++count; } public void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) { - count++; + ++count; } public void glPixelStorei(int pname, int param) { - count++; + ++count; } public void glPointSize(float size) { - count++; + ++count; } public void glPolygonMode(int face, int mode) { - count++; + ++count; } public void glPopMatrix() { - count++; + ++count; } public void glPushMatrix() { - count++; + ++count; } public void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) { - count++; + ++count; } public void glRotatef(float angle, float x, float y, float z) { - count++; + ++count; } public void glScalef(float x, float y, float z) { - count++; + ++count; } public void glScissor(int x, int y, int width, int height) { - count++; + ++count; } public void glShadeModel(int mode) { - count++; + ++count; } public void glTexCoord2f(float s, float t) { - count++; + ++count; } public void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { - count++; + ++count; } public void glTexEnvi(int target, int pname, int param) { - count++; + ++count; } public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) { - count++; + ++count; } public void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) { - count++; + ++count; } public void glTexParameterf(int target, int pname, float param) { - count++; + ++count; } public void glTexParameteri(int target, int pname, int param) { - count++; + ++count; } public void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) { - count++; + ++count; } public void glTranslatef(float x, float y, float z) { - count++; + ++count; } public void glVertex2f(float x, float y) { - count++; + ++count; } public void glVertex3f(float x, float y, float z) { - count++; + ++count; } public void glVertexPointer(int size, int stride, FloatBuffer pointer) { - count++; + ++count; } public void glViewport(int x, int y, int width, int height) { - count++; + ++count; } public void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { - count++; + ++count; } public void glActiveTextureARB(int texture) { - count++; + ++count; } public void glClientActiveTextureARB(int texture) { - count++; + ++count; } public void glPointParameterEXT(int pname, FloatBuffer pfParams) { - count++; + ++count; } public void glPointParameterfEXT(int pname, float param) { - count++; + ++count; } public void glLockArraysEXT(int first, int count) { - count++; + ++count; } public void glArrayElement(int index) { - count++; + ++count; } public void glUnlockArraysEXT() { - count++; + ++count; } public void glMultiTexCoord2f(int target, float s, float t) { - count++; + ++count; } } diff --git a/src/jake2/render/opengl/DummyGL.java b/src/jake2/render/opengl/DummyGL.java index 42fca3c..c1c592b 100644 --- a/src/jake2/render/opengl/DummyGL.java +++ b/src/jake2/render/opengl/DummyGL.java @@ -145,6 +145,10 @@ public class DummyGL implements QGL { return ""; } } + + public void glHint(int target, int mode) { + // do nothing + } public void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { diff --git a/src/jake2/render/opengl/JoglGL.java b/src/jake2/render/opengl/JoglGL.java index d3e37b5..cac4cc9 100644 --- a/src/jake2/render/opengl/JoglGL.java +++ b/src/jake2/render/opengl/JoglGL.java @@ -143,6 +143,10 @@ public class JoglGL implements QGL { return jogl.glGetString(name); } + public void glHint(int target, int mode) { + jogl.glHint(target, mode); + } + public void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { jogl.glInterleavedArrays(format, stride, pointer); diff --git a/src/jake2/render/opengl/Jsr231GL.java b/src/jake2/render/opengl/Jsr231GL.java index a4fef10..02d9e87 100644 --- a/src/jake2/render/opengl/Jsr231GL.java +++ b/src/jake2/render/opengl/Jsr231GL.java @@ -142,6 +142,10 @@ public class Jsr231GL implements QGL { public String glGetString(int name) { return gl.glGetString(name); } + + public void glHint(int target, int mode) { + gl.glHint(target, mode); + } public void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { diff --git a/src/jake2/render/opengl/LwjglGL.java b/src/jake2/render/opengl/LwjglGL.java index 8134d46..3557aea 100644 --- a/src/jake2/render/opengl/LwjglGL.java +++ b/src/jake2/render/opengl/LwjglGL.java @@ -136,6 +136,10 @@ public class LwjglGL implements QGL { return GL11.glGetString(name); } + public void glHint(int target, int mode) { + GL11.glHint(target, mode); + } + public final void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { GL11.glInterleavedArrays(format, stride, pointer); diff --git a/src/jake2/render/opengl/QGL.java b/src/jake2/render/opengl/QGL.java index ad79052..653da22 100644 --- a/src/jake2/render/opengl/QGL.java +++ b/src/jake2/render/opengl/QGL.java @@ -80,6 +80,8 @@ public interface QGL extends QGLConst { void glGetFloat(int pname, FloatBuffer params); String glGetString(int name); + + void glHint(int target, int mode); void glInterleavedArrays(int format, int stride, FloatBuffer pointer); diff --git a/src/jake2/render/opengl/QGLConst.java b/src/jake2/render/opengl/QGLConst.java index 024abef..7744e6e 100644 --- a/src/jake2/render/opengl/QGLConst.java +++ b/src/jake2/render/opengl/QGLConst.java @@ -130,8 +130,10 @@ public interface QGLConst { public static final int GL_TEXTURE_2D = 0x0DE1; /* - * hint modes + * hints */ + public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; + public static final int GL_DONT_CARE = 0x1100; public static final int GL_FASTEST = 0x1101; |