From 7d8c095e3aa9d4431bbfc6888024843613d93578 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Wed, 28 Jan 2004 19:42:53 +0000 Subject: [PATCH] no longer needed files; cleanup after SF fuckup --- src/java/org/lwjgl/opengl/CoreGL11.java | 596 ------- .../org/lwjgl/opengl/CoreGL11Constants.java | 1056 ----------- src/java/org/lwjgl/opengl/CoreGL12.java | 239 --- .../org/lwjgl/opengl/CoreGL12Constants.java | 156 -- src/java/org/lwjgl/opengl/CoreGL13.java | 151 -- .../org/lwjgl/opengl/CoreGL13Constants.java | 145 -- src/java/org/lwjgl/opengl/CoreGL14.java | 94 - .../org/lwjgl/opengl/CoreGL14Constants.java | 83 - src/java/org/lwjgl/opengl/GL.java | 1538 ----------------- src/java/org/lwjgl/opengl/GLConstants.java | 145 -- 10 files changed, 4203 deletions(-) delete mode 100644 src/java/org/lwjgl/opengl/CoreGL11.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL11Constants.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL12.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL12Constants.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL13.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL13Constants.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL14.java delete mode 100644 src/java/org/lwjgl/opengl/CoreGL14Constants.java delete mode 100644 src/java/org/lwjgl/opengl/GL.java delete mode 100644 src/java/org/lwjgl/opengl/GLConstants.java diff --git a/src/java/org/lwjgl/opengl/CoreGL11.java b/src/java/org/lwjgl/opengl/CoreGL11.java deleted file mode 100644 index df06faf1..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL11.java +++ /dev/null @@ -1,596 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import java.nio.*; -import java.nio.ByteBuffer; -import java.nio.IntBuffer; -import java.nio.FloatBuffer; -import java.nio.DoubleBuffer; -import java.nio.Buffer; - -/** - * $Id: CoreGL.java,v 1.23 2003/07/23 14:51:19 elias_naur Exp $ - * - * The core OpenGL1.1 API. - * - * @author cix_foo - * @version $Revision: 1.23 $ - */ -public abstract class CoreGL11 implements CoreGL11Constants { - - public static native void glAccum(int op, float value); - public static native void glAlphaFunc(int func, float ref); - public static native void glClearColor(float red, float green, float blue, float alpha); - public static native void glClearAccum(float red, float green, float blue, float alpha); - public static native void glClear(int mask); - public static void glCallLists(ByteBuffer lists) { - nglCallLists(lists.remaining(), GL_UNSIGNED_BYTE, lists, lists.position()); - } - public static void glCallLists(ShortBuffer lists) { - nglCallLists(lists.remaining(), GL_UNSIGNED_SHORT, lists, lists.position() << 1); - } - public static void glCallLists(int n, IntBuffer lists) { - nglCallLists(lists.remaining(), GL_UNSIGNED_INT, lists, lists.position() << 2); - } - private static native void nglCallLists(int n, int type, Buffer lists, int lists_offset); - public static native void glCallList(int list); - public static native void glBlendFunc(int sfactor, int dfactor); - public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) { - nglBitmap(width, height, xorig, yorig, xmove, ymove, bitmap, bitmap.position()); - } - private static native void nglBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap, int bitmap_offset); - public static native void glBindTexture(int target, int texture); - public static native void glBegin(int mode); - public static native void glEnd(); - public static native void glArrayElement(int i); - public static native void glClearDepth(double depth); - public static native void glDeleteLists(int list, int range); - public static void glDeleteTextures(IntBuffer textures) { - nglDeleteTextures(textures.remaining(), textures, textures.position()); - } - private static native void nglDeleteTextures(int n, IntBuffer textures, int textures_offset); - public static native void glCullFace(int mode); - public static native void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height); - public static native void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width); - public static native void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border); - public static native void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border); - public static native void glCopyPixels(int x, int y, int width, int height, int type); - public static void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglColorPointer(size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pointer, pointer.position()); - } - public static void glColorPointer(int size, int stride, FloatBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglColorPointer(size, GL_FLOAT, stride, pointer, pointer.position() << 2); - } - private static native void nglColorPointer(int size, int type, int stride, Buffer pointer, int pointer_offset); - public static void glColorPointer(int size, int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglColorPointerVBO(size, type, stride, buffer_offset); - } - private static native void nglColorPointerVBO(int size, int type, int stride, int buffer_offset); - public static native void glColorMaterial(int face, int mode); - public static native void glColorMask(boolean red, boolean green, boolean blue, boolean alpha); - public static native void glColor3b(byte red, byte green, byte blue); - public static native void glColor3f(float red, float green, float blue); - public static native void glColor3ub(byte red, byte green, byte blue); - public static native void glColor4b(byte red, byte green, byte blue, byte alpha); - public static native void glColor4f(float red, float green, float blue, float alpha); - public static native void glColor4ub(byte red, byte green, byte blue, byte alpha); - public static void glClipPlane(int plane, DoubleBuffer equation) { - nglClipPlane(plane, equation, equation.position() << 3); - } - private static native void nglClipPlane(int plane, DoubleBuffer equation, int equation_offset); - public static native void glClearStencil(int s); - public static native void glClearIndex(float c); - public static native void glEvalPoint1(int i); - public static native void glEvalPoint2(int i, int j); - public static native void glEvalMesh1(int mode, int i1, int i2); - public static native void glEvalMesh2(int mode, int i1, int i2, int j1, int j2); - public static native void glEvalCoord1f(float u); - public static native void glEvalCoord2f(float u, float v); - public static native void glEnableClientState(int cap); - public static native void glDisableClientState(int cap); - public static native void glEnable(int cap); - public static native void glDisable(int cap); - public static void glEdgeFlagPointer(int stride, ByteBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglEdgeFlagPointer(stride, pointer, pointer.position()); - } - private static native void nglEdgeFlagPointer(int stride, Buffer pointer, int pointer_offset); - public static void glEdgeFlagPointer(int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglEdgeFlagPointerVBO(stride, buffer_offset); - } - private static native void nglEdgeFlagPointerVBO(int stride, int buffer_offset); - public static native void glEdgeFlag(boolean flag); - public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) { - nglDrawPixels(width, height, format, type, pixels, pixels.position()); - } - public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) { - nglDrawPixels(width, height, format, type, pixels, pixels.position() << 1); - } - public static void glDrawPixels(int width, int height, int format, int type, IntBuffer pixels) { - nglDrawPixels(width, height, format, type, pixels, pixels.position() << 2); - } - private static native void nglDrawPixels(int width, int height, int format, int type, Buffer pixels, int pixels_offset); - public static void glDrawElements(int mode, ByteBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawElements(mode, indices.remaining(), GL_UNSIGNED_BYTE, indices, indices.position()); - } - public static void glDrawElements(int mode, ShortBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawElements(mode, indices.remaining(), GL_UNSIGNED_SHORT, indices, indices.position() << 1); - } - public static void glDrawElements(int mode, IntBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawElements(mode, indices.remaining(), GL_UNSIGNED_INT, indices, indices.position() << 2); - } - private static native void nglDrawElements(int mode, int count, int type, Buffer indices, int indices_offset); - public static void glDrawElements(int mode, int count, int type, int buffer_offset) { - assert VBOTracker.getVBOElementStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglDrawElementsVBO(mode, count, type, buffer_offset); - } - private static native void nglDrawElementsVBO(int mode, int count, int type, int buffer_offset); - public static native void glDrawBuffer(int mode); - public static native void glDrawArrays(int mode, int first, int count); - public static native void glDepthRange(double zNear, double zFar); - public static native void glDepthMask(boolean flag); - public static native void glDepthFunc(int func); - public static void glFeedbackBuffer(int type, FloatBuffer buffer) { - nglFeedbackBuffer(buffer.remaining(), type, buffer, buffer.position()); - } - private static native void nglFeedbackBuffer(int size, int type, FloatBuffer buffer, int buffer_offset); - public static void glGetPixelMap(int map, FloatBuffer values) { - nglGetPixelMapfv(map, values, values.position()); - } - private static native void nglGetPixelMapfv(int map, FloatBuffer values, int values_offset); - public static void glGetPixelMap(int map, IntBuffer values) { - nglGetPixelMapuiv(map, values, values.position()); - } - private static native void nglGetPixelMapuiv(int map, IntBuffer values, int values_offset); - public static void glGetPixelMap(int map, ShortBuffer values) { - nglGetPixelMapusv(map, values, values.position()); - } - private static native void nglGetPixelMapusv(int map, ShortBuffer values, int values_offset); - public static void glGetMaterial(int face, int pname, FloatBuffer params) { - nglGetMaterialfv(face, pname, params, params.position()); - } - private static native void nglGetMaterialfv(int face, int pname, FloatBuffer params, int params_offset); - public static void glGetMaterial(int face, int pname, IntBuffer params) { - nglGetMaterialiv(face, pname, params, params.position()); - } - private static native void nglGetMaterialiv(int face, int pname, IntBuffer params, int params_offset); - public static void glGetMap(int target, int query, FloatBuffer v) { - nglGetMapfv(target, query, v, v.position()); - } - public static void glGetMap(int target, int query, IntBuffer v) { - nglGetMapiv(target, query, v, v.position()); - } - private static native void nglGetMapfv(int target, int query, FloatBuffer v, int v_offset); - private static native void nglGetMapiv(int target, int query, IntBuffer v, int v_offset); - public static void glGetLight(int light, int pname, FloatBuffer params) { - nglGetLightfv(light, pname, params, params.position()); - } - private static native void nglGetLightfv(int light, int pname, FloatBuffer params, int params_offset); - public static void glGetLight(int light, int pname, IntBuffer params) { - nglGetLightiv(light, pname, params, params.position()); - } - private static native void nglGetLightiv(int light, int pname, IntBuffer params, int params_offset); - public static native int glGetError(); - public static void glGetClipPlane(int plane, DoubleBuffer equation) { - nglGetClipPlane(plane, equation, equation.position()); - } - private static native void nglGetClipPlane(int plane, DoubleBuffer equation, int equation_offset); - public static void glGetBoolean(int pname, ByteBuffer params) { - nglGetBooleanv(pname, params, params.position()); - } - private static native void nglGetBooleanv(int pname, ByteBuffer params, int params_offset); - public static void glGetDouble(int pname, DoubleBuffer params) { - nglGetDoublev(pname, params, params.position()); - } - private static native void nglGetDoublev(int pname, DoubleBuffer params, int params_offset); - public static void glGetFloat(int pname, FloatBuffer params) { - nglGetFloatv(pname, params, params.position()); - } - private static native void nglGetFloatv(int pname, FloatBuffer params, int params_offset); - public static void glGetInteger(int pname, IntBuffer params) { - nglGetIntegerv(pname, params, params.position()); - } - private static native void nglGetIntegerv(int pname, IntBuffer params, int params_offset); - public static void glGenTextures(IntBuffer textures) { - nglGenTextures(textures.remaining(), textures, textures.position()); - } - private static native void nglGenTextures(int n, IntBuffer textures, int textures_offset); - public static native int glGenLists(int range); - public static native void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar); - public static native void glFrontFace(int mode); - public static native void glFogf(int pname, float param); - public static native void glFogi(int pname, int param); - public static void glFog(int pname, FloatBuffer params) { - nglFogfv(pname, params, params.position()); - } - private static native void nglFogfv(int pname, FloatBuffer params, int params_offset); - public static void glFog(int pname, IntBuffer params) { - nglFogiv(pname, params, params.position()); - } - private static native void nglFogiv(int pname, IntBuffer params, int params_offset); - public static native void glFlush(); - public static native void glFinish(); - /** - * Fetch a pointer from OpenGL. Will return a ByteBuffer representing the pointer, where - * the size argument specifies the buffer size in bytes. - * - * @param size The size of the memory area pointed to. This is the size of the returned ByteBuffer. - * @return The ByteBuffer of the specified size pointing to the returned address. - */ - public static native ByteBuffer glGetPointerv(int pname, int size); - public static native boolean glIsEnabled(int cap); - public static void glInterleavedArrays(int format, int stride, ByteBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglInterleavedArrays(format, stride, pointer, pointer.position()); - } - public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglInterleavedArrays(format, stride, pointer, pointer.position() << 1); - } - public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglInterleavedArrays(format, stride, pointer, pointer.position() << 2); - } - public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglInterleavedArrays(format, stride, pointer, pointer.position() << 2); - } - private static native void nglInterleavedArrays(int format, int stride, Buffer pointer, int pointer_offset); - public static void glInterleavedArrays(int format, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglInterleavedArraysVBO(format, stride, buffer_offset); - } - private static native void nglInterleavedArraysVBO(int format, int stride, int buffer_offset); - public static native void glInitNames(); - public static native void glHint(int target, int mode); - public static void glGetTexParameter(int target, int pname, FloatBuffer params) { - nglGetTexParameterfv(target, pname, params, params.position()); - } - private static native void nglGetTexParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static void glGetTexParameter(int target, int pname, IntBuffer params) { - nglGetTexParameteriv(target, pname, params, params.position()); - } - private static native void nglGetTexParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static void glGetTexLevelParameter(int target, int level, int pname, FloatBuffer params) { - nglGetTexLevelParameterfv(target, level, pname, params, params.position()); - } - private static native void nglGetTexLevelParameterfv(int target, int level, int pname, FloatBuffer params, int params_offset); - public static void glGetTexLevelParameter(int target, int level, int pname, IntBuffer params) { - nglGetTexLevelParameteriv(target, level, pname, params, params.position()); - } - private static native void nglGetTexLevelParameteriv(int target, int level, int pname, IntBuffer params, int params_offset); - public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) { - nglGetTexImage(target, level, format, type, pixels, pixels.position()); - } - public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) { - nglGetTexImage(target, level, format, type, pixels, pixels.position() << 1); - } - public static void glGetTexImage(int target, int level, int format, int type, IntBuffer pixels) { - nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2); - } - private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_offset); - - public static void glGetTexGen(int coord, int pname, FloatBuffer params) { - nglGetTexGenfv(coord, pname, params, params.position()); - } - private static native void nglGetTexGenfv(int coord, int pname, FloatBuffer params, int params_offset); - - public static void glGetTexEnv(int coord, int pname, IntBuffer params) { - nglGetTexEnviv(coord, pname, params, params.position()); - } - private static native void nglGetTexEnviv(int coord, int pname, IntBuffer params, int params_offset); - public static void glGetTexEnv(int coord, int pname, FloatBuffer params) { - nglGetTexEnvfv(coord, pname, params, params.position()); - } - private static native void nglGetTexEnvfv(int coord, int pname, FloatBuffer params, int params_offset); - - public static native String glGetString(int name); - public static void glGetPolygonStipple(ByteBuffer mask) { - nglGetPolygonStipple(mask, mask.position()); - } - private static native void nglGetPolygonStipple(ByteBuffer mask, int mask_offset); - public static native boolean glIsList(int list); - public static native void glMaterialf(int face, int pname, float param); - public static native void glMateriali(int face, int pname, int param); - public static void glMaterial(int face, int pname, FloatBuffer params) { - nglMaterialfv(face, pname, params, params.position()); - } - private static native void nglMaterialfv(int face, int pname, FloatBuffer params, int params_offset); - public static void glMaterial(int face, int pname, IntBuffer params) { - nglMaterialiv(face, pname, params, params.position()); - } - private static native void nglMaterialiv(int face, int pname, IntBuffer params, int params_offset); - public static native void glMapGrid1f(int un, float u1, float u2); - public static native void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2); - public static void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) { - nglMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points, points.position()); - } - private static native void nglMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points, int points_offset); - public static void glMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points) { - nglMap1f(target, u1, u2, stride, order, points, points.position()); - } - private static native void nglMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points, int points_offset); - public static native void glLogicOp(int opcode); - public static native void glLoadName(int name); - public static void glLoadMatrix(FloatBuffer m) { - nglLoadMatrixf(m, m.position()); - } - private static native void nglLoadMatrixf(FloatBuffer m, int m_offset); - public static native void glLoadIdentity(); - public static native void glListBase(int base); - public static native void glLineWidth(float width); - public static native void glLineStipple(int factor, short pattern); - public static native void glLightModelf(int pname, float param); - public static native void glLightModeli(int pname, int param); - public static void glLightModel(int pname, FloatBuffer params) { - nglLightModelfv( pname, params, params.position()); - } - private static native void nglLightModelfv(int pname, FloatBuffer params, int params_offset); - public static void glLightModel(int pname, IntBuffer params) { - nglLightModeliv(pname, params, params.position()); - } - private static native void nglLightModeliv(int pname, IntBuffer params, int params_offset); - public static native void glLightf(int light, int pname, float param); - public static native void glLighti(int light, int pname, int param); - public static void glLightfv(int light, int pname, FloatBuffer params) { - nglLightfv(light, pname, params, params.position()); - } - private static native void nglLightfv(int light, int pname, FloatBuffer params, int params_offset); - public static void glLightiv(int light, int pname, IntBuffer params) { - nglLightiv(light, pname, params, params.position()); - } - private static native void nglLightiv(int light, int pname, IntBuffer params, int params_offset); - public static native boolean glIsTexture(int texture); - public static native void glMatrixMode(int mode); - public static void glPolygonStipple(ByteBuffer mask) { - nglPolygonStipple(mask, mask.position()); - } - private static native void nglPolygonStipple(ByteBuffer mask, int mask_offset); - public static native void glPolygonOffset(float factor, float units); - public static native void glPolygonMode(int face, int mode); - public static native void glPointSize(float size); - public static native void glPixelZoom(float xfactor, float yfactor); - public static native void glPixelTransferf(int pname, float param); - public static native void glPixelTransferi(int pname, int param); - public static native void glPixelStoref(int pname, float param); - public static native void glPixelStorei(int pname, int param); - public static void glPixelMap(int map, FloatBuffer values) { - nglPixelMapfv(map, values.remaining(), values, values.position()); - } - private static native void nglPixelMapfv(int map, int mapsize, FloatBuffer values, int values_offset); - public static void glPixelMap(int map, IntBuffer values) { - nglPixelMapuiv(map, values.remaining(), values, values.position()); - } - private static native void nglPixelMapuiv(int map, int mapsize, IntBuffer values, int values_offset); - public static void glPixelMap(int map, ShortBuffer values) { - nglPixelMapusv(map, values.remaining(), values, values.position()); - } - private static native void nglPixelMapusv(int map, int mapsize, ShortBuffer values, int values_offset); - public static native void glPassThrough(float token); - public static native void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar); - public static void glNormalPointer(int stride, ByteBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglNormalPointer(GL_BYTE, stride, pointer, pointer.position()); - } - public static void glNormalPointer(int stride, IntBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglNormalPointer(GL_INT, stride, pointer, pointer.position() << 2); - } - public static void glNormalPointer(int stride, FloatBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglNormalPointer(GL_FLOAT, stride, pointer, pointer.position() << 2); - } - private static native void nglNormalPointer(int type, int stride, Buffer pointer, int pointer_offset); - public static void glNormalPointer(int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglNormalPointerVBO(type, stride, buffer_offset); - } - private static native void nglNormalPointerVBO(int type, int stride, int buffer_offset); - public static native void glNormal3b(byte nx, byte ny, byte nz); - public static native void glNormal3f(float nx, float ny, float nz); - public static native void glNormal3i(int nx, int ny, int nz); - public static native void glNewList(int list, int mode); - public static native void glEndList(); - public static void glMultMatrixf(FloatBuffer m) { - nglMultMatrixf(m, m.position()); - } - private static native void nglMultMatrixf(FloatBuffer m, int m_offset); - public static native void glShadeModel(int mode); - public static void glSelectBuffer(IntBuffer buffer) { - nglSelectBuffer(buffer.remaining(), buffer, buffer.position()); - } - private static native void nglSelectBuffer(int size, IntBuffer buffer, int buffer_offset); - public static native void glScissor(int x, int y, int width, int height); - public static native void glScalef(float x, float y, float z); - public static native void glRotatef(float angle, float x, float y, float z); - public static native int glRenderMode(int mode); - public static native void glRectf(float x1, float y1, float x2, float y2); - public static native void glRecti(int x1, int y1, int x2, int y2); - public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) { - nglReadPixels(x, y, width, height, format, type, pixels, pixels.position()); - } - public static void glReadPixels(int x, int y, int width, int height, int format, int type, ShortBuffer pixels) { - nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 1); - } - public static void glReadPixels(int x, int y, int width, int height, int format, int type, IntBuffer pixels) { - nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2); - } - private static native void nglReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels, int pixels_offset); - public static native void glReadBuffer(int mode); - public static native void glRasterPos2f(float x, float y); - public static native void glRasterPos2i(int x, int y); - public static native void glRasterPos3f(float x, float y, float z); - public static native void glRasterPos3i(int x, int y, int z); - public static native void glRasterPos4f(float x, float y, float z, float w); - public static native void glRasterPos4i(int x, int y, int z, int w); - public static native void glPushName(int name); - public static native void glPopName(); - public static native void glPushMatrix(); - public static native void glPopMatrix(); - public static void glPushClientAttrib(int mask) { - VBOTracker.getClientAttribStack().pushState(); - VBOTracker.getClientAttribStack().setState(mask); - if ((mask & GL_CLIENT_VERTEX_ARRAY_BIT) != 0) { - VBOTracker.getVBOArrayStack().pushState(); - VBOTracker.getVBOElementStack().pushState(); - } - nglPushClientAttrib(mask); - } - private static native void nglPushClientAttrib(int mask); - public static void glPopClientAttrib() { - if ((VBOTracker.getClientAttribStack().popState() & GL_CLIENT_VERTEX_ARRAY_BIT) != 0) { - VBOTracker.getVBOArrayStack().popState(); - VBOTracker.getVBOElementStack().popState(); - } - nglPopClientAttrib(); - } - private static native void nglPopClientAttrib(); - public static native void glPushAttrib(int mask); - public static native void glPopAttrib(); - public static native void glStencilFunc(int func, int ref, int mask); - public static void glVertexPointer(int size, int stride, FloatBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexPointer(size, GL_FLOAT, stride, pointer, pointer.position() << 2); - } - public static void glVertexPointer(int size, int stride, IntBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexPointer(size, GL_INT, stride, pointer, pointer.position() << 2); - } - private static native void nglVertexPointer(int size, int type, int stride, Buffer pointer, int pointer_offset); - public static void glVertexPointer(int size, int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglVertexPointerVBO(size, type, stride, buffer_offset); - } - private static native void nglVertexPointerVBO(int size, int type, int stride, int buffer_offset); - public static native void glVertex2f(float x, float y); - public static native void glVertex2i(int x, int y); - public static native void glVertex3f(float x, float y, float z); - public static native void glVertex3i(int x, int y, int z); - public static native void glVertex4f(float x, float y, float z, float w); - public static native void glVertex4i(int x, int y, int z, int w); - public static native void glTranslatef(float x, float y, float z); - public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ByteBuffer pixels) { - nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position()); - } - public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer pixels) { - nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1); - } - public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) { - nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels, int pixels_offset); - public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ByteBuffer pixels) { - nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position()); - } - public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) { - nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1); - } - public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) { - nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, Buffer pixels, int pixels_offset); - public static native void glTexParameterf(int target, int pname, float param); - public static native void glTexParameteri(int target, int pname, int param); - public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) { - nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels.position()); - } - public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ShortBuffer pixels) { - nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels.position() << 1); - } - public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) { - nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels.position() << 2); - } - public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, FloatBuffer pixels) { - nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels, int pixels_offset); - public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ByteBuffer pixels) { - nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels.position()); - } - public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) { - nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels.position() << 1); - } - public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) { - nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels.position() << 2); - } - public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) { - nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, Buffer pixels, int pixels_offset); - public static native void glTexGenf(int coord, int pname, float param); - public static void glTexGen(int coord, int pname, FloatBuffer params) { - nglTexGenfv(coord, pname, params, params.position()); - } - private static native void nglTexGenfv(int coord, int pname, FloatBuffer params, int params_offset); - public static native void glTexGeni(int coord, int pname, int param); - public static void glTexGen(int coord, int pname, IntBuffer params) { - nglTexGeniv(coord, pname, params, params.position()); - } - private static native void nglTexGeniv(int coord, int pname, IntBuffer params, int params_offset); - public static native void glTexEnvf(int target, int pname, float param); - public static native void glTexEnvi(int target, int pname, int param); - public static void glTexEnv(int target, int pname, FloatBuffer params) { - nglTexEnvfv(target, pname, params, params.position()); - } - private static native void nglTexEnvfv(int target, int pname, FloatBuffer params, int params_offset); - public static void glTexEnv(int target, int pname, IntBuffer params) { - nglTexEnviv(target, pname, params, params.position()); - } - private static native void nglTexEnviv(int target, int pname, IntBuffer params, int params_offset); - public static void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglTexCoordPointer(size, GL_FLOAT, stride, pointer, pointer.position() << 2); - } - private static native void nglTexCoordPointer(int size, int type, int stride, Buffer pointer, int pointer_offset); - public static void glTexCoordPointer(int size, int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglTexCoordPointerVBO(size, type, stride, buffer_offset); - } - private static native void nglTexCoordPointerVBO(int size, int type, int stride, int buffer_offset); - public static native void glTexCoord1f(float s); - public static native void glTexCoord2f(float s, float t); - public static native void glTexCoord3f(float s, float t, float r); - public static native void glTexCoord4f(float s, float t, float r, float q); - public static native void glStencilOp(int fail, int zfail, int zpass); - public static native void glStencilMask(int mask); - public static native void glViewport(int x, int y, int width, int height); -} - diff --git a/src/java/org/lwjgl/opengl/CoreGL11Constants.java b/src/java/org/lwjgl/opengl/CoreGL11Constants.java deleted file mode 100644 index 13ade8e3..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL11Constants.java +++ /dev/null @@ -1,1056 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -/** - * $Id$ - * - * Core OpenGL 1.1 constants. - * - * @author cix_foo - * @version $Revision$ - */ -public interface CoreGL11Constants { - /* AccumOp */ - public static final int GL_ACCUM = 0x0100; - public static final int GL_LOAD = 0x0101; - public static final int GL_RETURN = 0x0102; - public static final int GL_MULT = 0x0103; - public static final int GL_ADD = 0x0104; - - /* AlphaFunction */ - public static final int GL_NEVER = 0x0200; - public static final int GL_LESS = 0x0201; - public static final int GL_EQUAL = 0x0202; - public static final int GL_LEQUAL = 0x0203; - public static final int GL_GREATER = 0x0204; - public static final int GL_NOTEQUAL = 0x0205; - public static final int GL_GEQUAL = 0x0206; - public static final int GL_ALWAYS = 0x0207; - - /* AttribMask */ - public static final int GL_CURRENT_BIT = 0x00000001; - public static final int GL_POINT_BIT = 0x00000002; - public static final int GL_LINE_BIT = 0x00000004; - public static final int GL_POLYGON_BIT = 0x00000008; - public static final int GL_POLYGON_STIPPLE_BIT = 0x00000010; - public static final int GL_PIXEL_MODE_BIT = 0x00000020; - public static final int GL_LIGHTING_BIT = 0x00000040; - public static final int GL_FOG_BIT = 0x00000080; - public static final int GL_DEPTH_BUFFER_BIT = 0x00000100; - public static final int GL_ACCUM_BUFFER_BIT = 0x00000200; - public static final int GL_STENCIL_BUFFER_BIT = 0x00000400; - public static final int GL_VIEWPORT_BIT = 0x00000800; - public static final int GL_TRANSFORM_BIT = 0x00001000; - public static final int GL_ENABLE_BIT = 0x00002000; - public static final int GL_COLOR_BUFFER_BIT = 0x00004000; - public static final int GL_HINT_BIT = 0x00008000; - public static final int GL_EVAL_BIT = 0x00010000; - public static final int GL_LIST_BIT = 0x00020000; - public static final int GL_TEXTURE_BIT = 0x00040000; - public static final int GL_SCISSOR_BIT = 0x00080000; - public static final int GL_ALL_ATTRIB_BITS = 0x000fffff; - - /* BeginMode */ - public static final int GL_POINTS = 0x0000; - public static final int GL_LINES = 0x0001; - public static final int GL_LINE_LOOP = 0x0002; - public static final int GL_LINE_STRIP = 0x0003; - public static final int GL_TRIANGLES = 0x0004; - public static final int GL_TRIANGLE_STRIP = 0x0005; - public static final int GL_TRIANGLE_FAN = 0x0006; - public static final int GL_QUADS = 0x0007; - public static final int GL_QUAD_STRIP = 0x0008; - public static final int GL_POLYGON = 0x0009; - - /* BlendingFactorDest */ - public static final int GL_ZERO = 0; - public static final int GL_ONE = 1; - public static final int GL_SRC_COLOR = 0x0300; - public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301; - public static final int GL_SRC_ALPHA = 0x0302; - public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303; - public static final int GL_DST_ALPHA = 0x0304; - public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305; - - /* BlendingFactorSrc */ - /* GL_ZERO */ - /* GL_ONE */ - public static final int GL_DST_COLOR = 0x0306; - public static final int GL_ONE_MINUS_DST_COLOR = 0x0307; - public static final int GL_SRC_ALPHA_SATURATE = 0x0308; - public static final int GL_CONSTANT_COLOR = 0x8001; - public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; - public static final int GL_CONSTANT_ALPHA = 0x8003; - public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; - - /* GL_SRC_ALPHA */ - /* GL_ONE_MINUS_SRC_ALPHA */ - /* GL_DST_ALPHA */ - /* GL_ONE_MINUS_DST_ALPHA */ - - /* Boolean */ - public static final int GL_TRUE = 1; - public static final int GL_FALSE = 0; - - /* ClearBufferMask */ - /* GL_COLOR_BUFFER_BIT */ - /* GL_ACCUM_BUFFER_BIT */ - /* GL_STENCIL_BUFFER_BIT */ - /* GL_DEPTH_BUFFER_BIT */ - - /* ClientArrayType */ - /* GL_VERTEX_ARRAY */ - /* GL_NORMAL_ARRAY */ - /* GL_COLOR_ARRAY */ - /* GL_INDEX_ARRAY */ - /* GL_TEXTURE_COORD_ARRAY */ - /* GL_EDGE_FLAG_ARRAY */ - - /* ClipPlaneName */ - public static final int GL_CLIP_PLANE0 = 0x3000; - public static final int GL_CLIP_PLANE1 = 0x3001; - public static final int GL_CLIP_PLANE2 = 0x3002; - public static final int GL_CLIP_PLANE3 = 0x3003; - public static final int GL_CLIP_PLANE4 = 0x3004; - public static final int GL_CLIP_PLANE5 = 0x3005; - - /* ColorMaterialFace */ - /* GL_FRONT */ - /* GL_BACK */ - /* GL_FRONT_AND_BACK */ - - /* ColorMaterialParameter */ - /* GL_AMBIENT */ - /* GL_DIFFUSE */ - /* GL_SPECULAR */ - /* GL_EMISSION */ - /* GL_AMBIENT_AND_DIFFUSE */ - - /* ColorPointerType */ - /* GL_BYTE */ - /* GL_UNSIGNED_BYTE */ - /* GL_SHORT */ - /* GL_UNSIGNED_SHORT */ - /* GL_INT */ - /* GL_UNSIGNED_INT */ - /* GL_FLOAT */ - /* GL_DOUBLE */ - - /* CullFaceMode */ - /* GL_FRONT */ - /* GL_BACK */ - /* GL_FRONT_AND_BACK */ - - /* DataType */ - public static final int GL_BYTE = 0x1400; - public static final int GL_UNSIGNED_BYTE = 0x1401; - public static final int GL_SHORT = 0x1402; - public static final int GL_UNSIGNED_SHORT = 0x1403; - public static final int GL_INT = 0x1404; - public static final int GL_UNSIGNED_INT = 0x1405; - public static final int GL_FLOAT = 0x1406; - public static final int GL_2_BYTES = 0x1407; - public static final int GL_3_BYTES = 0x1408; - public static final int GL_4_BYTES = 0x1409; - public static final int GL_DOUBLE = 0x140A; - - /* DepthFunction */ - /* GL_NEVER */ - /* GL_LESS */ - /* GL_EQUAL */ - /* GL_LEQUAL */ - /* GL_GREATER */ - /* GL_NOTEQUAL */ - /* GL_GEQUAL */ - /* GL_ALWAYS */ - - /* DrawBufferMode */ - public static final int GL_NONE = 0; - public static final int GL_FRONT_LEFT = 0x0400; - public static final int GL_FRONT_RIGHT = 0x0401; - public static final int GL_BACK_LEFT = 0x0402; - public static final int GL_BACK_RIGHT = 0x0403; - public static final int GL_FRONT = 0x0404; - public static final int GL_BACK = 0x0405; - public static final int GL_LEFT = 0x0406; - public static final int GL_RIGHT = 0x0407; - public static final int GL_FRONT_AND_BACK = 0x0408; - public static final int GL_AUX0 = 0x0409; - public static final int GL_AUX1 = 0x040A; - public static final int GL_AUX2 = 0x040B; - public static final int GL_AUX3 = 0x040C; - - /* Enable */ - /* GL_FOG */ - /* GL_LIGHTING */ - /* GL_TEXTURE_1D */ - /* GL_TEXTURE_2D */ - /* GL_LINE_STIPPLE */ - /* GL_POLYGON_STIPPLE */ - /* GL_CULL_FACE */ - /* GL_ALPHA_TEST */ - /* GL_BLEND */ - /* GL_INDEX_LOGIC_OP */ - /* GL_COLOR_LOGIC_OP */ - /* GL_DITHER */ - /* GL_STENCIL_TEST */ - /* GL_DEPTH_TEST */ - /* GL_CLIP_PLANE0 */ - /* GL_CLIP_PLANE1 */ - /* GL_CLIP_PLANE2 */ - /* GL_CLIP_PLANE3 */ - /* GL_CLIP_PLANE4 */ - /* GL_CLIP_PLANE5 */ - /* GL_LIGHT0 */ - /* GL_LIGHT1 */ - /* GL_LIGHT2 */ - /* GL_LIGHT3 */ - /* GL_LIGHT4 */ - /* GL_LIGHT5 */ - /* GL_LIGHT6 */ - /* GL_LIGHT7 */ - /* GL_TEXTURE_GEN_S */ - /* GL_TEXTURE_GEN_T */ - /* GL_TEXTURE_GEN_R */ - /* GL_TEXTURE_GEN_Q */ - /* GL_MAP1_VERTEX_3 */ - /* GL_MAP1_VERTEX_4 */ - /* GL_MAP1_COLOR_4 */ - /* GL_MAP1_INDEX */ - /* GL_MAP1_NORMAL */ - /* GL_MAP1_TEXTURE_COORD_1 */ - /* GL_MAP1_TEXTURE_COORD_2 */ - /* GL_MAP1_TEXTURE_COORD_3 */ - /* GL_MAP1_TEXTURE_COORD_4 */ - /* GL_MAP2_VERTEX_3 */ - /* GL_MAP2_VERTEX_4 */ - /* GL_MAP2_COLOR_4 */ - /* GL_MAP2_INDEX */ - /* GL_MAP2_NORMAL */ - /* GL_MAP2_TEXTURE_COORD_1 */ - /* GL_MAP2_TEXTURE_COORD_2 */ - /* GL_MAP2_TEXTURE_COORD_3 */ - /* GL_MAP2_TEXTURE_COORD_4 */ - /* GL_POINT_SMOOTH */ - /* GL_LINE_SMOOTH */ - /* GL_POLYGON_SMOOTH */ - /* GL_SCISSOR_TEST */ - /* GL_COLOR_MATERIAL */ - /* GL_NORMALIZE */ - /* GL_AUTO_NORMAL */ - /* GL_VERTEX_ARRAY */ - /* GL_NORMAL_ARRAY */ - /* GL_COLOR_ARRAY */ - /* GL_INDEX_ARRAY */ - /* GL_TEXTURE_COORD_ARRAY */ - /* GL_EDGE_FLAG_ARRAY */ - /* GL_POLYGON_OFFSET_POINT */ - /* GL_POLYGON_OFFSET_LINE */ - /* GL_POLYGON_OFFSET_FILL */ - - /* ErrorCode */ - public static final int GL_NO_ERROR = 0; - public static final int GL_INVALID_ENUM = 0x0500; - public static final int GL_INVALID_VALUE = 0x0501; - public static final int GL_INVALID_OPERATION = 0x0502; - public static final int GL_STACK_OVERFLOW = 0x0503; - public static final int GL_STACK_UNDERFLOW = 0x0504; - public static final int GL_OUT_OF_MEMORY = 0x0505; - - /* FeedBackMode */ - public static final int GL_2D = 0x0600; - public static final int GL_3D = 0x0601; - public static final int GL_3D_COLOR = 0x0602; - public static final int GL_3D_COLOR_TEXTURE = 0x0603; - public static final int GL_4D_COLOR_TEXTURE = 0x0604; - - /* FeedBackToken */ - public static final int GL_PASS_THROUGH_TOKEN = 0x0700; - public static final int GL_POINT_TOKEN = 0x0701; - public static final int GL_LINE_TOKEN = 0x0702; - public static final int GL_POLYGON_TOKEN = 0x0703; - public static final int GL_BITMAP_TOKEN = 0x0704; - public static final int GL_DRAW_PIXEL_TOKEN = 0x0705; - public static final int GL_COPY_PIXEL_TOKEN = 0x0706; - public static final int GL_LINE_RESET_TOKEN = 0x0707; - - /* FogMode */ - /* GL_LINEAR */ - public static final int GL_EXP = 0x0800; - public static final int GL_EXP2 = 0x0801; - - - /* FogParameter */ - /* GL_FOG_COLOR */ - /* GL_FOG_DENSITY */ - /* GL_FOG_END */ - /* GL_FOG_INDEX */ - /* GL_FOG_MODE */ - /* GL_FOG_START */ - - /* FrontFaceDirection */ - public static final int GL_CW = 0x0900; - public static final int GL_CCW = 0x0901; - - /* GetMapTarget */ - public static final int GL_COEFF = 0x0A00; - public static final int GL_ORDER = 0x0A01; - public static final int GL_DOMAIN = 0x0A02; - - /* GetPixelMap */ - /* GL_PIXEL_MAP_I_TO_I */ - /* GL_PIXEL_MAP_S_TO_S */ - /* GL_PIXEL_MAP_I_TO_R */ - /* GL_PIXEL_MAP_I_TO_G */ - /* GL_PIXEL_MAP_I_TO_B */ - /* GL_PIXEL_MAP_I_TO_A */ - /* GL_PIXEL_MAP_R_TO_R */ - /* GL_PIXEL_MAP_G_TO_G */ - /* GL_PIXEL_MAP_B_TO_B */ - /* GL_PIXEL_MAP_A_TO_A */ - - /* GetPointerTarget */ - /* GL_VERTEX_ARRAY_POINTER */ - /* GL_NORMAL_ARRAY_POINTER */ - /* GL_COLOR_ARRAY_POINTER */ - /* GL_INDEX_ARRAY_POINTER */ - /* GL_TEXTURE_COORD_ARRAY_POINTER */ - /* GL_EDGE_FLAG_ARRAY_POINTER */ - - /* GetTarget */ - public static final int GL_CURRENT_COLOR = 0x0B00; - public static final int GL_CURRENT_INDEX = 0x0B01; - public static final int GL_CURRENT_NORMAL = 0x0B02; - public static final int GL_CURRENT_TEXTURE_COORDS = 0x0B03; - public static final int GL_CURRENT_RASTER_COLOR = 0x0B04; - public static final int GL_CURRENT_RASTER_INDEX = 0x0B05; - public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06; - public static final int GL_CURRENT_RASTER_POSITION = 0x0B07; - public static final int GL_CURRENT_RASTER_POSITION_VALID = 0x0B08; - public static final int GL_CURRENT_RASTER_DISTANCE = 0x0B09; - public static final int GL_POINT_SMOOTH = 0x0B10; - public static final int GL_POINT_SIZE = 0x0B11; - public static final int GL_POINT_SIZE_RANGE = 0x0B12; - public static final int GL_POINT_SIZE_GRANULARITY = 0x0B13; - public static final int GL_LINE_SMOOTH = 0x0B20; - public static final int GL_LINE_WIDTH = 0x0B21; - public static final int GL_LINE_WIDTH_RANGE = 0x0B22; - public static final int GL_LINE_WIDTH_GRANULARITY = 0x0B23; - public static final int GL_LINE_STIPPLE = 0x0B24; - public static final int GL_LINE_STIPPLE_PATTERN = 0x0B25; - public static final int GL_LINE_STIPPLE_REPEAT = 0x0B26; - public static final int GL_LIST_MODE = 0x0B30; - public static final int GL_MAX_LIST_NESTING = 0x0B31; - public static final int GL_LIST_BASE = 0x0B32; - public static final int GL_LIST_INDEX = 0x0B33; - public static final int GL_POLYGON_MODE = 0x0B40; - public static final int GL_POLYGON_SMOOTH = 0x0B41; - public static final int GL_POLYGON_STIPPLE = 0x0B42; - public static final int GL_EDGE_FLAG = 0x0B43; - public static final int GL_CULL_FACE = 0x0B44; - public static final int GL_CULL_FACE_MODE = 0x0B45; - public static final int GL_FRONT_FACE = 0x0B46; - public static final int GL_LIGHTING = 0x0B50; - public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51; - public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52; - public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53; - public static final int GL_SHADE_MODEL = 0x0B54; - public static final int GL_COLOR_MATERIAL_FACE = 0x0B55; - public static final int GL_COLOR_MATERIAL_PARAMETER = 0x0B56; - public static final int GL_COLOR_MATERIAL = 0x0B57; - public static final int GL_FOG = 0x0B60; - public static final int GL_FOG_INDEX = 0x0B61; - public static final int GL_FOG_DENSITY = 0x0B62; - public static final int GL_FOG_START = 0x0B63; - public static final int GL_FOG_END = 0x0B64; - public static final int GL_FOG_MODE = 0x0B65; - public static final int GL_FOG_COLOR = 0x0B66; - public static final int GL_DEPTH_RANGE = 0x0B70; - public static final int GL_DEPTH_TEST = 0x0B71; - public static final int GL_DEPTH_WRITEMASK = 0x0B72; - public static final int GL_DEPTH_CLEAR_VALUE = 0x0B73; - public static final int GL_DEPTH_FUNC = 0x0B74; - public static final int GL_ACCUM_CLEAR_VALUE = 0x0B80; - public static final int GL_STENCIL_TEST = 0x0B90; - public static final int GL_STENCIL_CLEAR_VALUE = 0x0B91; - public static final int GL_STENCIL_FUNC = 0x0B92; - public static final int GL_STENCIL_VALUE_MASK = 0x0B93; - public static final int GL_STENCIL_FAIL = 0x0B94; - public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95; - public static final int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96; - public static final int GL_STENCIL_REF = 0x0B97; - public static final int GL_STENCIL_WRITEMASK = 0x0B98; - public static final int GL_MATRIX_MODE = 0x0BA0; - public static final int GL_NORMALIZE = 0x0BA1; - public static final int GL_VIEWPORT = 0x0BA2; - public static final int GL_MODELVIEW_STACK_DEPTH = 0x0BA3; - public static final int GL_PROJECTION_STACK_DEPTH = 0x0BA4; - public static final int GL_TEXTURE_STACK_DEPTH = 0x0BA5; - public static final int GL_MODELVIEW_MATRIX = 0x0BA6; - public static final int GL_PROJECTION_MATRIX = 0x0BA7; - public static final int GL_TEXTURE_MATRIX = 0x0BA8; - public static final int GL_ATTRIB_STACK_DEPTH = 0x0BB0; - public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1; - public static final int GL_ALPHA_TEST = 0x0BC0; - public static final int GL_ALPHA_TEST_FUNC = 0x0BC1; - public static final int GL_ALPHA_TEST_REF = 0x0BC2; - public static final int GL_DITHER = 0x0BD0; - public static final int GL_BLEND_DST = 0x0BE0; - public static final int GL_BLEND_SRC = 0x0BE1; - public static final int GL_BLEND = 0x0BE2; - public static final int GL_LOGIC_OP_MODE = 0x0BF0; - public static final int GL_INDEX_LOGIC_OP = 0x0BF1; - public static final int GL_COLOR_LOGIC_OP = 0x0BF2; - public static final int GL_AUX_BUFFERS = 0x0C00; - public static final int GL_DRAW_BUFFER = 0x0C01; - public static final int GL_READ_BUFFER = 0x0C02; - public static final int GL_SCISSOR_BOX = 0x0C10; - public static final int GL_SCISSOR_TEST = 0x0C11; - public static final int GL_INDEX_CLEAR_VALUE = 0x0C20; - public static final int GL_INDEX_WRITEMASK = 0x0C21; - public static final int GL_COLOR_CLEAR_VALUE = 0x0C22; - public static final int GL_COLOR_WRITEMASK = 0x0C23; - public static final int GL_INDEX_MODE = 0x0C30; - public static final int GL_RGBA_MODE = 0x0C31; - public static final int GL_DOUBLEBUFFER = 0x0C32; - public static final int GL_STEREO = 0x0C33; - public static final int GL_RENDER_MODE = 0x0C40; - public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; - public static final int GL_POINT_SMOOTH_HINT = 0x0C51; - public static final int GL_LINE_SMOOTH_HINT = 0x0C52; - public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53; - public static final int GL_FOG_HINT = 0x0C54; - public static final int GL_TEXTURE_GEN_S = 0x0C60; - public static final int GL_TEXTURE_GEN_T = 0x0C61; - public static final int GL_TEXTURE_GEN_R = 0x0C62; - public static final int GL_TEXTURE_GEN_Q = 0x0C63; - public static final int GL_PIXEL_MAP_I_TO_I = 0x0C70; - public static final int GL_PIXEL_MAP_S_TO_S = 0x0C71; - public static final int GL_PIXEL_MAP_I_TO_R = 0x0C72; - public static final int GL_PIXEL_MAP_I_TO_G = 0x0C73; - public static final int GL_PIXEL_MAP_I_TO_B = 0x0C74; - public static final int GL_PIXEL_MAP_I_TO_A = 0x0C75; - public static final int GL_PIXEL_MAP_R_TO_R = 0x0C76; - public static final int GL_PIXEL_MAP_G_TO_G = 0x0C77; - public static final int GL_PIXEL_MAP_B_TO_B = 0x0C78; - public static final int GL_PIXEL_MAP_A_TO_A = 0x0C79; - public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0; - public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1; - public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2; - public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3; - public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4; - public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5; - public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6; - public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7; - public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8; - public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9; - public static final int GL_UNPACK_SWAP_BYTES = 0x0CF0; - public static final int GL_UNPACK_LSB_FIRST = 0x0CF1; - public static final int GL_UNPACK_ROW_LENGTH = 0x0CF2; - public static final int GL_UNPACK_SKIP_ROWS = 0x0CF3; - public static final int GL_UNPACK_SKIP_PIXELS = 0x0CF4; - public static final int GL_UNPACK_ALIGNMENT = 0x0CF5; - public static final int GL_PACK_SWAP_BYTES = 0x0D00; - public static final int GL_PACK_LSB_FIRST = 0x0D01; - public static final int GL_PACK_ROW_LENGTH = 0x0D02; - public static final int GL_PACK_SKIP_ROWS = 0x0D03; - public static final int GL_PACK_SKIP_PIXELS = 0x0D04; - public static final int GL_PACK_ALIGNMENT = 0x0D05; - public static final int GL_MAP_COLOR = 0x0D10; - public static final int GL_MAP_STENCIL = 0x0D11; - public static final int GL_INDEX_SHIFT = 0x0D12; - public static final int GL_INDEX_OFFSET = 0x0D13; - public static final int GL_RED_SCALE = 0x0D14; - public static final int GL_RED_BIAS = 0x0D15; - public static final int GL_ZOOM_X = 0x0D16; - public static final int GL_ZOOM_Y = 0x0D17; - public static final int GL_GREEN_SCALE = 0x0D18; - public static final int GL_GREEN_BIAS = 0x0D19; - public static final int GL_BLUE_SCALE = 0x0D1A; - public static final int GL_BLUE_BIAS = 0x0D1B; - public static final int GL_ALPHA_SCALE = 0x0D1C; - public static final int GL_ALPHA_BIAS = 0x0D1D; - public static final int GL_DEPTH_SCALE = 0x0D1E; - public static final int GL_DEPTH_BIAS = 0x0D1F; - public static final int GL_MAX_EVAL_ORDER = 0x0D30; - public static final int GL_MAX_LIGHTS = 0x0D31; - public static final int GL_MAX_CLIP_PLANES = 0x0D32; - public static final int GL_MAX_TEXTURE_SIZE = 0x0D33; - public static final int GL_MAX_PIXEL_MAP_TABLE = 0x0D34; - public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35; - public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36; - public static final int GL_MAX_NAME_STACK_DEPTH = 0x0D37; - public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38; - public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39; - public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A; - public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B; - public static final int GL_SUBPIXEL_BITS = 0x0D50; - public static final int GL_INDEX_BITS = 0x0D51; - public static final int GL_RED_BITS = 0x0D52; - public static final int GL_GREEN_BITS = 0x0D53; - public static final int GL_BLUE_BITS = 0x0D54; - public static final int GL_ALPHA_BITS = 0x0D55; - public static final int GL_DEPTH_BITS = 0x0D56; - public static final int GL_STENCIL_BITS = 0x0D57; - public static final int GL_ACCUM_RED_BITS = 0x0D58; - public static final int GL_ACCUM_GREEN_BITS = 0x0D59; - public static final int GL_ACCUM_BLUE_BITS = 0x0D5A; - public static final int GL_ACCUM_ALPHA_BITS = 0x0D5B; - public static final int GL_NAME_STACK_DEPTH = 0x0D70; - public static final int GL_AUTO_NORMAL = 0x0D80; - public static final int GL_MAP1_COLOR_4 = 0x0D90; - public static final int GL_MAP1_INDEX = 0x0D91; - public static final int GL_MAP1_NORMAL = 0x0D92; - public static final int GL_MAP1_TEXTURE_COORD_1 = 0x0D93; - public static final int GL_MAP1_TEXTURE_COORD_2 = 0x0D94; - public static final int GL_MAP1_TEXTURE_COORD_3 = 0x0D95; - public static final int GL_MAP1_TEXTURE_COORD_4 = 0x0D96; - public static final int GL_MAP1_VERTEX_3 = 0x0D97; - public static final int GL_MAP1_VERTEX_4 = 0x0D98; - public static final int GL_MAP2_COLOR_4 = 0x0DB0; - public static final int GL_MAP2_INDEX = 0x0DB1; - public static final int GL_MAP2_NORMAL = 0x0DB2; - public static final int GL_MAP2_TEXTURE_COORD_1 = 0x0DB3; - public static final int GL_MAP2_TEXTURE_COORD_2 = 0x0DB4; - public static final int GL_MAP2_TEXTURE_COORD_3 = 0x0DB5; - public static final int GL_MAP2_TEXTURE_COORD_4 = 0x0DB6; - public static final int GL_MAP2_VERTEX_3 = 0x0DB7; - public static final int GL_MAP2_VERTEX_4 = 0x0DB8; - public static final int GL_MAP1_GRID_DOMAIN = 0x0DD0; - public static final int GL_MAP1_GRID_SEGMENTS = 0x0DD1; - public static final int GL_MAP2_GRID_DOMAIN = 0x0DD2; - public static final int GL_MAP2_GRID_SEGMENTS = 0x0DD3; - public static final int GL_TEXTURE_1D = 0x0DE0; - public static final int GL_TEXTURE_2D = 0x0DE1; - public static final int GL_FEEDBACK_BUFFER_POINTER = 0x0DF0; - public static final int GL_FEEDBACK_BUFFER_SIZE = 0x0DF1; - public static final int GL_FEEDBACK_BUFFER_TYPE = 0x0DF2; - public static final int GL_SELECTION_BUFFER_POINTER = 0x0DF3; - public static final int GL_SELECTION_BUFFER_SIZE = 0x0DF4; - /* GL_TEXTURE_BINDING_1D */ - /* GL_TEXTURE_BINDING_2D */ - /* GL_VERTEX_ARRAY */ - /* GL_NORMAL_ARRAY */ - /* GL_COLOR_ARRAY */ - /* GL_INDEX_ARRAY */ - /* GL_TEXTURE_COORD_ARRAY */ - /* GL_EDGE_FLAG_ARRAY */ - /* GL_VERTEX_ARRAY_SIZE */ - /* GL_VERTEX_ARRAY_TYPE */ - /* GL_VERTEX_ARRAY_STRIDE */ - /* GL_NORMAL_ARRAY_TYPE */ - /* GL_NORMAL_ARRAY_STRIDE */ - /* GL_COLOR_ARRAY_SIZE */ - /* GL_COLOR_ARRAY_TYPE */ - /* GL_COLOR_ARRAY_STRIDE */ - /* GL_INDEX_ARRAY_TYPE */ - /* GL_INDEX_ARRAY_STRIDE */ - /* GL_TEXTURE_COORD_ARRAY_SIZE */ - /* GL_TEXTURE_COORD_ARRAY_TYPE */ - /* GL_TEXTURE_COORD_ARRAY_STRIDE */ - /* GL_EDGE_FLAG_ARRAY_STRIDE */ - /* GL_POLYGON_OFFSET_FACTOR */ - /* GL_POLYGON_OFFSET_UNITS */ - - /* GetTextureParameter */ - /* GL_TEXTURE_MAG_FILTER */ - /* GL_TEXTURE_MIN_FILTER */ - /* GL_TEXTURE_WRAP_S */ - /* GL_TEXTURE_WRAP_T */ - public static final int GL_TEXTURE_WIDTH = 0x1000; - public static final int GL_TEXTURE_HEIGHT = 0x1001; - public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003; - public static final int GL_TEXTURE_BORDER_COLOR = 0x1004; - public static final int GL_TEXTURE_BORDER = 0x1005; - /* GL_TEXTURE_RED_SIZE */ - /* GL_TEXTURE_GREEN_SIZE */ - /* GL_TEXTURE_BLUE_SIZE */ - /* GL_TEXTURE_ALPHA_SIZE */ - /* GL_TEXTURE_LUMINANCE_SIZE */ - /* GL_TEXTURE_INTENSITY_SIZE */ - /* GL_TEXTURE_PRIORITY */ - /* GL_TEXTURE_RESIDENT */ - - /* HintMode */ - public static final int GL_DONT_CARE = 0x1100; - public static final int GL_FASTEST = 0x1101; - public static final int GL_NICEST = 0x1102; - - /* HintTarget */ - /* GL_PERSPECTIVE_CORRECTION_HINT */ - /* GL_POINT_SMOOTH_HINT */ - /* GL_LINE_SMOOTH_HINT */ - /* GL_POLYGON_SMOOTH_HINT */ - /* GL_FOG_HINT */ - /* GL_PHONG_HINT */ - - /* IndexPointerType */ - /* GL_SHORT */ - /* GL_INT */ - /* GL_FLOAT */ - /* GL_DOUBLE */ - - /* LightModelParameter */ - /* GL_LIGHT_MODEL_AMBIENT */ - /* GL_LIGHT_MODEL_LOCAL_VIEWER */ - /* GL_LIGHT_MODEL_TWO_SIDE */ - - /* LightName */ - public static final int GL_LIGHT0 = 0x4000; - public static final int GL_LIGHT1 = 0x4001; - public static final int GL_LIGHT2 = 0x4002; - public static final int GL_LIGHT3 = 0x4003; - public static final int GL_LIGHT4 = 0x4004; - public static final int GL_LIGHT5 = 0x4005; - public static final int GL_LIGHT6 = 0x4006; - public static final int GL_LIGHT7 = 0x4007; - - /* LightParameter */ - public static final int GL_AMBIENT = 0x1200; - public static final int GL_DIFFUSE = 0x1201; - public static final int GL_SPECULAR = 0x1202; - public static final int GL_POSITION = 0x1203; - public static final int GL_SPOT_DIRECTION = 0x1204; - public static final int GL_SPOT_EXPONENT = 0x1205; - public static final int GL_SPOT_CUTOFF = 0x1206; - public static final int GL_CONSTANT_ATTENUATION = 0x1207; - public static final int GL_LINEAR_ATTENUATION = 0x1208; - public static final int GL_QUADRATIC_ATTENUATION = 0x1209; - - /* InterleavedArrays */ - /* GL_V2F */ - /* GL_V3F */ - /* GL_C4UB_V2F */ - /* GL_C4UB_V3F */ - /* GL_C3F_V3F */ - /* GL_N3F_V3F */ - /* GL_C4F_N3F_V3F */ - /* GL_T2F_V3F */ - /* GL_T4F_V4F */ - /* GL_T2F_C4UB_V3F */ - /* GL_T2F_C3F_V3F */ - /* GL_T2F_N3F_V3F */ - /* GL_T2F_C4F_N3F_V3F */ - /* GL_T4F_C4F_N3F_V4F */ - - /* ListMode */ - public static final int GL_COMPILE = 0x1300; - public static final int GL_COMPILE_AND_EXECUTE = 0x1301; - - /* ListNameType */ - /* GL_BYTE */ - /* GL_UNSIGNED_BYTE */ - /* GL_SHORT */ - /* GL_UNSIGNED_SHORT */ - /* GL_INT */ - /* GL_UNSIGNED_INT */ - /* GL_FLOAT */ - /* GL_2_BYTES */ - /* GL_3_BYTES */ - /* GL_4_BYTES */ - - /* LogicOp */ - public static final int GL_CLEAR = 0x1500; - public static final int GL_AND = 0x1501; - public static final int GL_AND_REVERSE = 0x1502; - public static final int GL_COPY = 0x1503; - public static final int GL_AND_INVERTED = 0x1504; - public static final int GL_NOOP = 0x1505; - public static final int GL_XOR = 0x1506; - public static final int GL_OR = 0x1507; - public static final int GL_NOR = 0x1508; - public static final int GL_EQUIV = 0x1509; - public static final int GL_INVERT = 0x150A; - public static final int GL_OR_REVERSE = 0x150B; - public static final int GL_COPY_INVERTED = 0x150C; - public static final int GL_OR_INVERTED = 0x150D; - public static final int GL_NAND = 0x150E; - public static final int GL_SET = 0x150F; - - /* MapTarget */ - /* GL_MAP1_COLOR_4 */ - /* GL_MAP1_INDEX */ - /* GL_MAP1_NORMAL */ - /* GL_MAP1_TEXTURE_COORD_1 */ - /* GL_MAP1_TEXTURE_COORD_2 */ - /* GL_MAP1_TEXTURE_COORD_3 */ - /* GL_MAP1_TEXTURE_COORD_4 */ - /* GL_MAP1_VERTEX_3 */ - /* GL_MAP1_VERTEX_4 */ - /* GL_MAP2_COLOR_4 */ - /* GL_MAP2_INDEX */ - /* GL_MAP2_NORMAL */ - /* GL_MAP2_TEXTURE_COORD_1 */ - /* GL_MAP2_TEXTURE_COORD_2 */ - /* GL_MAP2_TEXTURE_COORD_3 */ - /* GL_MAP2_TEXTURE_COORD_4 */ - /* GL_MAP2_VERTEX_3 */ - /* GL_MAP2_VERTEX_4 */ - - /* MaterialFace */ - /* GL_FRONT */ - /* GL_BACK */ - /* GL_FRONT_AND_BACK */ - - /* MaterialParameter */ - public static final int GL_EMISSION = 0x1600; - public static final int GL_SHININESS = 0x1601; - public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602; - public static final int GL_COLOR_INDEXES = 0x1603; - /* GL_AMBIENT */ - /* GL_DIFFUSE */ - /* GL_SPECULAR */ - - /* MatrixMode */ - public static final int GL_MODELVIEW = 0x1700; - public static final int GL_PROJECTION = 0x1701; - public static final int GL_TEXTURE = 0x1702; - - /* MeshMode1 */ - /* GL_POINT */ - /* GL_LINE */ - - /* MeshMode2 */ - /* GL_POINT */ - /* GL_LINE */ - /* GL_FILL */ - - /* NormalPointerType */ - /* GL_BYTE */ - /* GL_SHORT */ - /* GL_INT */ - /* GL_FLOAT */ - /* GL_DOUBLE */ - - /* PixelCopyType */ - public static final int GL_COLOR = 0x1800; - public static final int GL_DEPTH = 0x1801; - public static final int GL_STENCIL = 0x1802; - - /* PixelFormat */ - public static final int GL_COLOR_INDEX = 0x1900; - public static final int GL_STENCIL_INDEX = 0x1901; - public static final int GL_DEPTH_COMPONENT = 0x1902; - public static final int GL_RED = 0x1903; - public static final int GL_GREEN = 0x1904; - public static final int GL_BLUE = 0x1905; - public static final int GL_ALPHA = 0x1906; - public static final int GL_RGB = 0x1907; - public static final int GL_RGBA = 0x1908; - public static final int GL_LUMINANCE = 0x1909; - public static final int GL_LUMINANCE_ALPHA = 0x190A; - - /* PixelMap */ - /* GL_PIXEL_MAP_I_TO_I */ - /* GL_PIXEL_MAP_S_TO_S */ - /* GL_PIXEL_MAP_I_TO_R */ - /* GL_PIXEL_MAP_I_TO_G */ - /* GL_PIXEL_MAP_I_TO_B */ - /* GL_PIXEL_MAP_I_TO_A */ - /* GL_PIXEL_MAP_R_TO_R */ - /* GL_PIXEL_MAP_G_TO_G */ - /* GL_PIXEL_MAP_B_TO_B */ - /* GL_PIXEL_MAP_A_TO_A */ - - /* PixelStore */ - /* GL_UNPACK_SWAP_BYTES */ - /* GL_UNPACK_LSB_FIRST */ - /* GL_UNPACK_ROW_LENGTH */ - /* GL_UNPACK_SKIP_ROWS */ - /* GL_UNPACK_SKIP_PIXELS */ - /* GL_UNPACK_ALIGNMENT */ - /* GL_PACK_SWAP_BYTES */ - /* GL_PACK_LSB_FIRST */ - /* GL_PACK_ROW_LENGTH */ - /* GL_PACK_SKIP_ROWS */ - /* GL_PACK_SKIP_PIXELS */ - /* GL_PACK_ALIGNMENT */ - - /* PixelTransfer */ - /* GL_MAP_COLOR */ - /* GL_MAP_STENCIL */ - /* GL_INDEX_SHIFT */ - /* GL_INDEX_OFFSET */ - /* GL_RED_SCALE */ - /* GL_RED_BIAS */ - /* GL_GREEN_SCALE */ - /* GL_GREEN_BIAS */ - /* GL_BLUE_SCALE */ - /* GL_BLUE_BIAS */ - /* GL_ALPHA_SCALE */ - /* GL_ALPHA_BIAS */ - /* GL_DEPTH_SCALE */ - /* GL_DEPTH_BIAS */ - - /* PixelType */ - public static final int GL_BITMAP = 0x1A00; - /* GL_BYTE */ - /* GL_UNSIGNED_BYTE */ - /* GL_SHORT */ - /* GL_UNSIGNED_SHORT */ - /* GL_INT */ - /* GL_UNSIGNED_INT */ - /* GL_FLOAT */ - - /* PolygonMode */ - public static final int GL_POINT = 0x1B00; - public static final int GL_LINE = 0x1B01; - public static final int GL_FILL = 0x1B02; - - /* ReadBufferMode */ - /* GL_FRONT_LEFT */ - /* GL_FRONT_RIGHT */ - /* GL_BACK_LEFT */ - /* GL_BACK_RIGHT */ - /* GL_FRONT */ - /* GL_BACK */ - /* GL_LEFT */ - /* GL_RIGHT */ - /* GL_AUX0 */ - /* GL_AUX1 */ - /* GL_AUX2 */ - /* GL_AUX3 */ - - /* RenderingMode */ - public static final int GL_RENDER = 0x1C00; - public static final int GL_FEEDBACK = 0x1C01; - public static final int GL_SELECT = 0x1C02; - - /* ShadingModel */ - public static final int GL_FLAT = 0x1D00; - public static final int GL_SMOOTH = 0x1D01; - - - /* StencilFunction */ - /* GL_NEVER */ - /* GL_LESS */ - /* GL_EQUAL */ - /* GL_LEQUAL */ - /* GL_GREATER */ - /* GL_NOTEQUAL */ - /* GL_GEQUAL */ - /* GL_ALWAYS */ - - /* StencilOp */ - /* GL_ZERO */ - public static final int GL_KEEP = 0x1E00; - public static final int GL_REPLACE = 0x1E01; - public static final int GL_INCR = 0x1E02; - public static final int GL_DECR = 0x1E03; - /* GL_INVERT */ - - /* StringName */ - public static final int GL_VENDOR = 0x1F00; - public static final int GL_RENDERER = 0x1F01; - public static final int GL_VERSION = 0x1F02; - public static final int GL_EXTENSIONS = 0x1F03; - - /* TextureCoordName */ - public static final int GL_S = 0x2000; - public static final int GL_T = 0x2001; - public static final int GL_R = 0x2002; - public static final int GL_Q = 0x2003; - - /* TexCoordPointerType */ - /* GL_SHORT */ - /* GL_INT */ - /* GL_FLOAT */ - /* GL_DOUBLE */ - - /* TextureEnvMode */ - public static final int GL_MODULATE = 0x2100; - public static final int GL_DECAL = 0x2101; - /* GL_BLEND */ - /* GL_REPLACE */ - - /* TextureEnvParameter */ - public static final int GL_TEXTURE_ENV_MODE = 0x2200; - public static final int GL_TEXTURE_ENV_COLOR = 0x2201; - - /* TextureEnvTarget */ - public static final int GL_TEXTURE_ENV = 0x2300; - - /* TextureGenMode */ - public static final int GL_EYE_LINEAR = 0x2400; - public static final int GL_OBJECT_LINEAR = 0x2401; - public static final int GL_SPHERE_MAP = 0x2402; - - /* TextureGenParameter */ - public static final int GL_TEXTURE_GEN_MODE = 0x2500; - public static final int GL_OBJECT_PLANE = 0x2501; - public static final int GL_EYE_PLANE = 0x2502; - - /* TextureMagFilter */ - public static final int GL_NEAREST = 0x2600; - public static final int GL_LINEAR = 0x2601; - - /* TextureMinFilter */ - /* GL_NEAREST */ - /* GL_LINEAR */ - public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700; - public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701; - public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702; - public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703; - - /* TextureParameterName */ - public static final int GL_TEXTURE_MAG_FILTER = 0x2800; - public static final int GL_TEXTURE_MIN_FILTER = 0x2801; - public static final int GL_TEXTURE_WRAP_S = 0x2802; - public static final int GL_TEXTURE_WRAP_T = 0x2803; - /* GL_TEXTURE_BORDER_COLOR */ - /* GL_TEXTURE_PRIORITY */ - - /* TextureTarget */ - /* GL_TEXTURE_1D */ - /* GL_TEXTURE_2D */ - /* GL_PROXY_TEXTURE_1D */ - /* GL_PROXY_TEXTURE_2D */ - - /* TextureWrapMode */ - public static final int GL_CLAMP = 0x2900; - public static final int GL_REPEAT = 0x2901; - - /* VertexPointerType */ - /* GL_SHORT */ - /* GL_INT */ - /* GL_FLOAT */ - /* GL_DOUBLE */ - - /* ClientAttribMask */ - public static final int GL_CLIENT_PIXEL_STORE_BIT = 0x00000001; - public static final int GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002; - public static final int GL_ALL_CLIENT_ATTRIB_BITS = 0xffffffff; - - /* polygon_offset */ - public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038; - public static final int GL_POLYGON_OFFSET_UNITS = 0x2A00; - public static final int GL_POLYGON_OFFSET_POINT = 0x2A01; - public static final int GL_POLYGON_OFFSET_LINE = 0x2A02; - public static final int GL_POLYGON_OFFSET_FILL = 0x8037; - - /* texture */ - public static final int GL_ALPHA4 = 0x803B; - public static final int GL_ALPHA8 = 0x803C; - public static final int GL_ALPHA12 = 0x803D; - public static final int GL_ALPHA16 = 0x803E; - public static final int GL_LUMINANCE4 = 0x803F; - public static final int GL_LUMINANCE8 = 0x8040; - public static final int GL_LUMINANCE12 = 0x8041; - public static final int GL_LUMINANCE16 = 0x8042; - public static final int GL_LUMINANCE4_ALPHA4 = 0x8043; - public static final int GL_LUMINANCE6_ALPHA2 = 0x8044; - public static final int GL_LUMINANCE8_ALPHA8 = 0x8045; - public static final int GL_LUMINANCE12_ALPHA4 = 0x8046; - public static final int GL_LUMINANCE12_ALPHA12 = 0x8047; - public static final int GL_LUMINANCE16_ALPHA16 = 0x8048; - public static final int GL_INTENSITY = 0x8049; - public static final int GL_INTENSITY4 = 0x804A; - public static final int GL_INTENSITY8 = 0x804B; - public static final int GL_INTENSITY12 = 0x804C; - public static final int GL_INTENSITY16 = 0x804D; - public static final int GL_R3_G3_B2 = 0x2A10; - public static final int GL_RGB4 = 0x804F; - public static final int GL_RGB5 = 0x8050; - public static final int GL_RGB8 = 0x8051; - public static final int GL_RGB10 = 0x8052; - public static final int GL_RGB12 = 0x8053; - public static final int GL_RGB16 = 0x8054; - public static final int GL_RGBA2 = 0x8055; - public static final int GL_RGBA4 = 0x8056; - public static final int GL_RGB5_A1 = 0x8057; - public static final int GL_RGBA8 = 0x8058; - public static final int GL_RGB10_A2 = 0x8059; - public static final int GL_RGBA12 = 0x805A; - public static final int GL_RGBA16 = 0x805B; - public static final int GL_TEXTURE_RED_SIZE = 0x805C; - public static final int GL_TEXTURE_GREEN_SIZE = 0x805D; - public static final int GL_TEXTURE_BLUE_SIZE = 0x805E; - public static final int GL_TEXTURE_ALPHA_SIZE = 0x805F; - public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060; - public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061; - public static final int GL_PROXY_TEXTURE_1D = 0x8063; - public static final int GL_PROXY_TEXTURE_2D = 0x8064; - - /* texture_object */ - public static final int GL_TEXTURE_PRIORITY = 0x8066; - public static final int GL_TEXTURE_RESIDENT = 0x8067; - public static final int GL_TEXTURE_BINDING_1D = 0x8068; - public static final int GL_TEXTURE_BINDING_2D = 0x8069; - - /* vertex_array */ - public static final int GL_VERTEX_ARRAY = 0x8074; - public static final int GL_NORMAL_ARRAY = 0x8075; - public static final int GL_COLOR_ARRAY = 0x8076; - public static final int GL_INDEX_ARRAY = 0x8077; - public static final int GL_TEXTURE_COORD_ARRAY = 0x8078; - public static final int GL_EDGE_FLAG_ARRAY = 0x8079; - public static final int GL_VERTEX_ARRAY_SIZE = 0x807A; - public static final int GL_VERTEX_ARRAY_TYPE = 0x807B; - public static final int GL_VERTEX_ARRAY_STRIDE = 0x807C; - public static final int GL_NORMAL_ARRAY_TYPE = 0x807E; - public static final int GL_NORMAL_ARRAY_STRIDE = 0x807F; - public static final int GL_COLOR_ARRAY_SIZE = 0x8081; - public static final int GL_COLOR_ARRAY_TYPE = 0x8082; - public static final int GL_COLOR_ARRAY_STRIDE = 0x8083; - public static final int GL_INDEX_ARRAY_TYPE = 0x8085; - public static final int GL_INDEX_ARRAY_STRIDE = 0x8086; - public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088; - public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089; - public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A; - public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C; - public static final int GL_VERTEX_ARRAY_POINTER = 0x808E; - public static final int GL_NORMAL_ARRAY_POINTER = 0x808F; - public static final int GL_COLOR_ARRAY_POINTER = 0x8090; - public static final int GL_INDEX_ARRAY_POINTER = 0x8091; - public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092; - public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093; - public static final int GL_V2F = 0x2A20; - public static final int GL_V3F = 0x2A21; - public static final int GL_C4UB_V2F = 0x2A22; - public static final int GL_C4UB_V3F = 0x2A23; - public static final int GL_C3F_V3F = 0x2A24; - public static final int GL_N3F_V3F = 0x2A25; - public static final int GL_C4F_N3F_V3F = 0x2A26; - public static final int GL_T2F_V3F = 0x2A27; - public static final int GL_T4F_V4F = 0x2A28; - public static final int GL_T2F_C4UB_V3F = 0x2A29; - public static final int GL_T2F_C3F_V3F = 0x2A2A; - public static final int GL_T2F_N3F_V3F = 0x2A2B; - public static final int GL_T2F_C4F_N3F_V3F = 0x2A2C; - public static final int GL_T4F_C4F_N3F_V4F = 0x2A2D; - - /* For compatibility with OpenGL v1.0 */ - public static final int GL_LOGIC_OP = GL_INDEX_LOGIC_OP; - public static final int GL_TEXTURE_COMPONENTS = GL_TEXTURE_INTERNAL_FORMAT; -} diff --git a/src/java/org/lwjgl/opengl/CoreGL12.java b/src/java/org/lwjgl/opengl/CoreGL12.java deleted file mode 100644 index d854b14f..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL12.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import java.nio.*; -import java.nio.IntBuffer; -import java.nio.FloatBuffer; -import java.nio.Buffer; - -/** - * $Id: CoreGL.java,v 1.23 2003/07/23 14:51:19 elias_naur Exp $ - * - * The core OpenGL1.2.1 API, with the imaging subset. - * - * @author cix_foo - * @version $Revision: 1.23 $ - */ -public abstract class CoreGL12 extends CoreGL11 implements CoreGL12Constants { - - public static void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { - nglColorTable(target, internalFormat, width, format, type, data, data.position()); - } - public static void glColorTable(int target, int internalFormat, int width, int format, int type, FloatBuffer data) { - nglColorTable(target, internalFormat, width, format, type, data, data.position() << 2); - } - private static native void nglColorTable(int target, int internalFormat, int width, int format, int type, Buffer data, int data_offset); - public static void glColorSubTable(int target, int start, int count, int format, int type, ByteBuffer data) { - nglColorSubTable(target, start, count, format, type, data, data.position()); - } - public static void glColorSubTable(int target, int start, int count, int format, int type, FloatBuffer data) { - nglColorSubTable(target, start, count, format, type, data, data.position() << 2); - } - private static native void nglColorSubTable(int target, int start, int count, int format, int type, Buffer data, int data_offset); - public static void glColorTableParameter(int target, int pname, IntBuffer params) { - nglColorTableParameteriv(target, pname, params, params.position()); - } - private static native void nglColorTableParameteriv(int target, int pname, IntBuffer params, int data_offset); - public static void glColorTableParameter(int target, int pname, FloatBuffer params) { - nglColorTableParameterfv(target, pname, params, params.position()); - } - private static native void nglColorTableParameterfv(int target, int pname, FloatBuffer params, int data_offset); - public static native void glCopyColorSubTable(int target, int start, int x, int y, int width); - public static native void glCopyColorTable(int target, int internalformat, int x, int y, int width); - public static void glGetColorTable(int target, int format, int type, ByteBuffer data) { - nglGetColorTable(target, format, type, data, data.position()); - } - public static void glGetColorTable(int target, int format, int type, FloatBuffer data) { - nglGetColorTable(target, format, type, data, data.position()); - } - private static native void nglGetColorTable(int target, int format, int type, Buffer data, int data_offset); - public static void glGetColorTableParameter(int target, int pname, IntBuffer params) { - nglGetColorTableParameteriv(target, pname, params, params.position()); - } - private static native void nglGetColorTableParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static void glGetColorTableParameter(int target, int pname, FloatBuffer params) { - nglGetColorTableParameterfv(target, pname, params, params.position()); - } - private static native void nglGetColorTableParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static native void glBlendEquation(int mode); - public static native void glBlendColor(float red, float green, float blue, float alpha); - public static native void glHistogram(int target, int width, int internalformat, boolean sink); - public static native void glResetHistogram(int target); - public static void glGetHistogram(int target, boolean reset, int format, int type, ByteBuffer values) { - nglGetHistogram(target, reset, format, type, values, values.position()); - } - public static void glGetHistogram(int target, boolean reset, int format, int type, ShortBuffer values) { - nglGetHistogram(target, reset, format, type, values, values.position() << 1); - } - public static void glGetHistogram(int target, boolean reset, int format, int type, IntBuffer values) { - nglGetHistogram(target, reset, format, type, values, values.position() << 2); - } - public static void glGetHistogram(int target, boolean reset, int format, int type, FloatBuffer values) { - nglGetHistogram(target, reset, format, type, values, values.position() << 2); - } - private static native void nglGetHistogram(int target, boolean reset, int format, int type, Buffer values, int values_offset); - public static void glGetHistogramParameter(int target, int pname, FloatBuffer params) { - nglGetHistogramParameterfv(target, pname, params, params.position()); - } - private static native void nglGetHistogramParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static void glGetHistogramParameter(int target, int pname, IntBuffer params) { - nglGetHistogramParameteriv(target, pname, params, params.position()); - } - private static native void nglGetHistogramParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static native void glMinmax(int target, int internalformat, boolean sink); - public static native void glResetMinmax(int target); - public static void glGetMinmax(int target, boolean reset, int format, int types, ByteBuffer values) { - nglGetMinmax(target, reset, format, types, values, values.position()); - } - public static void glGetMinmax(int target, boolean reset, int format, int types, ShortBuffer values) { - nglGetMinmax(target, reset, format, types, values, values.position() << 1); - } - public static void glGetMinmax(int target, boolean reset, int format, int types, IntBuffer values) { - nglGetMinmax(target, reset, format, types, values, values.position() << 2); - } - public static void glGetMinmax(int target, boolean reset, int format, int types, FloatBuffer values) { - nglGetMinmax(target, reset, format, types, values, values.position() << 2); - } - private static native void nglGetMinmax(int target, boolean reset, int format, int types, Buffer values, int values_offset); - public static void glGetMinmaxParameter(int target, int pname, FloatBuffer params) { - nglGetMinmaxParameterfv(target, pname, params, params.position()); - } - private static native void nglGetMinmaxParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static void glGetMinmaxParameter(int target, int pname, IntBuffer params) { - nglGetMinmaxParameteriv(target, pname, params, params.position()); - } - private static native void nglGetMinmaxParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ByteBuffer image) { - nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position()); - } - public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ShortBuffer image) { - nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position()); - } - public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, IntBuffer image) { - nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position()); - } - public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, FloatBuffer image) { - nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position()); - } - private static native void nglConvolutionFilter1D(int target, int internalformat, int width, int format, int type, Buffer image, int image_offset); - public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer image) { - } - private static native void nglConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer image, int image_offset); - public static native void glConvolutionParameterf(int target, int pname, float params); - public static void glConvolutionParameter(int target, int pname, FloatBuffer params) { - } - private static native void nglConvolutionParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static native void glConvolutionParameteri(int target, int pname, int params); - public static void glConvolutionParameteriv(int target, int pname, IntBuffer params) { - nglConvolutionParameteriv(target, pname, params, params.position()); - } - private static native void nglConvolutionParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static native void glCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width); - public static native void glCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height); - public static void glGetConvolutionFilter(int target, int format, int type, ByteBuffer image) { - nglGetConvolutionFilter(target, format, type, image, image.position()); - } - public static void glGetConvolutionFilter(int target, int format, int type, ShortBuffer image) { - nglGetConvolutionFilter(target, format, type, image, image.position() << 1); - } - public static void glGetConvolutionFilter(int target, int format, int type, IntBuffer image) { - nglGetConvolutionFilter(target, format, type, image, image.position() << 2); - } - public static void glGetConvolutionFilter(int target, int format, int type, FloatBuffer image) { - nglGetConvolutionFilter(target, format, type, image, image.position() << 2); - } - private static native void nglGetConvolutionFilter(int target, int format, int type, Buffer image, int image_offset); - public static void glGetConvolutionParameter(int target, int pname, FloatBuffer params) { - nglGetConvolutionParameterfv(target, pname, params, params.position()); - } - private static native void nglGetConvolutionParameterfv(int target, int pname, FloatBuffer params, int params_offset); - public static void glGetConvolutionParameter(int target, int pname, IntBuffer params) { - nglGetConvolutionParameteriv(target, pname, params, params.position()); - } - private static native void nglGetConvolutionParameteriv(int target, int pname, IntBuffer params, int params_offset); - public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, Buffer column) { - nglSeparableFilter2D(target, internalformat, width, height, format, type, row, Util.getOffset(row), column, Util.getOffset(column)); - } - private static native void nglSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, int row_offset, Buffer column, int column_offset); - public static void glGetSeparableFilter(int target, int format, int type, Buffer row, Buffer column, Buffer span) { - nglGetSeparableFilter(target, format, type, row, Util.getOffset(row), column, Util.getOffset(column), span, Util.getOffset(span)); - } - private static native void nglGetSeparableFilter(int target, int format, int type, Buffer row, int row_offset, Buffer column, int column_offset, Buffer span, int span_offset); - public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_BYTE, indices, indices.position()); - } - public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_SHORT, indices, indices.position() << 1); - } - public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) { - assert VBOTracker.getVBOElementStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_INT, indices, indices.position() << 2); - } - private static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices, int indices_offset); - public static void glDrawRangeElements(int mode, int start, int end, int count, int type, int buffer_offset) { - assert VBOTracker.getVBOElementStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglDrawRangeElementsVBO(mode, start, end, count, type, buffer_offset); - } - private static native void nglDrawRangeElementsVBO(int mode, int start, int end, int count, int type, int buffer_offset); - public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer pixels) { - nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels.position()); - } - public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) { - nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels.position() << 1); - } - public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) { - nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels.position() << 2); - } - public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, FloatBuffer pixels) { - nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, Buffer pixels, int pixels_offset); - public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) { - nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position()); - } - public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) { - nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1); - } - public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) { - nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2); - } - public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) { - nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2); - } - private static native void nglTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels, int pixels_offset); - public static native void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); -} - diff --git a/src/java/org/lwjgl/opengl/CoreGL12Constants.java b/src/java/org/lwjgl/opengl/CoreGL12Constants.java deleted file mode 100644 index b1988109..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL12Constants.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -/** - * $Id$ - * - * Core OpenGL 1.1 constants. - * - * @author cix_foo - * @version $Revision$ - */ -public interface CoreGL12Constants extends CoreGL11Constants { - public static final int GL_RESCALE_NORMAL = 0x803A; - public static final int GL_CLAMP_TO_EDGE = 0x812F; - public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8; - public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9; - public static final int GL_BGR = 0x80E0; - public static final int GL_BGRA = 0x80E1; - public static final int GL_UNSIGNED_BYTE_3_3_2 = 0x8032; - public static final int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362; - public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; - public static final int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364; - public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; - public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; - public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; - public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; - public static final int GL_UNSIGNED_INT_8_8_8_8 = 0x8035; - public static final int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367; - public static final int GL_UNSIGNED_INT_10_10_10_2 = 0x8036; - public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; - public static final int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8; - public static final int GL_SINGLE_COLOR = 0x81F9; - public static final int GL_SEPARATE_SPECULAR_COLOR = 0x81FA; - public static final int GL_TEXTURE_MIN_LOD = 0x813A; - public static final int GL_TEXTURE_MAX_LOD = 0x813B; - public static final int GL_TEXTURE_BASE_LEVEL = 0x813C; - public static final int GL_TEXTURE_MAX_LEVEL = 0x813D; - public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; - public static final int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; - public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; - public static final int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; - public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; - public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; - public static final int GL_PACK_SKIP_IMAGES = 0x806B; - public static final int GL_PACK_IMAGE_HEIGHT = 0x806C; - public static final int GL_UNPACK_SKIP_IMAGES = 0x806D; - public static final int GL_UNPACK_IMAGE_HEIGHT = 0x806E; - public static final int GL_TEXTURE_3D = 0x806F; - public static final int GL_PROXY_TEXTURE_3D = 0x8070; - public static final int GL_TEXTURE_DEPTH = 0x8071; - public static final int GL_TEXTURE_WRAP_R = 0x8072; - public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073; - public static final int GL_TEXTURE_BINDING_3D = 0x806A; - public static final int GL_COLOR_TABLE = 0x80D0; - public static final int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1; - public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2; - public static final int GL_PROXY_COLOR_TABLE = 0x80D3; - public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4; - public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5; - public static final int GL_COLOR_TABLE_SCALE = 0x80D6; - public static final int GL_COLOR_TABLE_BIAS = 0x80D7; - public static final int GL_COLOR_TABLE_FORMAT = 0x80D8; - public static final int GL_COLOR_TABLE_WIDTH = 0x80D9; - public static final int GL_COLOR_TABLE_RED_SIZE = 0x80DA; - public static final int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB; - public static final int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC; - public static final int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD; - public static final int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE; - public static final int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF; - public static final int GL_CONVOLUTION_1D = 0x8010; - public static final int GL_CONVOLUTION_2D = 0x8011; - public static final int GL_SEPARABLE_2D = 0x8012; - public static final int GL_CONVOLUTION_BORDER_MODE = 0x8013; - public static final int GL_CONVOLUTION_FILTER_SCALE = 0x8014; - public static final int GL_CONVOLUTION_FILTER_BIAS = 0x8015; - public static final int GL_REDUCE = 0x8016; - public static final int GL_CONVOLUTION_FORMAT = 0x8017; - public static final int GL_CONVOLUTION_WIDTH = 0x8018; - public static final int GL_CONVOLUTION_HEIGHT = 0x8019; - public static final int GL_MAX_CONVOLUTION_WIDTH = 0x801A; - public static final int GL_MAX_CONVOLUTION_HEIGHT = 0x801B; - public static final int GL_POST_CONVOLUTION_RED_SCALE = 0x801C; - public static final int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D; - public static final int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E; - public static final int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F; - public static final int GL_POST_CONVOLUTION_RED_BIAS = 0x8020; - public static final int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021; - public static final int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022; - public static final int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023; - public static final int GL_CONSTANT_BORDER = 0x8151; - public static final int GL_REPLICATE_BORDER = 0x8153; - public static final int GL_CONVOLUTION_BORDER_COLOR = 0x8154; - public static final int GL_COLOR_MATRIX = 0x80B1; - public static final int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2; - public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3; - public static final int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4; - public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5; - public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6; - public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7; - public static final int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8; - public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9; - public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA; - public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB; - public static final int GL_HISTOGRAM = 0x8024; - public static final int GL_PROXY_HISTOGRAM = 0x8025; - public static final int GL_HISTOGRAM_WIDTH = 0x8026; - public static final int GL_HISTOGRAM_FORMAT = 0x8027; - public static final int GL_HISTOGRAM_RED_SIZE = 0x8028; - public static final int GL_HISTOGRAM_GREEN_SIZE = 0x8029; - public static final int GL_HISTOGRAM_BLUE_SIZE = 0x802A; - public static final int GL_HISTOGRAM_ALPHA_SIZE = 0x802B; - public static final int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C; - public static final int GL_HISTOGRAM_SINK = 0x802D; - public static final int GL_MINMAX = 0x802E; - public static final int GL_MINMAX_FORMAT = 0x802F; - public static final int GL_MINMAX_SINK = 0x8030; - public static final int GL_TABLE_TOO_LARGE = 0x8031; - public static final int GL_BLEND_EQUATION = 0x8009; - public static final int GL_MIN = 0x8007; - public static final int GL_MAX = 0x8008; - public static final int GL_FUNC_ADD = 0x8006; - public static final int GL_FUNC_SUBTRACT = 0x800A; - public static final int GL_FUNC_REVERSE_SUBTRACT = 0x800B; - public static final int GL_BLEND_COLOR = 0x8005; -} diff --git a/src/java/org/lwjgl/opengl/CoreGL13.java b/src/java/org/lwjgl/opengl/CoreGL13.java deleted file mode 100644 index e379be4a..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL13.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import java.nio.*; - -/** - * $Id: CoreGL.java,v 1.23 2003/07/23 14:51:19 elias_naur Exp $ - * - * The core OpenGL1.3 API. - * - * @author cix_foo - * @version $Revision: 1.23 $ - */ -public abstract class CoreGL13 extends CoreGL12 implements CoreGL13Constants { - public static native void glActiveTexture(int texture); - public static native void glClientActiveTexture(int texture); - public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer data) { - nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position()); - } - public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer data) { - nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 1); - } - public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer data) { - nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2); - } - public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer data) { - nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, Buffer data, int data_offset); - public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer data) { - nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position()); - } - public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer data) { - nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1); - } - public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) { - nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2); - } - public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer data) { - nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data, int data_offset); - public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer data) { - nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position()); - } - public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer data) { - nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1); - } - public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) { - nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2); - } - public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer data) { - nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer data, int data_offset); - public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer data) { - nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position()); - } - public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer data) { - nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1); - } - public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) { - nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2); - } - public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer data) { - nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, Buffer data, int data_offset); - public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer data) { - nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position()); - } - public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer data) { - nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1); - } - public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) { - nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2); - } - public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer data) { - nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data, int data_offset); - public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ByteBuffer data) { - nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position()); - } - public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ShortBuffer data) { - nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1); - } - public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, IntBuffer data) { - nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2); - } - public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, FloatBuffer data) { - nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2); - } - private static native void nglCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, Buffer data, int data_offset); - public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) { - nglGetCompressedTexImage(target, lod, img, img.position()); - } - public static void glGetCompressedTexImage(int target, int lod, ShortBuffer img) { - nglGetCompressedTexImage(target, lod, img, img.position() << 1); - } - public static void glGetCompressedTexImage(int target, int lod, IntBuffer img) { - nglGetCompressedTexImage(target, lod, img, img.position() << 2); - } - private static native void nglGetCompressedTexImage(int target, int lod, Buffer img, int img_offset); - public static native void glMultiTexCoord1f(int target, float s); - public static native void glMultiTexCoord2f(int target, float s, float t); - public static native void glMultiTexCoord3f(int target, float s, float t, float r); - public static native void glMultiTexCoord4f(int target, float s, float t, float r, float q); - public static void glLoadTransposeMatrix(FloatBuffer m) { - nglLoadTransposeMatrixf(m, m.position()); - } - private static native void nglLoadTransposeMatrixf(FloatBuffer m, int m_offset); - public static void glMultTransposeMatrix(FloatBuffer m) { - nglMultTransposeMatrixf(m, m.position()); - } - private static native void nglMultTransposeMatrixf(FloatBuffer m, int m_offset); - public static native void glSampleCoverage(float value, boolean invert); -} - - diff --git a/src/java/org/lwjgl/opengl/CoreGL13Constants.java b/src/java/org/lwjgl/opengl/CoreGL13Constants.java deleted file mode 100644 index c93b8cec..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL13Constants.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -/** - * $Id$ - * - * Core OpenGL 1.1 constants. - * - * @author cix_foo - * @version $Revision$ - */ -public interface CoreGL13Constants extends CoreGL12Constants { - public static final int GL_TEXTURE0 = 0x84C0; - public static final int GL_TEXTURE1 = 0x84C1; - public static final int GL_TEXTURE2 = 0x84C2; - public static final int GL_TEXTURE3 = 0x84C3; - public static final int GL_TEXTURE4 = 0x84C4; - public static final int GL_TEXTURE5 = 0x84C5; - public static final int GL_TEXTURE6 = 0x84C6; - public static final int GL_TEXTURE7 = 0x84C7; - public static final int GL_TEXTURE8 = 0x84C8; - public static final int GL_TEXTURE9 = 0x84C9; - public static final int GL_TEXTURE10 = 0x84CA; - public static final int GL_TEXTURE11 = 0x84CB; - public static final int GL_TEXTURE12 = 0x84CC; - public static final int GL_TEXTURE13 = 0x84CD; - public static final int GL_TEXTURE14 = 0x84CE; - public static final int GL_TEXTURE15 = 0x84CF; - public static final int GL_TEXTURE16 = 0x84D0; - public static final int GL_TEXTURE17 = 0x84D1; - public static final int GL_TEXTURE18 = 0x84D2; - public static final int GL_TEXTURE19 = 0x84D3; - public static final int GL_TEXTURE20 = 0x84D4; - public static final int GL_TEXTURE21 = 0x84D5; - public static final int GL_TEXTURE22 = 0x84D6; - public static final int GL_TEXTURE23 = 0x84D7; - public static final int GL_TEXTURE24 = 0x84D8; - public static final int GL_TEXTURE25 = 0x84D9; - public static final int GL_TEXTURE26 = 0x84DA; - public static final int GL_TEXTURE27 = 0x84DB; - public static final int GL_TEXTURE28 = 0x84DC; - public static final int GL_TEXTURE29 = 0x84DD; - public static final int GL_TEXTURE30 = 0x84DE; - public static final int GL_TEXTURE31 = 0x84DF; - public static final int GL_ACTIVE_TEXTURE = 0x84E0; - public static final int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; - public static final int GL_MAX_TEXTURE_UNITS = 0x84E2; - - public static final int GL_NORMAL_MAP = 0x8511; - public static final int GL_REFLECTION_MAP = 0x8512; - public static final int GL_TEXTURE_CUBE_MAP = 0x8513; - public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; - public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; - public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; - public static final int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; - public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; - - public static final int GL_COMPRESSED_ALPHA = 0x84E9; - public static final int GL_COMPRESSED_LUMINANCE = 0x84EA; - public static final int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB; - public static final int GL_COMPRESSED_INTENSITY = 0x84EC; - public static final int GL_COMPRESSED_RGB = 0x84ED; - public static final int GL_COMPRESSED_RGBA = 0x84EE; - public static final int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; - public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; - public static final int GL_TEXTURE_COMPRESSED = 0x86A1; - public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; - public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; - - public static final int GL_MULTISAMPLE = 0x809D; - public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; - public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; - public static final int GL_SAMPLE_COVERAGE = 0x80A0; - public static final int GL_SAMPLE_BUFFERS = 0x80A8; - public static final int GL_SAMPLES = 0x80A9; - public static final int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; - public static final int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; - public static final int GL_MULTISAMPLE_BIT = 0x20000000; - - public static final int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; - public static final int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4; - public static final int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5; - public static final int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6; - - public static final int GL_COMBINE = 0x8570; - public static final int GL_COMBINE_RGB = 0x8571; - public static final int GL_COMBINE_ALPHA = 0x8572; - public static final int GL_SOURCE0_RGB = 0x8580; - public static final int GL_SOURCE1_RGB = 0x8581; - public static final int GL_SOURCE2_RGB = 0x8582; - public static final int GL_SOURCE0_ALPHA = 0x8588; - public static final int GL_SOURCE1_ALPHA = 0x8589; - public static final int GL_SOURCE2_ALPHA = 0x858A; - public static final int GL_OPERAND0_RGB = 0x8590; - public static final int GL_OPERAND1_RGB = 0x8591; - public static final int GL_OPERAND2_RGB = 0x8592; - public static final int GL_OPERAND0_ALPHA = 0x8598; - public static final int GL_OPERAND1_ALPHA = 0x8599; - public static final int GL_OPERAND2_ALPHA = 0x859A; - public static final int GL_RGB_SCALE = 0x8573; - public static final int GL_ADD_SIGNED = 0x8574; - public static final int GL_INTERPOLATE = 0x8575; - public static final int GL_SUBTRACT = 0x84E7; - public static final int GL_CONSTANT = 0x8576; - public static final int GL_PRIMARY_COLOR = 0x8577; - public static final int GL_PREVIOUS = 0x8578; - public static final int GL_DOT3_RGB = 0x86AE; - public static final int GL_DOT3_RGBA = 0x86AF; - public static final int GL_CLAMP_TO_BORDER = 0x812D; -} diff --git a/src/java/org/lwjgl/opengl/CoreGL14.java b/src/java/org/lwjgl/opengl/CoreGL14.java deleted file mode 100644 index e319e8c7..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL14.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import java.nio.*; -import java.nio.IntBuffer; -import java.nio.FloatBuffer; -import java.nio.Buffer; - -/** - * $Id: CoreGL.java,v 1.23 2003/07/23 14:51:19 elias_naur Exp $ - * - * The core OpenGL1.4 API. - * - * @author cix_foo - * @version $Revision: 1.23 $ - */ -public abstract class CoreGL14 extends CoreGL13 implements CoreGL14Constants { - public static native void glFogCoordf(float coord); - public static void glFogCoordPointer(int stride, FloatBuffer data) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglFogCoordPointer(GL_FLOAT, stride, data, data.position() << 2); - } - private static native void nglFogCoordPointer(int type, int stride, Buffer data, int data_offset); - public static void glFogCoordPointer(int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglFogCoordPointerVBO(type, stride, buffer_offset); - } - private static native void nglFogCoordPointerVBO(int type, int stride, int buffer_offset); - public static void glMultiDrawArrays(int mode, IntBuffer piFirst, IntBuffer piCount) { - assert piFirst.remaining() == piCount.remaining(): "piFirst.remaining() != piCount.remaining()"; - nglMultiDrawArrays(mode, piFirst, piFirst.position(), piCount, piCount.position(), piFirst.remaining()); - } - private static native void nglMultiDrawArrays(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset, int primcount); -/* public static native void glMultiDrawElements(int mode, int piCount, int type, int pIndices, int primcount);*/ - public static native void glPointParameterf (int pname, float param); - public static void glPointParameter(int pname, FloatBuffer params) { - nglPointParameterfv(pname, params, params.position()); - } - private static native void nglPointParameterfv(int pname, FloatBuffer params, int params_offset); - public static native void glSecondaryColor3b (byte red, byte green, byte blue); - public static native void glSecondaryColor3f (float red, float green, float blue); - public static native void glSecondaryColor3ub (byte red, byte green, byte blue); - public static void glSecondaryColorPointer(int size, boolean unsigned, int stride, ByteBuffer data) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglSecondaryColorPointer(size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, data, data.position()); - } - public static void glSecondaryColorPointer(int size, int stride, FloatBuffer data) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglSecondaryColorPointer(size, GL_FLOAT, stride, data, data.position() << 2); - } - private static native void nglSecondaryColorPointer (int size, int type, int stride, Buffer data, int data_offset); - public static void glSecondaryColorPointer(int size, int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglSecondaryColorPointerVBO(size, type, stride, buffer_offset); - } - private static native void nglSecondaryColorPointerVBO(int size, int type, int stride, int buffer_offset); - public static native void glBlendFuncSeparate (int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha); - public static native void glWindowPos2f (float x, float y); - public static native void glWindowPos2i (int x, int y); - public static native void glWindowPos3f (float x, float y, float z); - public static native void glWindowPos3i (int x, int y, int z); -} - diff --git a/src/java/org/lwjgl/opengl/CoreGL14Constants.java b/src/java/org/lwjgl/opengl/CoreGL14Constants.java deleted file mode 100644 index dd4803c7..00000000 --- a/src/java/org/lwjgl/opengl/CoreGL14Constants.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -/** - * $Id$ - * - * Core OpenGL 1.1 constants. - * - * @author cix_foo - * @version $Revision$ - */ -public interface CoreGL14Constants extends CoreGL13Constants { - public static final int GL_GENERATE_MIPMAP = 0x8191; - public static final int GL_GENERATE_MIPMAP_HINT = 0x8192; - public static final int GL_DEPTH_COMPONENT16 = 0x81A5; - public static final int GL_DEPTH_COMPONENT24 = 0x81A6; - public static final int GL_DEPTH_COMPONENT32 = 0x81A7; - public static final int GL_TEXTURE_DEPTH_SIZE = 0x884A; - public static final int GL_DEPTH_TEXTURE_MODE = 0x884B; - public static final int GL_TEXTURE_COMPARE_MODE = 0x884C; - public static final int GL_TEXTURE_COMPARE_FUNC = 0x884D; - public static final int GL_COMPARE_R_TO_TEXTURE = 0x884E; - public static final int GL_FOG_COORDINATE_SOURCE = 0x8450; - public static final int GL_FOG_COORDINATE = 0x8451; - public static final int GL_FRAGMENT_DEPTH = 0x8452; - public static final int GL_CURRENT_FOG_COORDINATE = 0x8453; - public static final int GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454; - public static final int GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455; - public static final int GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456; - public static final int GL_FOG_COORDINATE_ARRAY = 0x8457; - public static final int GL_POINT_SIZE_MIN = 0x8126; - public static final int GL_POINT_SIZE_MAX = 0x8127; - public static final int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; - public static final int GL_POINT_DISTANCE_ATTENUATION = 0x8129; - public static final int GL_COLOR_SUM = 0x8458; - public static final int GL_CURRENT_SECONDARY_COLOR = 0x8459; - public static final int GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845A; - public static final int GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845B; - public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845C; - public static final int GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845D; - public static final int GL_SECONDARY_COLOR_ARRAY = 0x845E; - public static final int GL_BLEND_DST_RGB = 0x80C8; - public static final int GL_BLEND_SRC_RGB = 0x80C9; - public static final int GL_BLEND_DST_ALPHA = 0x80CA; - public static final int GL_BLEND_SRC_ALPHA = 0x80CB; - public static final int GL_INCR_WRAP = 0x8507; - public static final int GL_DECR_WRAP = 0x8508; - public static final int GL_TEXTURE_FILTER_CONTROL = 0x8500; - public static final int GL_TEXTURE_LOD_BIAS = 0x8501; - public static final int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; - public static final int GL_GL_MIRRORED_REPEAT = 0x8370; -} diff --git a/src/java/org/lwjgl/opengl/GL.java b/src/java/org/lwjgl/opengl/GL.java deleted file mode 100644 index 1945fe8c..00000000 --- a/src/java/org/lwjgl/opengl/GL.java +++ /dev/null @@ -1,1538 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import java.nio.ByteBuffer; -import java.nio.IntBuffer; -import java.nio.ShortBuffer; -import java.nio.FloatBuffer; -import java.nio.Buffer; - -/** - * $Id$ - * - * The GL itself, with all supported extensions, based on OpenGL 1.4. - * - * @author cix_foo - * @version $Revision$ - */ -public abstract class GL extends CoreGL14 implements GLConstants { - public static native void glActiveStencilFaceEXT(int face); - - public static native void glActiveTextureARB(int texture); - - public static native void glAlphaFragmentOp1ATI( - int op, - int dst, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod); - - public static native void glAlphaFragmentOp2ATI( - int op, - int dst, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod, - int arg2, - int arg2Rep, - int arg2Mod); - - public static native void glAlphaFragmentOp3ATI( - int op, - int dst, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod, - int arg2, - int arg2Rep, - int arg2Mod, - int arg3, - int arg3Rep, - int arg3Mod); - - public static boolean glAreProgramsResidentNV(IntBuffer piIDs, ByteBuffer pbResidences) { - assert piIDs.remaining() == pbResidences.remaining(): "piIDs.remaining() != pbResidences.remaining()"; - return nglAreProgramsResidentNV(piIDs.remaining(), piIDs, piIDs.position(), pbResidences, pbResidences.position()); - } - private static native boolean nglAreProgramsResidentNV(int n, IntBuffer piIDs, int piIDs_offset, ByteBuffer pbResidences, int pbResidences_offset); - - public static native void glArrayObjectATI( - int array, - int size, - int type, - int stride, - int buffer, - int offset); - - public static native void glBeginFragmentShaderATI(); - - public static native void glBeginOcclusionQueryNV(int id); - - public static native void glBeginVertexShaderEXT(); - - public static native void glBindFragmentShaderATI(int id); - - public static native int glBindLightParameterEXT(int light, int value); - - public static native int glBindMaterialParameterEXT(int face, int value); - - public static native int glBindParameterEXT(int value); - - public static native void glBindProgramARB(int target, int program); - - public static native void glBindProgramNV(int target, int id); - - public static native int glBindTexGenParameterEXT(int unit, int coord, int value); - - public static native int glBindTextureUnitParameterEXT(int unit, int value); - - public static native void glBindVertexShaderEXT(int id); - - public static native void glClientActiveTextureARB(int texture); - - public static native void glClientActiveVertexStreamATI(int stream); - - public static native void glColorFragmentOp1ATI( - int op, - int dst, - int dstMask, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod); - - public static native void glColorFragmentOp2ATI( - int op, - int dst, - int dstMask, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod, - int arg2, - int arg2Rep, - int arg2Mod); - - public static native void glColorFragmentOp3ATI( - int op, - int dst, - int dstMask, - int dstMod, - int arg1, - int arg1Rep, - int arg1Mod, - int arg2, - int arg2Rep, - int arg2Mod, - int arg3, - int arg3Rep, - int arg3Mod); - - public static native void glCombinerInputNV( - int stage, - int portion, - int variable, - int input, - int mapping, - int componentUsage); - - public static native void glCombinerOutputNV( - int stage, - int portion, - int abOutput, - int cdOutput, - int sumOutput, - int scale, - int bias, - boolean abDotProduct, - boolean cdDotProduct, - boolean muxSum); - - public static native void glCombinerParameterfNV(int pname, float param); - - public static void glCombinerParameterNV(int pname, FloatBuffer pfParams) { - nglCombinerParameterfvNV(pname, pfParams, pfParams.position()); - } - private static native void nglCombinerParameterfvNV(int pname, FloatBuffer pfParams, int pfParams_offset); - - public static native void glCombinerParameteriNV(int pname, int param); - - public static void glCombinerParameterNV(int pname, IntBuffer piParams) { - nglCombinerParameterivNV(pname, piParams, piParams.position()); - } - private static native void nglCombinerParameterivNV(int pname, IntBuffer piParams, int piParams_offset); - - public static void glCombinerStageParameterNV(int stage, int pname, FloatBuffer pfParams) { - nglCombinerStageParameterfvNV(stage, pname, pfParams, pfParams.position()); - } - private static native void nglCombinerStageParameterfvNV(int stage, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) { - nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, Buffer pData, int pData_offset); - - public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer pData) { - nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer pData, int pData_offset); - - public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) { - nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_offset); - - public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, IntBuffer pData) { - nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int border, int imageSize, Buffer pData, int pData_offset); - - public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, IntBuffer pData) { - nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int border, int imageSize, Buffer pData, int pData_offset); - - public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) { - nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()); - } - public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) { - nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()<<1); - } - public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, IntBuffer pData) { - nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()<<2); - } - public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) { - nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData, pData.position()<<2); - } - private static native void nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_offset); - - public static native void glCurrentPaletteMatrixARB(int index); - - public static void glDeleteFencesNV(IntBuffer piFences) { - nglDeleteFencesNV(piFences.remaining(), piFences, piFences.position()); - } - private static native void nglDeleteFencesNV(int n, IntBuffer piFences, int piFences_offset); - - public static native void glDeleteFragmentShaderATI(int id); - - public static void glDeleteOcclusionQueriesNV(IntBuffer piIDs) { - nglDeleteOcclusionQueriesNV(piIDs.remaining(), piIDs, piIDs.position()); - } - private static native void nglDeleteOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_offset); - - public static void glDeleteProgramsARB(IntBuffer piPrograms) { - nglDeleteProgramsARB(piPrograms.remaining(), piPrograms, piPrograms.position()); - } - private static native void nglDeleteProgramsARB(int n, IntBuffer piPrograms, int piPrograms_offset); - - public static void glDeleteProgramsNV(IntBuffer piIDs) { - nglDeleteProgramsNV(piIDs.remaining(), piIDs, piIDs.position()); - } - private static native void nglDeleteProgramsNV(int n, IntBuffer piIDs, int piIDs_offset); - - public static native void glDeleteVertexShaderEXT(int id); - - public static native void glDisableVariantClientStateEXT(int id); - - public static native void glDisableVertexAttribArrayARB(int index); - - public static native void glDrawElementArrayATI(int mode, int count); - - public static native void glDrawRangeElementArrayATI( - int mode, - int start, - int end, - int count); - - public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) { - nglDrawRangeElementsEXT(mode, start, end, pIndices.remaining(), GL_UNSIGNED_BYTE, pIndices, pIndices.position()); - } - public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) { - nglDrawRangeElementsEXT(mode, start, end, pIndices.remaining(), GL_UNSIGNED_SHORT, pIndices, pIndices.position()<<1); - } - public static void glDrawRangeElementsEXT(int mode, int start, int end, IntBuffer pIndices) { - nglDrawRangeElementsEXT(mode, start, end, pIndices.remaining(), GL_UNSIGNED_INT, pIndices, pIndices.position()<<2); - } - private static native void nglDrawRangeElementsEXT(int mode, int start, int end, int count, int type, Buffer pIndices, int pIndices_offset); - - public static void glElementPointerATI(ByteBuffer pPointer) { - nglElementPointerATI(GL_UNSIGNED_BYTE, pPointer, pPointer.position()); - } - public static void glElementPointerATI(ShortBuffer pPointer) { - nglElementPointerATI(GL_UNSIGNED_SHORT, pPointer, pPointer.position()<<1); - } - public static void glElementPointerATI(IntBuffer pPointer) { - nglElementPointerATI(GL_UNSIGNED_INT, pPointer, pPointer.position()<<2); - } - private static native void nglElementPointerATI(int type, Buffer pPointer, int pPointer_offset); - - public static native void glEnableVariantClientStateEXT(int id); - - public static native void glEnableVertexAttribArrayARB(int index); - - public static native void glEndFragmentShaderATI(); - - public static native void glEndOcclusionQueryNV(); - - public static native void glEndVertexShaderEXT(); - - public static native void glEvalMapsNV(int target, int mode); - - public static void glExecuteProgramNV(int target, int id, FloatBuffer pfParams) { - nglExecuteProgramNV(target, id, pfParams, pfParams.position()); - } - private static native void nglExecuteProgramNV(int target, int id, FloatBuffer pfParams, int pfParams_offset); - - public static native void glExtractComponentEXT(int res, int src, int num); - - public static native void glFinalCombinerInputNV( - int variable, - int input, - int mapping, - int componentUsage); - - public static native void glFinishFenceNV(int fence); - - public static native void glFlushVertexArrayRangeNV(); - - public static native void glFogCoordfEXT(float coord); - - public static void glFogCoordPointerEXT(int stride, FloatBuffer pPointer) { - nglFogCoordPointerEXT(GL_FLOAT, stride, pPointer, pPointer.position()<<2); - } - private static native void nglFogCoordPointerEXT(int type, int stride, Buffer pPointer, int pPointer_offset); - - public static native void glFreeObjectBufferATI(int buffer); - - public static void glGenFencesNV(IntBuffer piFences) { - nglGenFencesNV(piFences.remaining(), piFences, piFences.position()); - } - private static native void nglGenFencesNV(int n, IntBuffer piFences, int piFences_offset); - - public static native int glGenFragmentShadersATI(int range); - - public static void glGenOcclusionQueriesNV(IntBuffer piIDs) { - nglGenOcclusionQueriesNV(piIDs.remaining(), piIDs, piIDs.position()); - } - private static native void nglGenOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_offset); - - public static void glGenProgramsARB(IntBuffer piPrograms) { - nglGenProgramsARB(piPrograms.remaining(), piPrograms, piPrograms.position()); - } - private static native void nglGenProgramsARB(int n, IntBuffer piPrograms, int piPrograms_offset); - - public static void glGenProgramsNV(IntBuffer piIDs) { - nglGenProgramsNV(piIDs.remaining(), piIDs, piIDs.position()); - } - private static native void nglGenProgramsNV(int n, IntBuffer piIDs, int piIDs_offset); - - public static native int glGenSymbolsEXT( - int dataType, - int storageType, - int range, - int components); - - public static native int glGenVertexShadersEXT(int range); - - public static void glGetArrayObjectATI(int array, int pname, FloatBuffer pfParams) { - nglGetArrayObjectfvATI(array, pname, pfParams, pfParams.position()); - } - private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetArrayObjectATI(int array, int pname, IntBuffer piParams) { - nglGetArrayObjectivATI(array, pname, piParams, piParams.position()); - } - private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, FloatBuffer pfParams) { - nglGetCombinerInputParameterfvNV(stage, portion, variable, pname, pfParams, pfParams.position()); - } - private static native void nglGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, IntBuffer piParams) { - nglGetCombinerInputParameterivNV(stage, portion, variable, pname, piParams, piParams.position()); - } - private static native void nglGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, FloatBuffer pfParams) { - nglGetCombinerOutputParameterfvNV(stage, portion, pname, pfParams, pfParams.position()); - } - private static native void nglGetCombinerOutputParameterfvNV(int stage, int portion, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, IntBuffer piParams) { - nglGetCombinerOutputParameterivNV(stage, portion, pname, piParams, piParams.position()); - } - private static native void nglGetCombinerOutputParameterivNV(int stage, int portion, int pname, IntBuffer piParams, int pfParams_offset); - - public static void glGetCombinerStageParameterNV(int stage, int pname, FloatBuffer pfParams) { - nglGetCombinerStageParameterfvNV(stage, pname, pfParams, pfParams.position()); - } - private static native void nglGetCombinerStageParameterfvNV(int stage, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) { - nglGetCompressedTexImageARB(target, lod, pImg, pImg.position()); - } - public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) { - nglGetCompressedTexImageARB(target, lod, pImg, pImg.position()<<1); - } - public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) { - nglGetCompressedTexImageARB(target, lod, pImg, pImg.position()<<2); - } - private static native void nglGetCompressedTexImageARB(int target, int lod, Buffer pImg, int pImg_offset); - - public static void glGetFenceNV(int fence, int pname, IntBuffer piParams) { - nglGetFenceivNV(fence, pname, piParams, piParams.position()); - } - private static native void nglGetFenceivNV(int fence, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetFinalCombinerInputParameterNV(int variable, int pname, FloatBuffer pfParams) { - nglGetFinalCombinerInputParameterfvNV(variable, pname, pfParams, pfParams.position()); - } - private static native void nglGetFinalCombinerInputParameterfvNV(int variable, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetFinalCombinerInputParameterNV(int variable, int pname, IntBuffer piParams) { - nglGetFinalCombinerInputParameterivNV(variable, pname, piParams, piParams.position()); - } - private static native void nglGetFinalCombinerInputParameterivNV(int variable, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) { - nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position()); - } - private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); - - public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pfData) { - nglGetInvariantFloatvEXT(id, value, pfData, pfData.position()); - } - private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); - - public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer piData) { - nglGetInvariantIntegervEXT(id, value, piData, piData.position()); - } - private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); - - public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) { - nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position()); - } - private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); - - public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pfData) { - nglGetLocalConstantFloatvEXT(id, value, pfData, pfData.position()); - } - private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); - - public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer piData) { - nglGetLocalConstantIntegervEXT(id, value, piData, piData.position()); - } - private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); - - public static void glGetMapAttribParameterNV(int target, int index, int pname, FloatBuffer pfParams) { - nglGetMapAttribParameterfvNV(target, index, pname, pfParams, pfParams.position()); - } - private static native void nglGetMapAttribParameterfvNV(int target, int index, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetMapAttribParameterNV(int target, int index, int pname, IntBuffer piParams) { - nglGetMapAttribParameterivNV(target, index, pname, piParams, piParams.position()); - } - private static native void nglGetMapAttribParameterivNV(int target, int index, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) { - nglGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints, pPoints.position()<<2); - } - private static native void nglGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, Buffer pPoints, int pPoints_offset); - - public static void glGetMapParameterNV(int target, int pname, FloatBuffer pfParams) { - nglGetMapParameterfvNV(target, pname, pfParams, pfParams.position()); - } - private static native void nglGetMapParameterfvNV(int target, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetMapParameterNV(int target, int pname, IntBuffer piParams) { - nglGetMapParameterivNV(target, pname, piParams, piParams.position()); - } - private static native void nglGetMapParameterivNV(int target, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer pfParams) { - nglGetObjectBufferfvATI(buffer, pname, pfParams, pfParams.position()); - } - private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer piParams) { - nglGetObjectBufferivATI(buffer, pname, piParams, piParams.position()); - } - private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetOcclusionQueryNV(int id, int pname, IntBuffer piParams) { - nglGetOcclusionQueryivNV(id, pname, piParams, piParams.position()); - } - private static native void nglGetOcclusionQueryivNV(int id, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetOcclusionQueryuNV(int id, int pname, IntBuffer piParams) { - nglGetOcclusionQueryuivNV(id, pname, piParams, piParams.position()); - } - private static native void nglGetOcclusionQueryuivNV(int id, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetProgramEnvParameterARB(int target, int index, FloatBuffer pfParams) { - nglGetProgramEnvParameterfvARB(target, index, pfParams, pfParams.position()); - } - private static native void nglGetProgramEnvParameterfvARB(int target, int index, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetProgramARB(int target, int pname, IntBuffer piParams) { - nglGetProgramivARB(target, pname, piParams, piParams.position()); - } - private static native void nglGetProgramivARB(int target, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetProgramNV(int id, int pname, IntBuffer piParams) { - nglGetProgramivNV(id, pname, piParams, piParams.position()); - } - private static native void nglGetProgramivNV(int id, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetProgramLocalParameterARB(int target, int index, FloatBuffer pfParams) { - nglGetProgramLocalParameterfvARB(target, index, pfParams, pfParams.position()); - } - private static native void nglGetProgramLocalParameterfvARB(int target, int index, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetProgramParameterNV(int target, int index, int pname, FloatBuffer pfParams) { - nglGetProgramParameterfvNV(target, index, pname, pfParams, pfParams.position()); - } - private static native void nglGetProgramParameterfvNV(int target, int index, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetProgramStringARB(int target, int pname, ByteBuffer pString) { - nglGetProgramStringARB(target, pname, pString, pString.position()); - } - private static native void nglGetProgramStringARB(int target, int pname, Buffer pString, int pString_offset); - - public static void glGetProgramStringNV(int id, int pname, ByteBuffer pProgram) { - nglGetProgramStringNV(id, pname, pProgram, pProgram.position()); - } - private static native void nglGetProgramStringNV(int id, int pname, ByteBuffer pProgram, int pProgram_offset); - - public static void glGetTexBumpParameterATI(int pname, FloatBuffer pfParam) { - nglGetTexBumpParameterfvATI(pname, pfParam, pfParam.position()); - } - private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset); - - public static void glGetTexBumpParameterATI(int pname, IntBuffer piParam) { - nglGetTexBumpParameterivATI(pname, piParam, piParam.position()); - } - private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset); - - public static void glGetTrackMatrixNV(int target, int address, int pname, IntBuffer piParams) { - nglGetTrackMatrixivNV(target, address, pname, piParams, piParams.position()); - } - private static native void nglGetTrackMatrixivNV(int target, int address, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer pfParams) { - nglGetVariantArrayObjectfvATI(id, pname, pfParams, pfParams.position()); - } - private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer pfParams, int pfParams_offset_offset); - - public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer piParams) { - nglGetVariantArrayObjectivATI(id, pname, piParams, piParams.position()); - } - private static native void nglGetVariantArrayObjectivATI(int id, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) { - nglGetVariantBooleanvEXT(id, value, pbData, pbData.position()); - } - private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_offset); - - public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pfData) { - nglGetVariantFloatvEXT(id, value, pfData, pfData.position()); - } - private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pfData, int pfData_offset); - - public static void glGetVariantIntegerEXT(int id, int value, IntBuffer piData) { - nglGetVariantIntegervEXT(id, value, piData, piData.position()); - } - private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer piData, int piData_offset); - - public static native ByteBuffer glGetVariantPointerEXT(int id, int value, int size); - - public static void glGetVertexAttribARB(int index, int pname, FloatBuffer pfParams) { - nglGetVertexAttribfvARB(index, pname, pfParams, pfParams.position()); - } - private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetVertexAttribNV(int index, int pname, FloatBuffer pfParams) { - nglGetVertexAttribfvNV(index, pname, pfParams, pfParams.position()); - } - private static native void nglGetVertexAttribfvNV(int index, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glGetVertexAttribARB(int index, int pname, IntBuffer piParams) { - nglGetVertexAttribivARB(index, pname, piParams, piParams.position()); - } - private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer piParams, int piParams_offset); - - public static void glGetVertexAttribNV(int index, int pname, IntBuffer piParams) { - nglGetVertexAttribivNV(index, pname, piParams, piParams.position()); - } - private static native void nglGetVertexAttribivNV(int index, int pname, IntBuffer piParams, int piParams_offset); - - public static native ByteBuffer glGetVertexAttribPointerARB( - int index, - int pname, - int size); - - public static native ByteBuffer glGetVertexAttribPointerNV( - int index, - int pname, - int size); - - public static native void glInsertComponentEXT(int res, int src, int num); - - public static native boolean glIsFenceNV(int fence); - - public static native boolean glIsObjectBufferATI(int buffer); - - public static native boolean glIsOcclusionQueryNV(int id); - - public static native boolean glIsProgramARB(int program); - - // #ifdef _WIN32 - - public static native boolean glIsProgramNV(int id); - - public static native boolean glIsVariantEnabledEXT(int id, int cap); - - public static void glLoadProgramNV(int target, int id, ByteBuffer pProgram) { - nglLoadProgramNV(target, id, pProgram.remaining(), pProgram, pProgram.position()); - } - private static native void nglLoadProgramNV(int target, int id, int len, ByteBuffer pProgram, int pProgram_offset); - - public static void glLoadTransposeMatrixARB(FloatBuffer pfMtx) { - nglLoadTransposeMatrixfARB(pfMtx, pfMtx.position()); - } - private static native void nglLoadTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset); - - public static native void glLockArraysEXT(int first, int count); - - public static void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, FloatBuffer pPoints) { - nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position()<<2); - } - private static native void nglMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, Buffer pPoints, int pPoints_offset); - - public static void glMapParameterNV(int target, int pname, FloatBuffer pfParams) { - nglMapParameterfvNV(target, pname, pfParams, pfParams.position()); - } - private static native void nglMapParameterfvNV(int target, int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glMapParameterNV(int target, int pname, IntBuffer piParams) { - nglMapParameterivNV(target, pname, piParams, piParams.position()); - } - private static native void nglMapParameterivNV(int target, int pname, IntBuffer piParams, int piParams_offset); - - public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) { - nglMatrixIndexPointerARB(size, GL_UNSIGNED_BYTE, stride, pPointer, pPointer.position()); - } - public static void glMatrixIndexPointerARB(int size, int stride, ShortBuffer pPointer) { - nglMatrixIndexPointerARB(size, GL_UNSIGNED_SHORT, stride, pPointer, pPointer.position()<<1); - } - public static void glMatrixIndexPointerARB(int size, int stride, IntBuffer pPointer) { - nglMatrixIndexPointerARB(size, GL_UNSIGNED_INT, stride, pPointer, pPointer.position()<<2); - } - private static native void nglMatrixIndexPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_offset); - - public static void glMatrixIndexuARB(ByteBuffer pIndices) { - nglMatrixIndexubvARB(pIndices.remaining(), pIndices, pIndices.position()); - } - private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_offset); - - public static void glMatrixIndexuARB(IntBuffer piIndices) { - nglMatrixIndexuivARB(piIndices.remaining(), piIndices, piIndices.position()); - } - private static native void nglMatrixIndexuivARB(int size, IntBuffer piIndices, int piIndices_offset); - - public static void glMatrixIndexuARB(ShortBuffer psIndices) { - nglMatrixIndexusvARB(psIndices.remaining(), psIndices, psIndices.position()); - } - private static native void nglMatrixIndexusvARB(int size, ShortBuffer psIndices, int psIndices_offset); - - public static void glMultiDrawArraysEXT(int mode, IntBuffer piFirst, IntBuffer piCount) { - assert piFirst.remaining() == piCount.remaining(): "piFirst.remaining() != piCount.remaining()"; - nglMultiDrawArraysEXT(mode, piFirst, piFirst.position(), piCount, piCount.position(), piFirst.remaining()); - } - private static native void nglMultiDrawArraysEXT(int mode, IntBuffer piFirst, int piFirst_offset, IntBuffer piCount, int piCount_offset, int primcount); - -// public static native void glMultiDrawElementsEXT(int mode, int piCount, int type, int pIndices, int primcount); - - public static native void glMultiTexCoord1fARB(int target, float s); - - public static native void glMultiTexCoord1iARB(int target, int s); - - public static native void glMultiTexCoord1sARB(int target, short s); - - public static native void glMultiTexCoord2fARB(int target, float s, float t); - - public static native void glMultiTexCoord2iARB(int target, int s, int t); - - public static native void glMultiTexCoord2sARB(int target, short s, short t); - - public static native void glMultiTexCoord3fARB( - int target, - float s, - float t, - float r); - - public static native void glMultiTexCoord3iARB(int target, int s, int t, int r); - - public static native void glMultiTexCoord3sARB( - int target, - short s, - short t, - short r); - - public static native void glMultiTexCoord4fARB( - int target, - float s, - float t, - float r, - float q); - - public static native void glMultiTexCoord4iARB( - int target, - int s, - int t, - int r, - int q); - - public static native void glMultiTexCoord4sARB( - int target, - short s, - short t, - short r, - short q); - - public static void glMultTransposeMatrixfARB(FloatBuffer pfMtx) { - nglMultTransposeMatrixfARB(pfMtx, pfMtx.position()); - } - private static native void nglMultTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset); - - public static int glNewObjectBufferATI(int size, ByteBuffer pPointer, int usage) { - return nglNewObjectBufferATI(size, pPointer, pPointer != null ? pPointer.position() : 0, usage); - } - public static int glNewObjectBufferATI(int size, ShortBuffer pPointer, int usage) { - return nglNewObjectBufferATI(size, pPointer, pPointer != null ? pPointer.position()<<1 : 0, usage); - } - public static int glNewObjectBufferATI(int size, FloatBuffer pPointer, int usage) { - return nglNewObjectBufferATI(size, pPointer, pPointer != null ? pPointer.position()<<2 : 0, usage); - } - public static int glNewObjectBufferATI(int size, IntBuffer pPointer, int usage) { - return nglNewObjectBufferATI(size, pPointer, pPointer != null ? pPointer.position()<<2 : 0, usage); - } - private static native int nglNewObjectBufferATI(int size, Buffer pPointer, int pPointer_offset, int usage); - - public static native void glNormalStream3bATI(int stream, byte x, byte y, byte z); - - public static native void glNormalStream3fATI(int stream, float x, float y, float z); - - public static native void glNormalStream3iATI(int stream, int x, int y, int z); - - public static native void glNormalStream3sATI(int stream, short x, short y, short z); - - public static native void glPassTexCoordATI(int dst, int coord, int swizzle); - - public static native void glPNTrianglesfATI(int pname, float param); - - public static native void glPNTrianglesiATI(int pname, int param); - - public static native void glStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass); - - public static native void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask); - - public static native void glPointParameterfARB(int pname, float param); - - public static native void glPointParameterfEXT(int pname, float param); - - public static void glPointParameterARB(int pname, FloatBuffer pfParams) { - nglPointParameterfvARB(pname, pfParams, pfParams.position()); - } - private static native void nglPointParameterfvARB(int pname, FloatBuffer pfParams, int pfParams_offset); - - public static void glPointParameterEXT(int pname, FloatBuffer pfParams) { - nglPointParameterfvEXT(pname, pfParams, pfParams.position()); - } - private static native void nglPointParameterfvEXT(int pname, FloatBuffer pfParams, int pfParams_offset); - - public static native void glPointParameteriNV(int pname, int param); - - public static void glPointParameterNV(int pname, IntBuffer piParams) { - nglPointParameterivNV(pname, piParams, piParams.position()); - } - private static native void nglPointParameterivNV(int pname, IntBuffer piParams, int piParams_offset); - - public static native void glProgramEnvParameter4fARB( - int target, - int index, - float x, - float y, - float z, - float w); - - public static native void glProgramLocalParameter4fARB( - int target, - int index, - float x, - float y, - float z, - float w); - - public static native void glProgramParameter4fNV( - int target, - int index, - float x, - float y, - float z, - float w); - - public static void glProgramParameters4NV(int target, int index, int num, FloatBuffer pfParams) { - nglProgramParameters4fvNV(target, index, num, pfParams, pfParams.position()); - } - private static native void nglProgramParameters4fvNV(int target, int index, int num, FloatBuffer pfParams, int pfParams_offset); - - public static void glProgramStringARB(int target, int format, ByteBuffer pString) { - nglProgramStringARB(target, format, pString.remaining(), pString, pString.position()); - } - private static native void nglProgramStringARB(int target, int format, int len, Buffer pString, int pString_offset); - - public static void glRequestResidentProgramsNV(IntBuffer piIDs) { - nglRequestResidentProgramsNV(piIDs.remaining(), piIDs, piIDs.position()); - } - private static native void nglRequestResidentProgramsNV(int n, IntBuffer piIDs, int piIDs_offset); - - public static native void glSampleCoverageARB(float value, boolean invert); - - public static native void glSampleMapATI(int dst, int interp, int swizzle); - - public static native void glSecondaryColor3bEXT(byte red, byte green, byte blue); - - public static native void glSecondaryColor3fEXT(float red, float green, float blue); - - public static native void glSecondaryColor3ubEXT(byte red, byte green, byte blue); - - public static void glSecondaryColorPointerEXT(int size, int type, int stride, ByteBuffer pPointer) { - nglSecondaryColorPointerEXT(size, type, stride, pPointer, pPointer.position()); - } - public static void glSecondaryColorPointerEXT(int size, int type, int stride, FloatBuffer pPointer) { - nglSecondaryColorPointerEXT(size, type, stride, pPointer, pPointer.position()<<2); - } - private static native void nglSecondaryColorPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_offset); - - public static native void glSetFenceNV(int fence, int condition); - - public static void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue) { - nglSetFragmentShaderConstantATI(dst, pfValue, pfValue.position()); - } - private static native void nglSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue, int pfValue_offset); - - public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, pAddr, pAddr.position()); - } - public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, pAddr, pAddr.position()<<1); - } - public static void glSetInvariantEXT(int id, FloatBuffer pAddr) { - nglSetInvariantEXT(id, GL_FLOAT, pAddr, pAddr.position()<<2); - } - public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) { - nglSetInvariantEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, pAddr, pAddr.position()<<2); - } - private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_offset); - - public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, pAddr, pAddr.position()); - } - public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, pAddr, pAddr.position()<<1); - } - public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) { - nglSetLocalConstantEXT(id, GL_FLOAT, pAddr, pAddr.position()<<2); - } - public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) { - nglSetLocalConstantEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, pAddr, pAddr.position()<<2); - } - private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_offset); - - public static native void glShaderOp1EXT(int op, int res, int arg1); - - public static native void glShaderOp2EXT(int op, int res, int arg1, int arg2); - - public static native void glShaderOp3EXT( - int op, - int res, - int arg1, - int arg2, - int arg3); - - public static native void glSwizzleEXT( - int res, - int in, - int outX, - int outY, - int outZ, - int outW); - - public static native boolean glTestFenceNV(int fence); - - public static void glTexBumpParameterATI(int pname, FloatBuffer pfParam) { - nglTexBumpParameterfvATI(pname, pfParam, pfParam.position()); - } - private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer pfParam, int pfParam_offset); - - public static void glTexBumpParameterATI(int pname, IntBuffer piParam) { - nglTexBumpParameterivATI(pname, piParam, piParam.position()); - } - private static native void nglTexBumpParameterivATI(int pname, IntBuffer piParam, int piParam_offset); - - public static native void glTrackMatrixNV( - int target, - int address, - int matrix, - int transform); - - public static native void glUnlockArraysEXT(); - - public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) { - nglUpdateObjectBufferATI(buffer, offset, pPointer.remaining(), pPointer, pPointer.position(), preserve); - } - public static void glUpdateObjectBufferATI(int buffer, int offset, ShortBuffer pPointer, int preserve) { - nglUpdateObjectBufferATI(buffer, offset, pPointer.remaining()<<1, pPointer, pPointer.position()<<1, preserve); - } - public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) { - nglUpdateObjectBufferATI(buffer, offset, pPointer.remaining()<<2, pPointer, pPointer.position()<<2, preserve); - } - public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) { - nglUpdateObjectBufferATI(buffer, offset, pPointer.remaining()<<2, pPointer, pPointer.position()<<2, preserve); - } - private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_offset, int preserve); - - public static native void glVariantArrayObjectATI( - int id, - int type, - int stride, - int buffer, - int offset); - - public static void glVariantEXT(int id, ByteBuffer pAddr) { - nglVariantbvEXT(id, pAddr, pAddr.position()); - } - private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_offset); - - public static void glVariantEXT(int id, FloatBuffer pfAddr) { - nglVariantfvEXT(id, pfAddr, pfAddr.position()); - } - private static native void nglVariantfvEXT(int id, FloatBuffer pfAddr, int pfAddr_offset); - - public static void glVariantEXT(int id, IntBuffer piAddr) { - nglVariantivEXT(id, piAddr, piAddr.position()); - } - private static native void nglVariantivEXT(int id, IntBuffer piAddr, int piAddr_offset); - - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ByteBuffer pAddr) { - nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pAddr, pAddr.position()); - } - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) { - nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pAddr, pAddr.position()<<1); - } - public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) { - nglVariantPointerEXT(id, GL_FLOAT, stride, pAddr, pAddr.position()<<2); - } - public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) { - nglVariantPointerEXT(id, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pAddr, pAddr.position()<<2); - } - private static native void nglVariantPointerEXT(int id, int type, int stride, Buffer pAddr, int pAddr_offset); - - public static void glVariantEXT(int id, ShortBuffer psAddr) { - nglVariantsvEXT(id, psAddr, psAddr.position()); - } - private static native void nglVariantsvEXT(int id, ShortBuffer psAddr, int psAddr_offset); - - public static void glVariantuEXT(int id, ByteBuffer pAddr) { - nglVariantubvEXT(id, pAddr, pAddr.position()); - } - private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_offset); - - public static void glVariantuEXT(int id, IntBuffer piAddr) { - nglVariantuivEXT(id, piAddr, piAddr.position()); - } - private static native void nglVariantuivEXT(int id, IntBuffer piAddr, int piAddr_offset); - - public static void glVariantuEXT(int id, ShortBuffer psAddr) { - nglVariantusvEXT(id, psAddr, psAddr.position()); - } - private static native void nglVariantusvEXT(int id, ShortBuffer psAddr, int psAddr_offset); - - public static void glVertexArrayRangeNV(ByteBuffer pPointer) { - nglVertexArrayRangeNV(pPointer.remaining(), pPointer, pPointer.position()); - } - private static native void nglVertexArrayRangeNV(int size, Buffer pPointer, int pPointer_offset); - - public static native void glVertexAttrib1fARB(int index, float x); - - public static native void glVertexAttrib1fNV(int index, float x); - - public static native void glVertexAttrib1sARB(int index, short x); - - public static native void glVertexAttrib1sNV(int index, short x); - - public static native void glVertexAttrib2fARB(int index, float x, float y); - - public static native void glVertexAttrib2fNV(int index, float x, float y); - - public static native void glVertexAttrib2sARB(int index, short x, short y); - - public static native void glVertexAttrib2sNV(int index, short x, short y); - - public static native void glVertexAttrib3fARB(int index, float x, float y, float z); - - public static native void glVertexAttrib3fNV(int index, float x, float y, float z); - - public static native void glVertexAttrib3sARB(int index, short x, short y, short z); - - public static native void glVertexAttrib3sNV(int index, short x, short y, short z); - - public static void glVertexAttrib4ARB(int index, ByteBuffer pV) { - nglVertexAttrib4bvARB(index, pV, pV.position()); - } - private static native void nglVertexAttrib4bvARB(int index, ByteBuffer pV, int pV_offset); - - public static native void glVertexAttrib4fARB( - int index, - float x, - float y, - float z, - float w); - - public static native void glVertexAttrib4fNV( - int index, - float x, - float y, - float z, - float w); - - public static void glVertexAttrib4ARB(int index, IntBuffer piV) { - nglVertexAttrib4ivARB(index, piV, piV.position()); - } - private static native void nglVertexAttrib4ivARB(int index, IntBuffer piV, int piV_offset); - - public static void glVertexAttrib4NARB(int index, ByteBuffer pV) { - nglVertexAttrib4NbvARB(index, pV, pV.position()); - } - private static native void nglVertexAttrib4NbvARB(int index, ByteBuffer pV, int pV_offset); - - public static void glVertexAttrib4NARB(int index, IntBuffer piV) { - nglVertexAttrib4NivARB(index, piV, piV.position()); - } - private static native void nglVertexAttrib4NivARB(int index, IntBuffer piV, int piV_offset); - - public static void glVertexAttrib4NARB(int index, ShortBuffer psV) { - nglVertexAttrib4NsvARB(index, psV, psV.position()); - } - private static native void nglVertexAttrib4NsvARB(int index, ShortBuffer psV, int psV_offset); - - public static native void glVertexAttrib4NubARB( - int index, - byte x, - byte y, - byte z, - byte w); - - public static void glVertexAttrib4NuARB(int index, ByteBuffer pV) { - nglVertexAttrib4NubvARB(index, pV, pV.position()); - } - private static native void nglVertexAttrib4NubvARB(int index, ByteBuffer pV, int pV_offset); - - public static void glVertexAttrib4NuARB(int index, IntBuffer piV) { - nglVertexAttrib4NuivARB(index, piV, piV.position()); - } - private static native void nglVertexAttrib4NuivARB(int index, IntBuffer piV, int piV_offset); - - public static void glVertexAttrib4NuARB(int index, ShortBuffer psV) { - nglVertexAttrib4NusvARB(index, psV, psV.position()); - } - private static native void nglVertexAttrib4NusvARB(int index, ShortBuffer psV, int psV_offset); - - public static native void glVertexAttrib4sARB( - int index, - short x, - short y, - short z, - short w); - - public static native void glVertexAttrib4sNV( - int index, - short x, - short y, - short z, - short w); - - public static native void glVertexAttrib4ubNV( - int index, - byte x, - byte y, - byte z, - byte w); - - public static void glVertexAttrib4uARB(int index, ByteBuffer pV) { - nglVertexAttrib4ubvARB(index, pV, pV.position()); - } - private static native void nglVertexAttrib4ubvARB(int index, ByteBuffer pV, int pV_offset); - - public static void glVertexAttrib4uNV(int index, ByteBuffer pV) { - nglVertexAttrib4ubvNV(index, pV, pV.position()); - } - private static native void nglVertexAttrib4ubvNV(int index, ByteBuffer pV, int pV_offset); - - public static void glVertexAttrib4uARB(int index, IntBuffer piV) { - nglVertexAttrib4uivARB(index, piV, piV.position()); - } - private static native void nglVertexAttrib4uivARB(int index, IntBuffer piV, int piV_offset); - - public static void glVertexAttrib4uARB(int index, ShortBuffer psV) { - nglVertexAttrib4usvARB(index, psV, psV.position()); - } - private static native void nglVertexAttrib4usvARB(int index, ShortBuffer psV, int psV_offset); - - public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, normalized, stride, pPointer, pPointer.position()); - } - public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, normalized, stride, pPointer, pPointer.position()<<1); - } - public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexAttribPointerARB(index, size, GL_FLOAT, normalized, stride, pPointer, pPointer.position()<<2); - } - public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglVertexAttribPointerARB(index, size, unsigned ? GL_UNSIGNED_INT : GL_INT, normalized, stride, pPointer, pPointer.position()<<2); - } - private static native void nglVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, Buffer pPointer, int pPointer_offset); - public static void glVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglVertexAttribPointerARBVBO(index, size, type, normalized, stride, buffer_offset); - } - private static native void nglVertexAttribPointerARBVBO(int index, int size, int type, boolean normalized, int stride, int buffer_offset); - public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ByteBuffer pPointer) { - nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pPointer, pPointer.position()); - } - public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, ShortBuffer pPointer) { - nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pPointer, pPointer.position()<<1); - } - public static void glVertexAttribPointerNV(int index, int size, int stride, FloatBuffer pPointer) { - nglVertexAttribPointerNV(index, size, GL_FLOAT, stride, pPointer, pPointer.position()<<2); - } - public static void glVertexAttribPointerNV(int index, int size, boolean unsigned, int stride, IntBuffer pPointer) { - nglVertexAttribPointerNV(index, size, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pPointer, pPointer.position()<<2); - } - private static native void nglVertexAttribPointerNV(int index, int size, int type, int stride, Buffer pPointer, int pPointer_offset); - - public static void glVertexAttribs1NV(int index, FloatBuffer pfV) { - nglVertexAttribs1fvNV(index, pfV.remaining(), pfV, pfV.position()); - } - private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer pfV, int pfV_offset); - - public static void glVertexAttribs1NV(int index, ShortBuffer psV) { - nglVertexAttribs1svNV(index, psV.remaining(), psV, psV.position()); - } - private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer psV, int psV_offset); - - public static void glVertexAttribs2NV(int index, FloatBuffer pfV) { - nglVertexAttribs2fvNV(index, pfV.remaining()>>1, pfV, pfV.position()); - } - private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer pfV, int pfV_offset); - - public static void glVertexAttribs2NV(int index, ShortBuffer psV) { - nglVertexAttribs2svNV(index, psV.remaining()>>1, psV, psV.position()); - } - private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer psV, int psV_offset); - - public static void glVertexAttribs3NV(int index, FloatBuffer pfV) { - nglVertexAttribs3fvNV(index, pfV.remaining()/3, pfV, pfV.position()); - } - private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer pfV, int pfV_offset); - - public static void glVertexAttribs3NV(int index, ShortBuffer psV) { - nglVertexAttribs3svNV(index, psV.remaining()/3, psV, psV.position()); - } - private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer psV, int psV_offset); - - public static void glVertexAttribs4NV(int index, FloatBuffer pfV) { - nglVertexAttribs4fvNV(index, pfV.remaining()>>2, pfV, pfV.position()); - } - private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer pfV, int pfV_offset); - - public static void glVertexAttribs4NV(int index, ShortBuffer psV) { - nglVertexAttribs4svNV(index, psV.remaining()>>2, psV, psV.position()); - } - private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer psV, int psV_offset); - - public static void glVertexAttribs4uNV(int index, ByteBuffer pV) { - nglVertexAttribs4ubvNV(index, pV.remaining()>>2, pV, pV.position()); - } - private static native void nglVertexAttribs4ubvNV(int index, int n, ByteBuffer pV, int pV_offset); - - public static native void glVertexBlendARB(int count); - - public static native void glVertexBlendEnvfATI(int pname, float param); - - public static native void glVertexBlendEnviATI(int pname, int param); - - public static native void glVertexStream2fATI(int stream, float x, float y); - - public static native void glVertexStream2iATI(int stream, int x, int y); - - public static native void glVertexStream2sATI(int stream, short x, short y); - - public static native void glVertexStream3fATI(int stream, float x, float y, float z); - - public static native void glVertexStream3iATI(int stream, int x, int y, int z); - - public static native void glVertexStream3sATI(int stream, short x, short y, short z); - - public static native void glVertexStream4fATI( - int stream, - float x, - float y, - float z, - float w); - - public static native void glVertexStream4iATI( - int stream, - int x, - int y, - int z, - int w); - - public static native void glVertexStream4sATI( - int stream, - short x, - short y, - short z, - short w); - - public static native void glVertexWeightfEXT(float weight); - - public static void glVertexWeightPointerEXT(int size, int stride, FloatBuffer pPointer) { - nglVertexWeightPointerEXT(size, GL_FLOAT, stride, pPointer, pPointer.position()<<2); - } - private static native void nglVertexWeightPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_offset); - - public static void glWeightARB(ByteBuffer pWeights) { - nglWeightbvARB(pWeights.remaining(), pWeights, pWeights.position()); - } - private static native void nglWeightbvARB(int size, ByteBuffer pWeights, int pWeights_offset); - - public static void glWeightARB(int size, FloatBuffer pfWeights) { - nglWeightfvARB(pfWeights.remaining(), pfWeights, pfWeights.position()); - } - private static native void nglWeightfvARB(int size, FloatBuffer pfWeights, int pfWeights_offset); - - public static void glWeightARB(IntBuffer piWeights) { - nglWeightivARB(piWeights.remaining(), piWeights, piWeights.position()); - } - private static native void nglWeightivARB(int size, IntBuffer piWeights, int piWeights_offset); - - public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_BYTE : GL_BYTE, stride, pPointer, pPointer.position()); - } - public static void glWeightPointerARB(int size, boolean unsigned, int stride, ShortBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_SHORT : GL_SHORT, stride, pPointer, pPointer.position()<<1); - } - public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglWeightPointerARB(size, GL_FLOAT, stride, pPointer, pPointer.position()<<2); - } - public static void glWeightPointerARB(int size, boolean unsigned, int stride, IntBuffer pPointer) { - assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; - nglWeightPointerARB(size, unsigned ? GL_UNSIGNED_INT : GL_INT, stride, pPointer, pPointer.position()<<2); - } - private static native void nglWeightPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_offset); - public static void glWeightPointerARB(int size, int type, int stride, int buffer_offset) { - assert VBOTracker.getVBOArrayStack().getState() != 0: "Cannot use int offsets when VBO is disabled"; - nglWeightPointerARBVBO(size, type, stride, buffer_offset); - } - private static native void nglWeightPointerARBVBO(int size, int type, int stride, int buffer_offset); - - public static void glWeightARB(ShortBuffer psWeights) { - nglWeightsvARB(psWeights.remaining(), psWeights, psWeights.position()); - } - private static native void nglWeightsvARB(int size, ShortBuffer psWeights, int psWeights_offset); - - public static void glWeightuARB(ByteBuffer pWeights) { - nglWeightubvARB(pWeights.remaining(), pWeights, pWeights.position()); - } - private static native void nglWeightubvARB(int size, ByteBuffer pWeights, int pWeights_offset); - - public static void glWeightuARB(IntBuffer piWeights) { - nglWeightuivARB(piWeights.remaining(), piWeights, piWeights.position()); - } - private static native void nglWeightuivARB(int size, IntBuffer piWeights, int piWeights_offset); - - public static void glWeightuARB(ShortBuffer psWeights) { - nglWeightusvARB(psWeights.remaining(), psWeights, psWeights.position()); - } - private static native void nglWeightusvARB(int size, ShortBuffer psWeights, int psWeights_offset); - - public static native ByteBuffer glXAllocateMemoryNV( - int size, - float readFrequency, - float writeFrequency, - float priority); - - private static native void glXFreeMemoryNV(ByteBuffer pointer); - - // #ifdef _WIN32 - - public static native ByteBuffer wglAllocateMemoryNV( - int size, - float readFrequency, - float writeFrequency, - float priority); - - public static native boolean wglBindTexImageARB(int hPbuffer, int iBuffer); - -/* public static native boolean wglChoosePixelFormatARB( - int hdc, - int piAttribIList, - int pfAttribFList, - int nMaxFormats, - int piFormats, - int piNumFormats); -*/ -/* public static native int wglCreateBufferRegionARB( - int hdc, - int iLayerPlane, - int uType); -*/ -/* public static native int wglCreatePbufferARB( - int hDC, - int iPixelFormat, - int iWidth, - int iHeight, - int piAttribList); -*/ -// public static native void wglDeleteBufferRegionARB(Buffer hRegion); - -/* public static native boolean wglDestroyPbufferARB(int hPbuffer);*/ - - public static native void wglFreeMemoryNV(ByteBuffer pointer); - - public static native int wglGetCurrentReadDCARB(); - - public static native String wglGetExtensionsStringARB(); - - public static native String wglGetExtensionsStringEXT(); - -// public static native int wglGetPbufferDCARB(int hPbuffer); - -/* public static native boolean wglMakeContextCurrentARB( - int hDrawDC, - int hReadDC, - int hglrc); - - public static native boolean wglQueryPbufferARB( - int hPbuffer, - int iAttribute, - int piValue); - - public static native int wglReleasePbufferDCARB(int hPbuffer, int hDC); -*/ - public static native boolean wglReleaseTexImageARB( - int hPbuffer, - int iBuffer); - -public static native void glWindowPos2fARB(float x, float y); - - public static native void glWindowPos2iARB(int x, int y); - - public static native void glWindowPos2sARB(short x, short y); - - public static native void glWindowPos3fARB(float x, float y, float z); - - public static native void glWindowPos3iARB(int x, int y, int z); - - public static native void glWindowPos3sARB(short x, short y, short z); - - public static native void glWriteMaskEXT( - int res, - int in, - int outX, - int outY, - int outZ, - int outW); - - public static void glBindBufferARB(int target, int buffer) { - switch (target) { - case GL_ELEMENT_ARRAY_BUFFER_ARB: - VBOTracker.getVBOElementStack().setState(buffer); - break; - case GL_ARRAY_BUFFER_ARB: - VBOTracker.getVBOArrayStack().setState(buffer); - break; - default: assert false: "Unsupported VBO target " + target; - } - nglBindBufferARB(target, buffer); - } - private static native void nglBindBufferARB(int target, int buffer); - public static void glDeleteBuffersARB(IntBuffer buffers) { - for (int i = buffers.position(); i < buffers.limit(); i++) { - int buffer_handle = buffers.get(i); - if (VBOTracker.getVBOElementStack().getState() == buffer_handle) - VBOTracker.getVBOElementStack().setState(0); - if (VBOTracker.getVBOArrayStack().getState() == buffer_handle) - VBOTracker.getVBOArrayStack().setState(0); - } - nglDeleteBuffersARB(buffers.remaining(), buffers, buffers.position()); - } - private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_offset); - public static void glGenBuffersARB(IntBuffer buffers) { - nglGenBuffersARB(buffers.remaining(), buffers, buffers.position()); - } - private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_offset); - public static native boolean glIsBufferARB(int buffer); - public static void glBufferDataARB(int target, int size, ByteBuffer data, int usage) { - nglBufferDataARB(target, size, data, data != null ? data.position() : 0, usage); - } - public static void glBufferDataARB(int target, int size, ShortBuffer data, int usage) { - nglBufferDataARB(target, size, data, data != null ? data.position()<<1 : 0, usage); - } - public static void glBufferDataARB(int target, int size, FloatBuffer data, int usage) { - nglBufferDataARB(target, size, data, data != null ? data.position()<<2 : 0, usage); - } - public static void glBufferDataARB(int target, int size, IntBuffer data, int usage) { - nglBufferDataARB(target, size, data, data != null ? data.position()<<2 : 0, usage); - } - private static native void nglBufferDataARB(int target, int size, Buffer data, int data_offset, int usage); - public static void glBufferSubDataARB(int target, int offset, ByteBuffer data) { - nglBufferSubDataARB(target, offset, data.remaining(), data, data.position()); - } - public static void glBufferSubDataARB(int target, int offset, ShortBuffer data) { - nglBufferSubDataARB(target, offset, data.remaining()<<1, data, data.position()<<1); - } - public static void glBufferSubDataARB(int target, int offset, FloatBuffer data) { - nglBufferSubDataARB(target, offset, data.remaining()<<2, data, data.position()<<2); - } - public static void glBufferSubDataARB(int target, int offset, IntBuffer data) { - nglBufferSubDataARB(target, offset, data.remaining()<<2, data, data.position()<<2); - } - private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset); - public static void glGetBufferSubDataARB(int target, int offset, ByteBuffer data) { - nglGetBufferSubDataARB(target, offset, data.remaining(), data, data.position()); - } - public static void glGetBufferSubDataARB(int target, int offset, ShortBuffer data) { - nglGetBufferSubDataARB(target, offset, data.remaining()<<1, data, data.position()<<1); - } - public static void glGetBufferSubDataARB(int target, int offset, IntBuffer data) { - nglGetBufferSubDataARB(target, offset, data.remaining()<<2, data, data.position()<<2); - } - public static void glGetBufferSubDataARB(int target, int offset, FloatBuffer data) { - nglGetBufferSubDataARB(target, offset, data.remaining()<<2, data, data.position()<<2); - } - private static native void nglGetBufferSubDataARB(int target, int offset, int size, Buffer data, int data_offset); - /** - * glMapBufferARB maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null, in - * which case a new ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null, - * it will be returned if it points to the same mapped memory, otherwise a new ByteBuffer is created. - * That way, an application will normally use glMapBufferARB like this: - * - * ByteBuffer mapped_buffer; - * mapped_buffer = glMapBufferARB(..., ..., ..., null); - * ... - * // Another map on the same buffer - * mapped_buffer = glMapBufferARB(..., ..., ..., mapped_buffer); - * - * @param size The size of the buffer area. - * @param oldBuffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and - * no new buffer will be created. In that case, size is ignored. - * @return A ByteBuffer representing the mapped buffer memory. - */ - public static native ByteBuffer glMapBufferARB(int target, int access, int size, ByteBuffer oldBuffer); - public static native boolean glUnmapBufferARB(int target); - public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) { - nglGetBufferParameterivARB(target, pname, params, params.position()); - } - private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_offset); - public static native ByteBuffer glGetBufferPointerARB(int target, int pname, int size); -} diff --git a/src/java/org/lwjgl/opengl/GLConstants.java b/src/java/org/lwjgl/opengl/GLConstants.java deleted file mode 100644 index a8aac368..00000000 --- a/src/java/org/lwjgl/opengl/GLConstants.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.lwjgl.opengl; - -import org.lwjgl.opengl.arb.*; -import org.lwjgl.opengl.ati.*; -import org.lwjgl.opengl.ati.ATIElementArray; -import org.lwjgl.opengl.ati.ATIEnvmapBumpmap; -import org.lwjgl.opengl.atix.ATIXPointSprites; -import org.lwjgl.opengl.atix.ATIXTextureEnvRoute; -import org.lwjgl.opengl.ext.*; -import org.lwjgl.opengl.ext.EXTAbgr; -import org.lwjgl.opengl.ext.EXTCompiledVertexArray; -import org.lwjgl.opengl.nv.*; -import org.lwjgl.opengl.nv.NVCopyDepthToColor; -import org.lwjgl.opengl.nv.NVDepthClamp; -import org.lwjgl.opengl.wgl.*; -import org.lwjgl.opengl.wgl.WGLBufferRegion; -import org.lwjgl.opengl.wgl.WGLMakeCurrentRead; - -/** - * $Id$ - * - * All GL constants, including all supported extensions. - * - * @author cix_foo - * @version $Revision$ - */ - -public interface GLConstants - extends - ARBCubeMap, - ARBDepthTexture, - ARBMatrixPalette, - ARBMultisample, - ARBMultitexture, - ARBPointParameters, - ARBShadow, - ARBShadowAmbient, - ARBTextureBorderClamp, - ARBTextureCompression, - ARBTextureEnvCombine, - ARBTextureEnvDot3, - ARBTextureMirroredRepeat, - ARBTransposeMatrix, - ARBVertexBlend, - ARBVertexBufferObject, - ARBVertexProgram, - ARBFragmentProgram, - ATIElementArray, - ATIEnvmapBumpmap, - ATIFragmentShader, - ATIPnTriangles, - ATITextureMirrorOnce, - ATIVertexArrayObject, - ATIVertexStreams, - ATISeparateStencil, - ATIXPointSprites, - ATIXTextureEnvRoute, - EXTAbgr, - EXTBgra, - EXTBlendColor, - EXTBlendMinmax, - EXTCompiledVertexArray, - EXTDrawRangeElements, - EXTFogCoord, - EXTLightMaxExponent, - EXTPackedPixels, - EXTPalettedTexture, - EXTPointParameters, - EXTRescaleNormal, - EXTSecondaryColor, - EXTSeparateSpecularColor, - EXTSharedTexturePalette, - EXTStencilTwoSide, - EXTStencilWrap, - EXTTextureCompressionS3TC, - EXTTextureEnvCombine, - EXTTextureEnvDot3, - EXTTextureFilterAnisotropic, - EXTTextureLODBias, - EXTTextureRectangle, - EXTVertexArray, - EXTVertexShader, - EXTVertexWeighting, - NVCopyDepthToColor, - NVDepthClamp, - NVEvaluators, - NVFence, - NVFogDistance, - NVLightMaxExponent, - NVOcclusionQuery, - NVPackedDepthStencil, - NVPointSprite, - NVRegisterCombiners, - NVRegisterCombiners2, - NVTexgenReflection, - NVTextureEnvCombine4, - NVTextureRectangle, - NVTextureShader, - NVTextureShader2, - NVTextureShader3, - NVVertexArrayRange, - NVVertexArrayRange2, - NVVertexProgram, - WGLBufferRegion, - WGLMakeCurrentRead, - WGLMultisample, - WGLPBuffer, - WGLPixelFormat, - WGLRenderTexture, - CoreGL14Constants -{ - -}