no longer needed files; cleanup after SF fuckup
This commit is contained in:
parent
958a517011
commit
7d8c095e3a
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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);
|
||||
}
|
||||
|
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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;
|
||||
}
|
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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);
|
||||
}
|
||||
|
||||
|
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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;
|
||||
}
|
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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);
|
||||
}
|
||||
|
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -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 <cix_foo@users.sourceforge.net>
|
||||
* @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
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue