aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl/QGL.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-11-21 00:52:51 +0000
committerCarsten Weisse <[email protected]>2006-11-21 00:52:51 +0000
commit17b95195843d63063d989d6a99893ae6300f5ba5 (patch)
tree4ccd4fa9039724687039209c039344f285ef0b16 /src/jake2/render/opengl/QGL.java
parent6cfce25cd7b75c03ee2fc6b238e68f7e4cabb058 (diff)
merge render-refactoring branch into the HEAD
Diffstat (limited to 'src/jake2/render/opengl/QGL.java')
-rw-r--r--src/jake2/render/opengl/QGL.java155
1 files changed, 155 insertions, 0 deletions
diff --git a/src/jake2/render/opengl/QGL.java b/src/jake2/render/opengl/QGL.java
new file mode 100644
index 0000000..ad79052
--- /dev/null
+++ b/src/jake2/render/opengl/QGL.java
@@ -0,0 +1,155 @@
+package jake2.render.opengl;
+
+import java.nio.*;
+
+public interface QGL extends QGLConst {
+
+ /*
+ * a sub set of OpenGL for Jake2
+ */
+
+ void glActiveTextureARB(int texture);
+
+ void glAlphaFunc(int func, float ref);
+
+ void glArrayElement(int index);
+
+ void glBegin(int mode);
+
+ void glBindTexture(int target, int texture);
+
+ void glBlendFunc(int sfactor, int dfactor);
+
+ void glClear(int mask);
+
+ void glClearColor(float red, float green, float blue, float alpha);
+
+ void glClientActiveTextureARB(int texture);
+
+ void glColor3f(float red, float green, float blue);
+
+ void glColor3ub(byte red, byte green, byte blue);
+
+ void glColor4f(float red, float green, float blue, float alpha);
+
+ void glColor4ub(byte red, byte green, byte blue, byte alpha);
+
+ void glColorPointer(int size, boolean unsigned, int stride,
+ ByteBuffer pointer);
+
+ void glColorPointer(int size, int stride, FloatBuffer pointer);
+
+ void glColorTable(int target, int internalFormat, int width, int format,
+ int type, ByteBuffer data);
+
+ void glCullFace(int mode);
+
+ void glDeleteTextures(IntBuffer textures);
+
+ void glDepthFunc(int func);
+
+ void glDepthMask(boolean flag);
+
+ void glDepthRange(double zNear, double zFar);
+
+ void glDisable(int cap);
+
+ void glDisableClientState(int cap);
+
+ void glDrawArrays(int mode, int first, int count);
+
+ void glDrawBuffer(int mode);
+
+ void glDrawElements(int mode, IntBuffer indices);
+
+ void glEnable(int cap);
+
+ void glEnableClientState(int cap);
+
+ void glEnd();
+
+ void glFinish();
+
+ void glFlush();
+
+ void glFrustum(double left, double right, double bottom, double top,
+ double zNear, double zFar);
+
+ int glGetError();
+
+ void glGetFloat(int pname, FloatBuffer params);
+
+ String glGetString(int name);
+
+ void glInterleavedArrays(int format, int stride, FloatBuffer pointer);
+
+ void glLockArraysEXT(int first, int count);
+
+ void glLoadIdentity();
+
+ void glLoadMatrix(FloatBuffer m);
+
+ void glMatrixMode(int mode);
+
+ void glMultiTexCoord2f(int target, float s, float t);
+
+ void glOrtho(double left, double right, double bottom, double top,
+ double zNear, double zFar);
+
+ void glPixelStorei(int pname, int param);
+
+ void glPointParameterEXT(int pname, FloatBuffer pfParams);
+
+ void glPointParameterfEXT(int pname, float param);
+
+ void glPointSize(float size);
+
+ void glPolygonMode(int face, int mode);
+
+ void glPopMatrix();
+
+ void glPushMatrix();
+
+ void glReadPixels(int x, int y, int width, int height, int format,
+ int type, ByteBuffer pixels);
+
+ void glRotatef(float angle, float x, float y, float z);
+
+ void glScalef(float x, float y, float z);
+
+ void glScissor(int x, int y, int width, int height);
+
+ void glShadeModel(int mode);
+
+ void glTexCoord2f(float s, float t);
+
+ void glTexCoordPointer(int size, int stride, FloatBuffer pointer);
+
+ void glTexEnvi(int target, int pname, int param);
+
+ void glTexImage2D(int target, int level, int internalformat, int width,
+ int height, int border, int format, int type, ByteBuffer pixels);
+
+ void glTexImage2D(int target, int level, int internalformat, int width,
+ int height, int border, int format, int type, IntBuffer pixels);
+
+ void glTexParameterf(int target, int pname, float param);
+
+ void glTexParameteri(int target, int pname, int param);
+
+ void glTexSubImage2D(int target, int level, int xoffset, int yoffset,
+ int width, int height, int format, int type, IntBuffer pixels);
+
+ void glTranslatef(float x, float y, float z);
+
+ void glUnlockArraysEXT();
+
+ void glVertex2f(float x, float y);
+
+ void glVertex3f(float x, float y, float z);
+
+ void glVertexPointer(int size, int stride, FloatBuffer pointer);
+
+ void glViewport(int x, int y, int width, int height);
+
+} \ No newline at end of file