mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-25 01:50:42 +01:00
Mac OS X: Handle MouseEvent.NOBUTTON case
This commit is contained in:
parent
ce673390d3
commit
dda8ac8af1
File diff suppressed because it is too large
Load diff
|
|
@ -7,121 +7,57 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public class ARBBufferObject {
|
||||
public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88bd;
|
||||
public static final int GL_BUFFER_MAPPED_ARB = 0x88bc;
|
||||
public static final int GL_BUFFER_ACCESS_ARB = 0x88bb;
|
||||
public static final int GL_BUFFER_USAGE_ARB = 0x8765;
|
||||
public static final int GL_BUFFER_SIZE_ARB = 0x8764;
|
||||
public static final int GL_READ_WRITE_ARB = 0x88ba;
|
||||
public static final int GL_WRITE_ONLY_ARB = 0x88b9;
|
||||
public static final int GL_READ_ONLY_ARB = 0x88b8;
|
||||
public static final int GL_DYNAMIC_COPY_ARB = 0x88ea;
|
||||
public static final int GL_DYNAMIC_READ_ARB = 0x88e9;
|
||||
public static final int GL_DYNAMIC_DRAW_ARB = 0x88e8;
|
||||
public static final int GL_STATIC_COPY_ARB = 0x88e6;
|
||||
public static final int GL_STATIC_READ_ARB = 0x88e5;
|
||||
public static final int GL_STATIC_DRAW_ARB = 0x88e4;
|
||||
public static final int GL_STREAM_COPY_ARB = 0x88e2;
|
||||
public static final int GL_STREAM_READ_ARB = 0x88e1;
|
||||
public static final int GL_STREAM_DRAW_ARB = 0x88e0;
|
||||
public static final int GL_STREAM_READ_ARB = 0x88e1;
|
||||
public static final int GL_STREAM_COPY_ARB = 0x88e2;
|
||||
public static final int GL_STATIC_DRAW_ARB = 0x88e4;
|
||||
public static final int GL_STATIC_READ_ARB = 0x88e5;
|
||||
public static final int GL_STATIC_COPY_ARB = 0x88e6;
|
||||
public static final int GL_DYNAMIC_DRAW_ARB = 0x88e8;
|
||||
public static final int GL_DYNAMIC_READ_ARB = 0x88e9;
|
||||
public static final int GL_DYNAMIC_COPY_ARB = 0x88ea;
|
||||
public static final int GL_READ_ONLY_ARB = 0x88b8;
|
||||
public static final int GL_WRITE_ONLY_ARB = 0x88b9;
|
||||
public static final int GL_READ_WRITE_ARB = 0x88ba;
|
||||
public static final int GL_BUFFER_SIZE_ARB = 0x8764;
|
||||
public static final int GL_BUFFER_USAGE_ARB = 0x8765;
|
||||
public static final int GL_BUFFER_ACCESS_ARB = 0x88bb;
|
||||
public static final int GL_BUFFER_MAPPED_ARB = 0x88bc;
|
||||
public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88bd;
|
||||
|
||||
|
||||
public static java.nio.ByteBuffer glGetBufferPointerARB(int target, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferPointervARB_pointer;
|
||||
public static void glBindBufferARB(int target, int buffer) {
|
||||
StateTracker.bindBuffer(target, buffer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBindBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetBufferPointervARB(target, pname, result_size, function_pointer);
|
||||
nglBindBufferARB(target, buffer, function_pointer);
|
||||
}
|
||||
private static native void nglBindBufferARB(int target, int buffer, long function_pointer);
|
||||
|
||||
public static void glDeleteBuffersARB(IntBuffer buffers) {
|
||||
StateTracker.deleteBuffers(buffers);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glDeleteBuffersARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglDeleteBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
|
||||
public static void glGenBuffersARB(IntBuffer buffers) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGenBuffersARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglGenBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
|
||||
public static boolean glIsBufferARB(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glIsBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsBufferARB(buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetBufferPointervARB(int target, int pname, int result_size, long function_pointer);
|
||||
|
||||
public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferParameterivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetBufferParameterivARB(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static boolean glUnmapBufferARB(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glUnmapBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglUnmapBufferARB(target, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglUnmapBufferARB(int target, long function_pointer);
|
||||
|
||||
/**
|
||||
* glMapBufferARB maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null,
|
||||
* in which case a new ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null,
|
||||
* it will be returned if it points to the same mapped memory, otherwise a new ByteBuffer is created. That
|
||||
* way, an application will normally use glMapBufferARB like this:
|
||||
* <p/>
|
||||
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferARB(..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferARB(..., ..., ..., mapped_buffer);
|
||||
* @param result_size The size of the buffer area.
|
||||
* @param old_buffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and no new buffer will be created. In that case, size is ignored.
|
||||
* @return A ByteBuffer representing the mapped buffer memory.
|
||||
*/
|
||||
public static java.nio.ByteBuffer glMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glMapBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (old_buffer != null)
|
||||
BufferChecks.checkDirect(old_buffer);
|
||||
java.nio.ByteBuffer __result = nglMapBufferARB(target, access, result_size, old_buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
|
||||
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferSubDataARB(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
private static native boolean nglIsBufferARB(int buffer, long function_pointer);
|
||||
|
||||
public static void glBufferDataARB(int target, int size, int usage) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
|
||||
|
|
@ -154,36 +90,100 @@ public class ARBBufferObject {
|
|||
}
|
||||
private static native void nglBufferDataARB(int target, int size, Buffer data, int data_position, int usage, long function_pointer);
|
||||
|
||||
public static boolean glIsBufferARB(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glIsBufferARB_pointer;
|
||||
public static void glBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsBufferARB(buffer, function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferSubDataARB(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
/**
|
||||
* glMapBufferARB maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null,
|
||||
* in which case a new ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null,
|
||||
* it will be returned if it points to the same mapped memory, otherwise a new ByteBuffer is created. That
|
||||
* way, an application will normally use glMapBufferARB like this:
|
||||
* <p/>
|
||||
* ByteBuffer mapped_buffer; mapped_buffer = glMapBufferARB(..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferARB(..., ..., ..., mapped_buffer);
|
||||
* @param result_size The size of the buffer area.
|
||||
* @param old_buffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and no new buffer will be created. In that case, size is ignored.
|
||||
* @return A ByteBuffer representing the mapped buffer memory.
|
||||
*/
|
||||
public static java.nio.ByteBuffer glMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glMapBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (old_buffer != null)
|
||||
BufferChecks.checkDirect(old_buffer);
|
||||
java.nio.ByteBuffer __result = nglMapBufferARB(target, access, result_size, old_buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsBufferARB(int buffer, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
|
||||
|
||||
public static void glGenBuffersARB(IntBuffer buffers) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGenBuffersARB_pointer;
|
||||
public static boolean glUnmapBufferARB(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glUnmapBufferARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglGenBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
boolean __result = nglUnmapBufferARB(target, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
private static native boolean nglUnmapBufferARB(int target, long function_pointer);
|
||||
|
||||
public static void glDeleteBuffersARB(IntBuffer buffers) {
|
||||
StateTracker.deleteBuffers(buffers);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glDeleteBuffersARB_pointer;
|
||||
public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferParameterivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglDeleteBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetBufferParameterivARB(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glBindBufferARB(int target, int buffer) {
|
||||
StateTracker.bindBuffer(target, buffer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBindBufferARB_pointer;
|
||||
public static java.nio.ByteBuffer glGetBufferPointerARB(int target, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferPointervARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindBufferARB(target, buffer, function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetBufferPointervARB(target, pname, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglBindBufferARB(int target, int buffer, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglGetBufferPointervARB(int target, int pname, int result_size, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBColorBufferFloat {
|
||||
public static final int GL_FIXED_ONLY_ARB = 0x891d;
|
||||
public static final int GL_CLAMP_READ_COLOR_ARB = 0x891c;
|
||||
public static final int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891b;
|
||||
public static final int GL_CLAMP_VERTEX_COLOR_ARB = 0x891a;
|
||||
public static final int GL_RGBA_FLOAT_MODE_ARB = 0x8820;
|
||||
public static final int GL_CLAMP_VERTEX_COLOR_ARB = 0x891a;
|
||||
public static final int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891b;
|
||||
public static final int GL_CLAMP_READ_COLOR_ARB = 0x891c;
|
||||
public static final int GL_FIXED_ONLY_ARB = 0x891d;
|
||||
|
||||
private ARBColorBufferFloat() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBDepthTexture {
|
||||
public static final int GL_DEPTH_TEXTURE_MODE_ARB = 0x884b;
|
||||
public static final int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884a;
|
||||
public static final int GL_DEPTH_COMPONENT32_ARB = 0x81a7;
|
||||
public static final int GL_DEPTH_COMPONENT24_ARB = 0x81a6;
|
||||
public static final int GL_DEPTH_COMPONENT16_ARB = 0x81a5;
|
||||
public static final int GL_DEPTH_COMPONENT24_ARB = 0x81a6;
|
||||
public static final int GL_DEPTH_COMPONENT32_ARB = 0x81a7;
|
||||
public static final int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884a;
|
||||
public static final int GL_DEPTH_TEXTURE_MODE_ARB = 0x884b;
|
||||
|
||||
private ARBDepthTexture() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,23 +7,23 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBDrawBuffers {
|
||||
public static final int GL_DRAW_BUFFER15_ARB = 0x8834;
|
||||
public static final int GL_DRAW_BUFFER14_ARB = 0x8833;
|
||||
public static final int GL_DRAW_BUFFER13_ARB = 0x8832;
|
||||
public static final int GL_DRAW_BUFFER12_ARB = 0x8831;
|
||||
public static final int GL_DRAW_BUFFER11_ARB = 0x8830;
|
||||
public static final int GL_DRAW_BUFFER10_ARB = 0x882f;
|
||||
public static final int GL_DRAW_BUFFER9_ARB = 0x882e;
|
||||
public static final int GL_DRAW_BUFFER8_ARB = 0x882d;
|
||||
public static final int GL_DRAW_BUFFER7_ARB = 0x882c;
|
||||
public static final int GL_DRAW_BUFFER6_ARB = 0x882b;
|
||||
public static final int GL_DRAW_BUFFER5_ARB = 0x882a;
|
||||
public static final int GL_DRAW_BUFFER4_ARB = 0x8829;
|
||||
public static final int GL_DRAW_BUFFER3_ARB = 0x8828;
|
||||
public static final int GL_DRAW_BUFFER2_ARB = 0x8827;
|
||||
public static final int GL_DRAW_BUFFER1_ARB = 0x8826;
|
||||
public static final int GL_DRAW_BUFFER0_ARB = 0x8825;
|
||||
public static final int GL_MAX_DRAW_BUFFERS_ARB = 0x8824;
|
||||
public static final int GL_DRAW_BUFFER0_ARB = 0x8825;
|
||||
public static final int GL_DRAW_BUFFER1_ARB = 0x8826;
|
||||
public static final int GL_DRAW_BUFFER2_ARB = 0x8827;
|
||||
public static final int GL_DRAW_BUFFER3_ARB = 0x8828;
|
||||
public static final int GL_DRAW_BUFFER4_ARB = 0x8829;
|
||||
public static final int GL_DRAW_BUFFER5_ARB = 0x882a;
|
||||
public static final int GL_DRAW_BUFFER6_ARB = 0x882b;
|
||||
public static final int GL_DRAW_BUFFER7_ARB = 0x882c;
|
||||
public static final int GL_DRAW_BUFFER8_ARB = 0x882d;
|
||||
public static final int GL_DRAW_BUFFER9_ARB = 0x882e;
|
||||
public static final int GL_DRAW_BUFFER10_ARB = 0x882f;
|
||||
public static final int GL_DRAW_BUFFER11_ARB = 0x8830;
|
||||
public static final int GL_DRAW_BUFFER12_ARB = 0x8831;
|
||||
public static final int GL_DRAW_BUFFER13_ARB = 0x8832;
|
||||
public static final int GL_DRAW_BUFFER14_ARB = 0x8833;
|
||||
public static final int GL_DRAW_BUFFER15_ARB = 0x8834;
|
||||
|
||||
private ARBDrawBuffers() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,21 +7,21 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBFragmentProgram extends ARBProgram {
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880f;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880e;
|
||||
public static final int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880d;
|
||||
public static final int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880c;
|
||||
public static final int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880b;
|
||||
public static final int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880a;
|
||||
public static final int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809;
|
||||
public static final int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808;
|
||||
public static final int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807;
|
||||
public static final int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806;
|
||||
public static final int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805;
|
||||
public static final int GL_FRAGMENT_PROGRAM_ARB = 0x8804;
|
||||
public static final int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805;
|
||||
public static final int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806;
|
||||
public static final int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807;
|
||||
public static final int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808;
|
||||
public static final int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809;
|
||||
public static final int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880a;
|
||||
public static final int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880b;
|
||||
public static final int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880c;
|
||||
public static final int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880d;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880e;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880f;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
|
||||
private ARBFragmentProgram() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBFragmentShader {
|
||||
public static final int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8b8b;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8b49;
|
||||
public static final int GL_FRAGMENT_SHADER_ARB = 0x8b30;
|
||||
public static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8b49;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
public static final int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8b8b;
|
||||
|
||||
private ARBFragmentShader() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBHalfFloatPixel {
|
||||
public static final int HALF_FLOAT_ARB = 0x140b;
|
||||
public static final int GL_HALF_FLOAT_ARB = 0x140b;
|
||||
|
||||
private ARBHalfFloatPixel() {
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,44 +7,27 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBMatrixPalette {
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846;
|
||||
public static final int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844;
|
||||
public static final int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843;
|
||||
public static final int GL_MAX_PALETTE_MATRICES_ARB = 0x8842;
|
||||
public static final int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841;
|
||||
public static final int GL_MATRIX_PALETTE_ARB = 0x8840;
|
||||
public static final int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841;
|
||||
public static final int GL_MAX_PALETTE_MATRICES_ARB = 0x8842;
|
||||
public static final int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844;
|
||||
public static final int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848;
|
||||
public static final int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849;
|
||||
|
||||
private ARBMatrixPalette() {
|
||||
}
|
||||
|
||||
|
||||
public static void glMatrixIndexuARB(IntBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexuivARB_pointer;
|
||||
public static void glCurrentPaletteMatrixARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glCurrentPaletteMatrixARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexuivARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
nglCurrentPaletteMatrixARB(index, function_pointer);
|
||||
}
|
||||
private static native void nglMatrixIndexuivARB(int size, IntBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexuARB(ShortBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexusvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexusvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMatrixIndexusvARB(int size, ShortBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexuARB(ByteBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexubvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexubvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
private static native void nglCurrentPaletteMatrixARB(int index, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer;
|
||||
|
|
@ -79,10 +62,27 @@ public final class ARBMatrixPalette {
|
|||
}
|
||||
private static native void nglMatrixIndexPointerARBBO(int size, int type, int stride, int pPointer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCurrentPaletteMatrixARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glCurrentPaletteMatrixARB_pointer;
|
||||
public static void glMatrixIndexuARB(ByteBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexubvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCurrentPaletteMatrixARB(index, function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexubvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCurrentPaletteMatrixARB(int index, long function_pointer);
|
||||
private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexuARB(ShortBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexusvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexusvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMatrixIndexusvARB(int size, ShortBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexuARB(IntBuffer pIndices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexuivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
nglMatrixIndexuivARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMatrixIndexuivARB(int size, IntBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,15 +7,15 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBMultisample {
|
||||
public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000;
|
||||
public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80ab;
|
||||
public static final int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80aa;
|
||||
public static final int GL_SAMPLES_ARB = 0x80a9;
|
||||
public static final int GL_SAMPLE_BUFFERS_ARB = 0x80a8;
|
||||
public static final int GL_SAMPLE_COVERAGE_ARB = 0x80a0;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809f;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809e;
|
||||
public static final int GL_MULTISAMPLE_ARB = 0x809d;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809e;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809f;
|
||||
public static final int GL_SAMPLE_COVERAGE_ARB = 0x80a0;
|
||||
public static final int GL_SAMPLE_BUFFERS_ARB = 0x80a8;
|
||||
public static final int GL_SAMPLES_ARB = 0x80a9;
|
||||
public static final int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80aa;
|
||||
public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80ab;
|
||||
public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000;
|
||||
|
||||
private ARBMultisample() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,129 +7,52 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBMultitexture {
|
||||
public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84e2;
|
||||
public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84e1;
|
||||
public static final int GL_ACTIVE_TEXTURE_ARB = 0x84e0;
|
||||
public static final int GL_TEXTURE31_ARB = 0x84df;
|
||||
public static final int GL_TEXTURE30_ARB = 0x84de;
|
||||
public static final int GL_TEXTURE29_ARB = 0x84dd;
|
||||
public static final int GL_TEXTURE28_ARB = 0x84dc;
|
||||
public static final int GL_TEXTURE27_ARB = 0x84db;
|
||||
public static final int GL_TEXTURE26_ARB = 0x84da;
|
||||
public static final int GL_TEXTURE25_ARB = 0x84d9;
|
||||
public static final int GL_TEXTURE24_ARB = 0x84d8;
|
||||
public static final int GL_TEXTURE23_ARB = 0x84d7;
|
||||
public static final int GL_TEXTURE22_ARB = 0x84d6;
|
||||
public static final int GL_TEXTURE21_ARB = 0x84d5;
|
||||
public static final int GL_TEXTURE20_ARB = 0x84d4;
|
||||
public static final int GL_TEXTURE19_ARB = 0x84d3;
|
||||
public static final int GL_TEXTURE18_ARB = 0x84d2;
|
||||
public static final int GL_TEXTURE17_ARB = 0x84d1;
|
||||
public static final int GL_TEXTURE16_ARB = 0x84d0;
|
||||
public static final int GL_TEXTURE15_ARB = 0x84cf;
|
||||
public static final int GL_TEXTURE14_ARB = 0x84ce;
|
||||
public static final int GL_TEXTURE13_ARB = 0x84cd;
|
||||
public static final int GL_TEXTURE12_ARB = 0x84cc;
|
||||
public static final int GL_TEXTURE11_ARB = 0x84cb;
|
||||
public static final int GL_TEXTURE10_ARB = 0x84ca;
|
||||
public static final int GL_TEXTURE9_ARB = 0x84c9;
|
||||
public static final int GL_TEXTURE8_ARB = 0x84c8;
|
||||
public static final int GL_TEXTURE7_ARB = 0x84c7;
|
||||
public static final int GL_TEXTURE6_ARB = 0x84c6;
|
||||
public static final int GL_TEXTURE5_ARB = 0x84c5;
|
||||
public static final int GL_TEXTURE4_ARB = 0x84c4;
|
||||
public static final int GL_TEXTURE3_ARB = 0x84c3;
|
||||
public static final int GL_TEXTURE2_ARB = 0x84c2;
|
||||
public static final int GL_TEXTURE1_ARB = 0x84c1;
|
||||
public static final int GL_TEXTURE0_ARB = 0x84c0;
|
||||
public static final int GL_TEXTURE1_ARB = 0x84c1;
|
||||
public static final int GL_TEXTURE2_ARB = 0x84c2;
|
||||
public static final int GL_TEXTURE3_ARB = 0x84c3;
|
||||
public static final int GL_TEXTURE4_ARB = 0x84c4;
|
||||
public static final int GL_TEXTURE5_ARB = 0x84c5;
|
||||
public static final int GL_TEXTURE6_ARB = 0x84c6;
|
||||
public static final int GL_TEXTURE7_ARB = 0x84c7;
|
||||
public static final int GL_TEXTURE8_ARB = 0x84c8;
|
||||
public static final int GL_TEXTURE9_ARB = 0x84c9;
|
||||
public static final int GL_TEXTURE10_ARB = 0x84ca;
|
||||
public static final int GL_TEXTURE11_ARB = 0x84cb;
|
||||
public static final int GL_TEXTURE12_ARB = 0x84cc;
|
||||
public static final int GL_TEXTURE13_ARB = 0x84cd;
|
||||
public static final int GL_TEXTURE14_ARB = 0x84ce;
|
||||
public static final int GL_TEXTURE15_ARB = 0x84cf;
|
||||
public static final int GL_TEXTURE16_ARB = 0x84d0;
|
||||
public static final int GL_TEXTURE17_ARB = 0x84d1;
|
||||
public static final int GL_TEXTURE18_ARB = 0x84d2;
|
||||
public static final int GL_TEXTURE19_ARB = 0x84d3;
|
||||
public static final int GL_TEXTURE20_ARB = 0x84d4;
|
||||
public static final int GL_TEXTURE21_ARB = 0x84d5;
|
||||
public static final int GL_TEXTURE22_ARB = 0x84d6;
|
||||
public static final int GL_TEXTURE23_ARB = 0x84d7;
|
||||
public static final int GL_TEXTURE24_ARB = 0x84d8;
|
||||
public static final int GL_TEXTURE25_ARB = 0x84d9;
|
||||
public static final int GL_TEXTURE26_ARB = 0x84da;
|
||||
public static final int GL_TEXTURE27_ARB = 0x84db;
|
||||
public static final int GL_TEXTURE28_ARB = 0x84dc;
|
||||
public static final int GL_TEXTURE29_ARB = 0x84dd;
|
||||
public static final int GL_TEXTURE30_ARB = 0x84de;
|
||||
public static final int GL_TEXTURE31_ARB = 0x84df;
|
||||
public static final int GL_ACTIVE_TEXTURE_ARB = 0x84e0;
|
||||
public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84e1;
|
||||
public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84e2;
|
||||
|
||||
private ARBMultitexture() {
|
||||
}
|
||||
|
||||
|
||||
public static void glMultiTexCoord4sARB(int target, short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4sARB_pointer;
|
||||
public static void glClientActiveTextureARB(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glClientActiveTextureARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4sARB(target, s, t, r, q, function_pointer);
|
||||
nglClientActiveTextureARB(texture, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4sARB(int target, short s, short t, short r, short q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4iARB(int target, int s, int t, int r, int q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4iARB(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4iARB(int target, int s, int t, int r, int q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4fARB(int target, float s, float t, float r, float q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4fARB(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4fARB(int target, float s, float t, float r, float q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3sARB(int target, short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3sARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3sARB(int target, short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3iARB(int target, int s, int t, int r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3iARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3iARB(int target, int s, int t, int r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3fARB(int target, float s, float t, float r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3fARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3fARB(int target, float s, float t, float r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2sARB(int target, short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2sARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2sARB(int target, short s, short t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2iARB(int target, int s, int t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2iARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2iARB(int target, int s, int t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2fARB(int target, float s, float t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2fARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2fARB(int target, float s, float t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1sARB(int target, short s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1sARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1sARB(int target, short s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1iARB(int target, int s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1iARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1iARB(int target, int s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1fARB(int target, float s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1fARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1fARB(int target, float s, long function_pointer);
|
||||
private static native void nglClientActiveTextureARB(int texture, long function_pointer);
|
||||
|
||||
public static void glActiveTextureARB(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glActiveTextureARB_pointer;
|
||||
|
|
@ -138,10 +61,87 @@ public final class ARBMultitexture {
|
|||
}
|
||||
private static native void nglActiveTextureARB(int texture, long function_pointer);
|
||||
|
||||
public static void glClientActiveTextureARB(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glClientActiveTextureARB_pointer;
|
||||
public static void glMultiTexCoord1fARB(int target, float s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglClientActiveTextureARB(texture, function_pointer);
|
||||
nglMultiTexCoord1fARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglClientActiveTextureARB(int texture, long function_pointer);
|
||||
private static native void nglMultiTexCoord1fARB(int target, float s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1iARB(int target, int s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1iARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1iARB(int target, int s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1sARB(int target, short s) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1sARB(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1sARB(int target, short s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2fARB(int target, float s, float t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2fARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2fARB(int target, float s, float t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2iARB(int target, int s, int t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2iARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2iARB(int target, int s, int t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2sARB(int target, short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2sARB(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2sARB(int target, short s, short t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3fARB(int target, float s, float t, float r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3fARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3fARB(int target, float s, float t, float r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3iARB(int target, int s, int t, int r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3iARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3iARB(int target, int s, int t, int r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3sARB(int target, short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3sARB(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3sARB(int target, short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4fARB(int target, float s, float t, float r, float q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4fARB(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4fARB(int target, float s, float t, float r, float q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4iARB(int target, int s, int t, int r, int q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4iARB(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4iARB(int target, int s, int t, int r, int q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4sARB(int target, short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4sARB(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4sARB(int target, short s, short t, short r, short q, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,61 +7,23 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBOcclusionQuery {
|
||||
public static final int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867;
|
||||
public static final int GL_QUERY_RESULT_ARB = 0x8866;
|
||||
public static final int GL_CURRENT_QUERY_ARB = 0x8865;
|
||||
public static final int GL_QUERY_COUNTER_BITS_ARB = 0x8864;
|
||||
public static final int GL_SAMPLES_PASSED_ARB = 0x8914;
|
||||
public static final int GL_QUERY_COUNTER_BITS_ARB = 0x8864;
|
||||
public static final int GL_CURRENT_QUERY_ARB = 0x8865;
|
||||
public static final int GL_QUERY_RESULT_ARB = 0x8866;
|
||||
public static final int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867;
|
||||
|
||||
private ARBOcclusionQuery() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetQueryObjectuARB(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectuivARB_pointer;
|
||||
public static void glGenQueriesARB(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGenQueriesARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectuivARB(id, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglGenQueriesARB((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectuivARB(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryObjectARB(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectivARB(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectivARB(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryARB(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryivARB(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glEndQueryARB(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glEndQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndQueryARB(target, function_pointer);
|
||||
}
|
||||
private static native void nglEndQueryARB(int target, long function_pointer);
|
||||
|
||||
public static void glBeginQueryARB(int target, int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glBeginQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginQueryARB(target, id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginQueryARB(int target, int id, long function_pointer);
|
||||
|
||||
public static boolean glIsQueryARB(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glIsQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsQueryARB(id, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsQueryARB(int id, long function_pointer);
|
||||
private static native void nglGenQueriesARB(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static void glDeleteQueriesARB(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glDeleteQueriesARB_pointer;
|
||||
|
|
@ -71,11 +33,49 @@ public final class ARBOcclusionQuery {
|
|||
}
|
||||
private static native void nglDeleteQueriesARB(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static void glGenQueriesARB(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGenQueriesARB_pointer;
|
||||
public static boolean glIsQueryARB(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glIsQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglGenQueriesARB((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
boolean __result = nglIsQueryARB(id, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglGenQueriesARB(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
private static native boolean nglIsQueryARB(int id, long function_pointer);
|
||||
|
||||
public static void glBeginQueryARB(int target, int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glBeginQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginQueryARB(target, id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginQueryARB(int target, int id, long function_pointer);
|
||||
|
||||
public static void glEndQueryARB(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glEndQueryARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndQueryARB(target, function_pointer);
|
||||
}
|
||||
private static native void nglEndQueryARB(int target, long function_pointer);
|
||||
|
||||
public static void glGetQueryARB(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryivARB(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryObjectARB(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectivARB(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectivARB(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryObjectuARB(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectuivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectuivARB(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectuivARB(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBPixelBufferObject extends ARBBufferObject {
|
||||
public static final int PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88ef;
|
||||
public static final int PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ed;
|
||||
public static final int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88ec;
|
||||
public static final int GL_PIXEL_PACK_BUFFER_ARB = 0x88eb;
|
||||
public static final int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88ec;
|
||||
public static final int GL_PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ed;
|
||||
public static final int GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88ef;
|
||||
|
||||
private ARBPixelBufferObject() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,15 +7,22 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBPointParameters {
|
||||
public static final int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129;
|
||||
public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128;
|
||||
public static final int GL_POINT_SIZE_MAX_ARB = 0x8127;
|
||||
public static final int GL_POINT_SIZE_MIN_ARB = 0x8126;
|
||||
public static final int GL_POINT_SIZE_MAX_ARB = 0x8127;
|
||||
public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128;
|
||||
public static final int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129;
|
||||
|
||||
private ARBPointParameters() {
|
||||
}
|
||||
|
||||
|
||||
public static void glPointParameterfARB(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_point_parameters_glPointParameterfARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterfARB(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfARB(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glPointParameterARB(int pname, FloatBuffer pfParams) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_point_parameters_glPointParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -23,11 +30,4 @@ public final class ARBPointParameters {
|
|||
nglPointParameterfvARB(pname, pfParams, pfParams.position(), function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfvARB(int pname, FloatBuffer pfParams, int pfParams_position, long function_pointer);
|
||||
|
||||
public static void glPointParameterfARB(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_point_parameters_glPointParameterfARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterfARB(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfARB(int pname, float param, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBPointSprite {
|
||||
public static final int GL_COORD_REPLACE_ARB = 0x8862;
|
||||
public static final int GL_POINT_SPRITE_ARB = 0x8861;
|
||||
public static final int GL_COORD_REPLACE_ARB = 0x8862;
|
||||
|
||||
private ARBPointSprite() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,148 +7,85 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public class ARBProgram {
|
||||
public static final int GL_MATRIX31_ARB = 0x88df;
|
||||
public static final int GL_MATRIX30_ARB = 0x88de;
|
||||
public static final int GL_MATRIX29_ARB = 0x88dd;
|
||||
public static final int GL_MATRIX28_ARB = 0x88dc;
|
||||
public static final int GL_MATRIX27_ARB = 0x88db;
|
||||
public static final int GL_MATRIX26_ARB = 0x88da;
|
||||
public static final int GL_MATRIX25_ARB = 0x88d9;
|
||||
public static final int GL_MATRIX24_ARB = 0x88d8;
|
||||
public static final int GL_MATRIX23_ARB = 0x88d7;
|
||||
public static final int GL_MATRIX22_ARB = 0x88d6;
|
||||
public static final int GL_MATRIX21_ARB = 0x88d5;
|
||||
public static final int GL_MATRIX20_ARB = 0x88d4;
|
||||
public static final int GL_MATRIX19_ARB = 0x88d3;
|
||||
public static final int GL_MATRIX18_ARB = 0x88d2;
|
||||
public static final int GL_MATRIX17_ARB = 0x88d1;
|
||||
public static final int GL_MATRIX16_ARB = 0x88d0;
|
||||
public static final int GL_MATRIX15_ARB = 0x88cf;
|
||||
public static final int GL_MATRIX14_ARB = 0x88ce;
|
||||
public static final int GL_MATRIX13_ARB = 0x88cd;
|
||||
public static final int GL_MATRIX12_ARB = 0x88cc;
|
||||
public static final int GL_MATRIX11_ARB = 0x88cb;
|
||||
public static final int GL_MATRIX10_ARB = 0x88ca;
|
||||
public static final int GL_MATRIX9_ARB = 0x88c9;
|
||||
public static final int GL_MATRIX8_ARB = 0x88c8;
|
||||
public static final int GL_MATRIX7_ARB = 0x88c7;
|
||||
public static final int GL_MATRIX6_ARB = 0x88c6;
|
||||
public static final int GL_MATRIX5_ARB = 0x88c5;
|
||||
public static final int GL_MATRIX4_ARB = 0x88c4;
|
||||
public static final int GL_MATRIX3_ARB = 0x88c3;
|
||||
public static final int GL_MATRIX2_ARB = 0x88c2;
|
||||
public static final int GL_MATRIX1_ARB = 0x88c1;
|
||||
public static final int GL_MATRIX0_ARB = 0x88c0;
|
||||
public static final int GL_PROGRAM_ERROR_STRING_ARB = 0x8874;
|
||||
public static final int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862e;
|
||||
public static final int GL_MAX_PROGRAM_MATRICES_ARB = 0x862f;
|
||||
public static final int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640;
|
||||
public static final int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88b7;
|
||||
public static final int GL_CURRENT_MATRIX_ARB = 0x8641;
|
||||
public static final int GL_PROGRAM_ERROR_POSITION_ARB = 0x864b;
|
||||
public static final int GL_PROGRAM_STRING_ARB = 0x8628;
|
||||
public static final int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88b6;
|
||||
public static final int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88b5;
|
||||
public static final int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88b4;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88af;
|
||||
public static final int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88ae;
|
||||
public static final int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88ad;
|
||||
public static final int GL_PROGRAM_ATTRIBS_ARB = 0x88ac;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88ab;
|
||||
public static final int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88aa;
|
||||
public static final int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88a9;
|
||||
public static final int GL_PROGRAM_PARAMETERS_ARB = 0x88a8;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88a7;
|
||||
public static final int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88a6;
|
||||
public static final int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88a5;
|
||||
public static final int GL_PROGRAM_TEMPORARIES_ARB = 0x88a4;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88a3;
|
||||
public static final int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88a2;
|
||||
public static final int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88a1;
|
||||
public static final int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88a0;
|
||||
public static final int GL_PROGRAM_BINDING_ARB = 0x8677;
|
||||
public static final int GL_PROGRAM_FORMAT_ARB = 0x8876;
|
||||
public static final int GL_PROGRAM_LENGTH_ARB = 0x8627;
|
||||
public static final int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875;
|
||||
public static final int GL_PROGRAM_LENGTH_ARB = 0x8627;
|
||||
public static final int GL_PROGRAM_FORMAT_ARB = 0x8876;
|
||||
public static final int GL_PROGRAM_BINDING_ARB = 0x8677;
|
||||
public static final int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88a0;
|
||||
public static final int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88a1;
|
||||
public static final int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88a2;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88a3;
|
||||
public static final int GL_PROGRAM_TEMPORARIES_ARB = 0x88a4;
|
||||
public static final int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88a5;
|
||||
public static final int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88a6;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88a7;
|
||||
public static final int GL_PROGRAM_PARAMETERS_ARB = 0x88a8;
|
||||
public static final int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88a9;
|
||||
public static final int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88aa;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88ab;
|
||||
public static final int GL_PROGRAM_ATTRIBS_ARB = 0x88ac;
|
||||
public static final int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88ad;
|
||||
public static final int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88ae;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88af;
|
||||
public static final int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88b4;
|
||||
public static final int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88b5;
|
||||
public static final int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88b6;
|
||||
public static final int GL_PROGRAM_STRING_ARB = 0x8628;
|
||||
public static final int GL_PROGRAM_ERROR_POSITION_ARB = 0x864b;
|
||||
public static final int GL_CURRENT_MATRIX_ARB = 0x8641;
|
||||
public static final int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88b7;
|
||||
public static final int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640;
|
||||
public static final int GL_MAX_PROGRAM_MATRICES_ARB = 0x862f;
|
||||
public static final int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862e;
|
||||
public static final int GL_PROGRAM_ERROR_STRING_ARB = 0x8874;
|
||||
public static final int GL_MATRIX0_ARB = 0x88c0;
|
||||
public static final int GL_MATRIX1_ARB = 0x88c1;
|
||||
public static final int GL_MATRIX2_ARB = 0x88c2;
|
||||
public static final int GL_MATRIX3_ARB = 0x88c3;
|
||||
public static final int GL_MATRIX4_ARB = 0x88c4;
|
||||
public static final int GL_MATRIX5_ARB = 0x88c5;
|
||||
public static final int GL_MATRIX6_ARB = 0x88c6;
|
||||
public static final int GL_MATRIX7_ARB = 0x88c7;
|
||||
public static final int GL_MATRIX8_ARB = 0x88c8;
|
||||
public static final int GL_MATRIX9_ARB = 0x88c9;
|
||||
public static final int GL_MATRIX10_ARB = 0x88ca;
|
||||
public static final int GL_MATRIX11_ARB = 0x88cb;
|
||||
public static final int GL_MATRIX12_ARB = 0x88cc;
|
||||
public static final int GL_MATRIX13_ARB = 0x88cd;
|
||||
public static final int GL_MATRIX14_ARB = 0x88ce;
|
||||
public static final int GL_MATRIX15_ARB = 0x88cf;
|
||||
public static final int GL_MATRIX16_ARB = 0x88d0;
|
||||
public static final int GL_MATRIX17_ARB = 0x88d1;
|
||||
public static final int GL_MATRIX18_ARB = 0x88d2;
|
||||
public static final int GL_MATRIX19_ARB = 0x88d3;
|
||||
public static final int GL_MATRIX20_ARB = 0x88d4;
|
||||
public static final int GL_MATRIX21_ARB = 0x88d5;
|
||||
public static final int GL_MATRIX22_ARB = 0x88d6;
|
||||
public static final int GL_MATRIX23_ARB = 0x88d7;
|
||||
public static final int GL_MATRIX24_ARB = 0x88d8;
|
||||
public static final int GL_MATRIX25_ARB = 0x88d9;
|
||||
public static final int GL_MATRIX26_ARB = 0x88da;
|
||||
public static final int GL_MATRIX27_ARB = 0x88db;
|
||||
public static final int GL_MATRIX28_ARB = 0x88dc;
|
||||
public static final int GL_MATRIX29_ARB = 0x88dd;
|
||||
public static final int GL_MATRIX30_ARB = 0x88de;
|
||||
public static final int GL_MATRIX31_ARB = 0x88df;
|
||||
|
||||
|
||||
public static boolean glIsProgramARB(int program) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glIsProgramARB_pointer;
|
||||
public static void glProgramStringARB(int target, int format, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramStringARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsProgramARB(program, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkDirect(string);
|
||||
nglProgramStringARB(target, format, (string.remaining()), string, string.position(), function_pointer);
|
||||
}
|
||||
private static native boolean nglIsProgramARB(int program, long function_pointer);
|
||||
private static native void nglProgramStringARB(int target, int format, int length, Buffer string, int string_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramStringARB(int target, int parameterName, ByteBuffer paramString) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramStringARB_pointer;
|
||||
public static void glBindProgramARB(int target, int program) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glBindProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(paramString);
|
||||
nglGetProgramStringARB(target, parameterName, paramString, paramString.position(), function_pointer);
|
||||
nglBindProgramARB(target, program, function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramStringARB(int target, int parameterName, Buffer paramString, int paramString_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramARB(int target, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramivARB(target, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramivARB(int target, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramLocalParameterARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramLocalParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramLocalParameterfvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramLocalParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramEnvParameterARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramEnvParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramEnvParameterfvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramEnvParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglProgramLocalParameter4fvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglProgramLocalParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglProgramLocalParameter4fARB(target, index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglProgramEnvParameter4fvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglProgramEnvParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglProgramEnvParameter4fARB(target, index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glGenProgramsARB(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGenProgramsARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglGenProgramsARB((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenProgramsARB(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
private static native void nglBindProgramARB(int target, int program, long function_pointer);
|
||||
|
||||
public static void glDeleteProgramsARB(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glDeleteProgramsARB_pointer;
|
||||
|
|
@ -158,18 +95,81 @@ public class ARBProgram {
|
|||
}
|
||||
private static native void nglDeleteProgramsARB(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glBindProgramARB(int target, int program) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glBindProgramARB_pointer;
|
||||
public static void glGenProgramsARB(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGenProgramsARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindProgramARB(target, program, function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglGenProgramsARB((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglBindProgramARB(int target, int program, long function_pointer);
|
||||
private static native void nglGenProgramsARB(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glProgramStringARB(int target, int format, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramStringARB_pointer;
|
||||
public static void glProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(string);
|
||||
nglProgramStringARB(target, format, (string.remaining()), string, string.position(), function_pointer);
|
||||
nglProgramEnvParameter4fARB(target, index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramStringARB(int target, int format, int length, Buffer string, int string_position, long function_pointer);
|
||||
private static native void nglProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglProgramEnvParameter4fvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglProgramEnvParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglProgramLocalParameter4fARB(target, index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglProgramLocalParameter4fvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglProgramLocalParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramEnvParameterARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramEnvParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramEnvParameterfvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramEnvParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramLocalParameterARB(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramLocalParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramLocalParameterfvARB(target, index, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramLocalParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramARB(int target, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramivARB(target, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramivARB(int target, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramStringARB(int target, int parameterName, ByteBuffer paramString) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramStringARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(paramString);
|
||||
nglGetProgramStringARB(target, parameterName, paramString, paramString.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramStringARB(int target, int parameterName, Buffer paramString, int paramString_position, long function_pointer);
|
||||
|
||||
public static boolean glIsProgramARB(int program) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_program_glIsProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsProgramARB(program, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsProgramARB(int program, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,84 +7,314 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBShaderObjects {
|
||||
public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8b64;
|
||||
public static final int GL_SAMPLER_2D_RECT_ARB = 0x8b63;
|
||||
public static final int GL_SAMPLER_2D_SHADOW_ARB = 0x8b62;
|
||||
public static final int GL_SAMPLER_1D_SHADOW_ARB = 0x8b61;
|
||||
public static final int GL_SAMPLER_CUBE_ARB = 0x8b60;
|
||||
public static final int GL_SAMPLER_3D_ARB = 0x8b5f;
|
||||
public static final int GL_SAMPLER_2D_ARB = 0x8b5e;
|
||||
public static final int GL_SAMPLER_1D_ARB = 0x8b5d;
|
||||
public static final int GL_FLOAT_MAT4_ARB = 0x8b5c;
|
||||
public static final int GL_FLOAT_MAT3_ARB = 0x8b5b;
|
||||
public static final int GL_FLOAT_MAT2_ARB = 0x8b5a;
|
||||
public static final int GL_BOOL_VEC4_ARB = 0x8b59;
|
||||
public static final int GL_BOOL_VEC3_ARB = 0x8b58;
|
||||
public static final int GL_BOOL_VEC2_ARB = 0x8b57;
|
||||
public static final int GL_BOOL_ARB = 0x8b56;
|
||||
public static final int GL_INT_VEC4_ARB = 0x8b55;
|
||||
public static final int GL_INT_VEC3_ARB = 0x8b54;
|
||||
public static final int GL_INT_VEC2_ARB = 0x8b53;
|
||||
public static final int GL_INT = 0x1404;
|
||||
public static final int GL_FLOAT_VEC4_ARB = 0x8b52;
|
||||
public static final int GL_FLOAT_VEC3_ARB = 0x8b51;
|
||||
public static final int GL_FLOAT_VEC2_ARB = 0x8b50;
|
||||
public static final int GL_FLOAT = 0x1406;
|
||||
public static final int GL_SHADER_OBJECT_ARB = 0x8b48;
|
||||
public static final int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8b88;
|
||||
public static final int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8b87;
|
||||
public static final int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8b86;
|
||||
public static final int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8b85;
|
||||
public static final int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8b84;
|
||||
public static final int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8b83;
|
||||
public static final int GL_OBJECT_LINK_STATUS_ARB = 0x8b82;
|
||||
public static final int GL_OBJECT_COMPILE_STATUS_ARB = 0x8b81;
|
||||
public static final int GL_OBJECT_DELETE_STATUS_ARB = 0x8b80;
|
||||
public static final int GL_OBJECT_SUBTYPE_ARB = 0x8b4f;
|
||||
public static final int GL_OBJECT_TYPE_ARB = 0x8b4e;
|
||||
public static final int GL_PROGRAM_OBJECT_ARB = 0x8b40;
|
||||
public static final int GL_OBJECT_TYPE_ARB = 0x8b4e;
|
||||
public static final int GL_OBJECT_SUBTYPE_ARB = 0x8b4f;
|
||||
public static final int GL_OBJECT_DELETE_STATUS_ARB = 0x8b80;
|
||||
public static final int GL_OBJECT_COMPILE_STATUS_ARB = 0x8b81;
|
||||
public static final int GL_OBJECT_LINK_STATUS_ARB = 0x8b82;
|
||||
public static final int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8b83;
|
||||
public static final int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8b84;
|
||||
public static final int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8b85;
|
||||
public static final int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8b86;
|
||||
public static final int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8b87;
|
||||
public static final int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8b88;
|
||||
public static final int GL_SHADER_OBJECT_ARB = 0x8b48;
|
||||
public static final int GL_FLOAT = 0x1406;
|
||||
public static final int GL_FLOAT_VEC2_ARB = 0x8b50;
|
||||
public static final int GL_FLOAT_VEC3_ARB = 0x8b51;
|
||||
public static final int GL_FLOAT_VEC4_ARB = 0x8b52;
|
||||
public static final int GL_INT = 0x1404;
|
||||
public static final int GL_INT_VEC2_ARB = 0x8b53;
|
||||
public static final int GL_INT_VEC3_ARB = 0x8b54;
|
||||
public static final int GL_INT_VEC4_ARB = 0x8b55;
|
||||
public static final int GL_BOOL_ARB = 0x8b56;
|
||||
public static final int GL_BOOL_VEC2_ARB = 0x8b57;
|
||||
public static final int GL_BOOL_VEC3_ARB = 0x8b58;
|
||||
public static final int GL_BOOL_VEC4_ARB = 0x8b59;
|
||||
public static final int GL_FLOAT_MAT2_ARB = 0x8b5a;
|
||||
public static final int GL_FLOAT_MAT3_ARB = 0x8b5b;
|
||||
public static final int GL_FLOAT_MAT4_ARB = 0x8b5c;
|
||||
public static final int GL_SAMPLER_1D_ARB = 0x8b5d;
|
||||
public static final int GL_SAMPLER_2D_ARB = 0x8b5e;
|
||||
public static final int GL_SAMPLER_3D_ARB = 0x8b5f;
|
||||
public static final int GL_SAMPLER_CUBE_ARB = 0x8b60;
|
||||
public static final int GL_SAMPLER_1D_SHADOW_ARB = 0x8b61;
|
||||
public static final int GL_SAMPLER_2D_SHADOW_ARB = 0x8b62;
|
||||
public static final int GL_SAMPLER_2D_RECT_ARB = 0x8b63;
|
||||
public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8b64;
|
||||
|
||||
private ARBShaderObjects() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetShaderSourceARB(int obj, IntBuffer length, ByteBuffer source) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetShaderSourceARB_pointer;
|
||||
public static void glDeleteObjectARB(int obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDeleteObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDeleteObjectARB(obj, function_pointer);
|
||||
}
|
||||
private static native void nglDeleteObjectARB(int obj, long function_pointer);
|
||||
|
||||
public static int glGetHandleARB(int pname) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetHandleARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglGetHandleARB(pname, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglGetHandleARB(int pname, long function_pointer);
|
||||
|
||||
public static void glDetachObjectARB(int containerObj, int attachedObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDetachObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDetachObjectARB(containerObj, attachedObj, function_pointer);
|
||||
}
|
||||
private static native void nglDetachObjectARB(int containerObj, int attachedObj, long function_pointer);
|
||||
|
||||
public static int glCreateShaderObjectARB(int shaderType) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateShaderObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCreateShaderObjectARB(shaderType, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCreateShaderObjectARB(int shaderType, long function_pointer);
|
||||
|
||||
/**
|
||||
* The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program.
|
||||
* <p/>
|
||||
* This method uses just a single string, that should NOT be null-terminated.
|
||||
* @param shaderObj
|
||||
* @param string
|
||||
*/
|
||||
public static void glShaderSourceARB(int shader, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glShaderSourceARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(string);
|
||||
nglShaderSourceARB(shader, 1, string, string.position(), (string.remaining()), function_pointer);
|
||||
}
|
||||
private static native void nglShaderSourceARB(int shader, int count, ByteBuffer string, int string_position, int length, long function_pointer);
|
||||
|
||||
public static void glCompileShaderARB(int shaderObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCompileShaderARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompileShaderARB(shaderObj, function_pointer);
|
||||
}
|
||||
private static native void nglCompileShaderARB(int shaderObj, long function_pointer);
|
||||
|
||||
public static int glCreateProgramObjectARB() {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateProgramObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCreateProgramObjectARB(function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCreateProgramObjectARB(long function_pointer);
|
||||
|
||||
public static void glAttachObjectARB(int containerObj, int obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glAttachObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAttachObjectARB(containerObj, obj, function_pointer);
|
||||
}
|
||||
private static native void nglAttachObjectARB(int containerObj, int obj, long function_pointer);
|
||||
|
||||
public static void glLinkProgramARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glLinkProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglLinkProgramARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglLinkProgramARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glUseProgramObjectARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUseProgramObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUseProgramObjectARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglUseProgramObjectARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glValidateProgramARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glValidateProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglValidateProgramARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglValidateProgramARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glUniform1fARB(int location, float v0) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform1fARB(location, v0, function_pointer);
|
||||
}
|
||||
private static native void nglUniform1fARB(int location, float v0, long function_pointer);
|
||||
|
||||
public static void glUniform2fARB(int location, float v0, float v1) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform2fARB(location, v0, v1, function_pointer);
|
||||
}
|
||||
private static native void nglUniform2fARB(int location, float v0, float v1, long function_pointer);
|
||||
|
||||
public static void glUniform3fARB(int location, float v0, float v1, float v2) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform3fARB(location, v0, v1, v2, function_pointer);
|
||||
}
|
||||
private static native void nglUniform3fARB(int location, float v0, float v1, float v2, long function_pointer);
|
||||
|
||||
public static void glUniform4fARB(int location, float v0, float v1, float v2, float v3) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform4fARB(location, v0, v1, v2, v3, function_pointer);
|
||||
}
|
||||
private static native void nglUniform4fARB(int location, float v0, float v1, float v2, float v3, long function_pointer);
|
||||
|
||||
public static void glUniform1iARB(int location, int v0) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform1iARB(location, v0, function_pointer);
|
||||
}
|
||||
private static native void nglUniform1iARB(int location, int v0, long function_pointer);
|
||||
|
||||
public static void glUniform2iARB(int location, int v0, int v1) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform2iARB(location, v0, v1, function_pointer);
|
||||
}
|
||||
private static native void nglUniform2iARB(int location, int v0, int v1, long function_pointer);
|
||||
|
||||
public static void glUniform3iARB(int location, int v0, int v1, int v2) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform3iARB(location, v0, v1, v2, function_pointer);
|
||||
}
|
||||
private static native void nglUniform3iARB(int location, int v0, int v1, int v2, long function_pointer);
|
||||
|
||||
public static void glUniform4iARB(int location, int v0, int v1, int v2, int v3) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform4iARB(location, v0, v1, v2, v3, function_pointer);
|
||||
}
|
||||
private static native void nglUniform4iARB(int location, int v0, int v1, int v2, int v3, long function_pointer);
|
||||
|
||||
public static void glUniform1ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform1fvARB(location, (values.remaining()), values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform1fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform2ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform2fvARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform2fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform3ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform3fvARB(location, (values.remaining()) / 3, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform3fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform4ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform4fvARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform4fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform1ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform1ivARB(location, (values.remaining()), values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform1ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform2ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform2ivARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform2ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform3ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform3ivARB(location, (values.remaining()) / 3, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform3ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform4ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform4ivARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform4ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix2ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix2fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix2fvARB(location, (matrices.remaining()) >> 2, transpose, matrices, matrices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix2fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix3ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix3fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix3fvARB(location, (matrices.remaining()) / (3 * 3), transpose, matrices, matrices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix3fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix4ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix4fvARB(location, (matrices.remaining()) >> 4, transpose, matrices, matrices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix4fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectParameterARB(int obj, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectParameterfvARB(obj, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectParameterfvARB(int obj, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectParameterARB(int obj, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectParameterivARB(obj, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectParameterivARB(int obj, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetInfoLogARB(int obj, IntBuffer length, ByteBuffer infoLog) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetInfoLogARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (length != null)
|
||||
BufferChecks.checkBuffer(length, 1);
|
||||
BufferChecks.checkDirect(source);
|
||||
nglGetShaderSourceARB(obj, (source.remaining()), length, length != null ? length.position() : 0, source, source.position(), function_pointer);
|
||||
BufferChecks.checkDirect(infoLog);
|
||||
nglGetInfoLogARB(obj, (infoLog.remaining()), length, length != null ? length.position() : 0, infoLog, infoLog.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetShaderSourceARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer source, int source_position, long function_pointer);
|
||||
private static native void nglGetInfoLogARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position, long function_pointer);
|
||||
|
||||
public static void glGetUniformARB(int programObj, int location, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformivARB_pointer;
|
||||
public static void glGetAttachedObjectsARB(int containerObj, IntBuffer count, IntBuffer obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetAttachedObjectsARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetUniformivARB(programObj, location, params, params.position(), function_pointer);
|
||||
if (count != null)
|
||||
BufferChecks.checkBuffer(count, 1);
|
||||
BufferChecks.checkDirect(obj);
|
||||
nglGetAttachedObjectsARB(containerObj, (obj.remaining()), count, count != null ? count.position() : 0, obj, obj.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetUniformivARB(int programObj, int location, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetUniformARB(int programObj, int location, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetUniformfvARB(programObj, location, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetUniformfvARB(int programObj, int location, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetActiveUniformARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetActiveUniformARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (length != null)
|
||||
BufferChecks.checkBuffer(length, 1);
|
||||
BufferChecks.checkBuffer(size, 1);
|
||||
BufferChecks.checkBuffer(type, 1);
|
||||
BufferChecks.checkDirect(name);
|
||||
nglGetActiveUniformARB(programObj, index, (name.remaining()), length, length != null ? length.position() : 0, size, size.position(), type, type.position(), name, name.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetActiveUniformARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer);
|
||||
private static native void nglGetAttachedObjectsARB(int containerObj, int maxCount, IntBuffer count, int count_position, IntBuffer obj, int obj_position, long function_pointer);
|
||||
|
||||
/**
|
||||
* Returns the location of the uniform with the specified name. The ByteBuffer should contain the uniform name as a <b>null-terminated</b> string.
|
||||
|
|
@ -102,271 +332,41 @@ public final class ARBShaderObjects {
|
|||
}
|
||||
private static native int nglGetUniformLocationARB(int programObj, ByteBuffer name, int name_position, long function_pointer);
|
||||
|
||||
public static void glGetAttachedObjectsARB(int containerObj, IntBuffer count, IntBuffer obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetAttachedObjectsARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (count != null)
|
||||
BufferChecks.checkBuffer(count, 1);
|
||||
BufferChecks.checkDirect(obj);
|
||||
nglGetAttachedObjectsARB(containerObj, (obj.remaining()), count, count != null ? count.position() : 0, obj, obj.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetAttachedObjectsARB(int containerObj, int maxCount, IntBuffer count, int count_position, IntBuffer obj, int obj_position, long function_pointer);
|
||||
|
||||
public static void glGetInfoLogARB(int obj, IntBuffer length, ByteBuffer infoLog) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetInfoLogARB_pointer;
|
||||
public static void glGetActiveUniformARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetActiveUniformARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (length != null)
|
||||
BufferChecks.checkBuffer(length, 1);
|
||||
BufferChecks.checkDirect(infoLog);
|
||||
nglGetInfoLogARB(obj, (infoLog.remaining()), length, length != null ? length.position() : 0, infoLog, infoLog.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(size, 1);
|
||||
BufferChecks.checkBuffer(type, 1);
|
||||
BufferChecks.checkDirect(name);
|
||||
nglGetActiveUniformARB(programObj, index, (name.remaining()), length, length != null ? length.position() : 0, size, size.position(), type, type.position(), name, name.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInfoLogARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position, long function_pointer);
|
||||
private static native void nglGetActiveUniformARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectParameterARB(int obj, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterivARB_pointer;
|
||||
public static void glGetUniformARB(int programObj, int location, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectParameterivARB(obj, pname, params, params.position(), function_pointer);
|
||||
nglGetUniformfvARB(programObj, location, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectParameterivARB(int obj, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglGetUniformfvARB(int programObj, int location, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectParameterARB(int obj, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterfvARB_pointer;
|
||||
public static void glGetUniformARB(int programObj, int location, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectParameterfvARB(obj, pname, params, params.position(), function_pointer);
|
||||
nglGetUniformivARB(programObj, location, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectParameterfvARB(int obj, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglGetUniformivARB(int programObj, int location, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix4ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix4fvARB_pointer;
|
||||
public static void glGetShaderSourceARB(int obj, IntBuffer length, ByteBuffer source) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetShaderSourceARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix4fvARB(location, (matrices.remaining()) >> 4, transpose, matrices, matrices.position(), function_pointer);
|
||||
if (length != null)
|
||||
BufferChecks.checkBuffer(length, 1);
|
||||
BufferChecks.checkDirect(source);
|
||||
nglGetShaderSourceARB(obj, (source.remaining()), length, length != null ? length.position() : 0, source, source.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix4fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix3ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix3fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix3fvARB(location, (matrices.remaining()) / (3 * 3), transpose, matrices, matrices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix3fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glUniformMatrix2ARB(int location, boolean transpose, FloatBuffer matrices) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix2fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(matrices);
|
||||
nglUniformMatrix2fvARB(location, (matrices.remaining()) >> 2, transpose, matrices, matrices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniformMatrix2fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer);
|
||||
|
||||
public static void glUniform4ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform4ivARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform4ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform3ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform3ivARB(location, (values.remaining()) / 3, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform3ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform2ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform2ivARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform2ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform1ARB(int location, IntBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1ivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform1ivARB(location, (values.remaining()), values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform1ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform4ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform4fvARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform4fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform3ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform3fvARB(location, (values.remaining()) / 3, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform3fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform2ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform2fvARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform2fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform1ARB(int location, FloatBuffer values) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(values);
|
||||
nglUniform1fvARB(location, (values.remaining()), values, values.position(), function_pointer);
|
||||
}
|
||||
private static native void nglUniform1fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer);
|
||||
|
||||
public static void glUniform4iARB(int location, int v0, int v1, int v2, int v3) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform4iARB(location, v0, v1, v2, v3, function_pointer);
|
||||
}
|
||||
private static native void nglUniform4iARB(int location, int v0, int v1, int v2, int v3, long function_pointer);
|
||||
|
||||
public static void glUniform3iARB(int location, int v0, int v1, int v2) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform3iARB(location, v0, v1, v2, function_pointer);
|
||||
}
|
||||
private static native void nglUniform3iARB(int location, int v0, int v1, int v2, long function_pointer);
|
||||
|
||||
public static void glUniform2iARB(int location, int v0, int v1) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform2iARB(location, v0, v1, function_pointer);
|
||||
}
|
||||
private static native void nglUniform2iARB(int location, int v0, int v1, long function_pointer);
|
||||
|
||||
public static void glUniform1iARB(int location, int v0) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform1iARB(location, v0, function_pointer);
|
||||
}
|
||||
private static native void nglUniform1iARB(int location, int v0, long function_pointer);
|
||||
|
||||
public static void glUniform4fARB(int location, float v0, float v1, float v2, float v3) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform4fARB(location, v0, v1, v2, v3, function_pointer);
|
||||
}
|
||||
private static native void nglUniform4fARB(int location, float v0, float v1, float v2, float v3, long function_pointer);
|
||||
|
||||
public static void glUniform3fARB(int location, float v0, float v1, float v2) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform3fARB(location, v0, v1, v2, function_pointer);
|
||||
}
|
||||
private static native void nglUniform3fARB(int location, float v0, float v1, float v2, long function_pointer);
|
||||
|
||||
public static void glUniform2fARB(int location, float v0, float v1) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform2fARB(location, v0, v1, function_pointer);
|
||||
}
|
||||
private static native void nglUniform2fARB(int location, float v0, float v1, long function_pointer);
|
||||
|
||||
public static void glUniform1fARB(int location, float v0) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUniform1fARB(location, v0, function_pointer);
|
||||
}
|
||||
private static native void nglUniform1fARB(int location, float v0, long function_pointer);
|
||||
|
||||
public static void glValidateProgramARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glValidateProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglValidateProgramARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglValidateProgramARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glUseProgramObjectARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUseProgramObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUseProgramObjectARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglUseProgramObjectARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glLinkProgramARB(int programObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glLinkProgramARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglLinkProgramARB(programObj, function_pointer);
|
||||
}
|
||||
private static native void nglLinkProgramARB(int programObj, long function_pointer);
|
||||
|
||||
public static void glAttachObjectARB(int containerObj, int obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glAttachObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAttachObjectARB(containerObj, obj, function_pointer);
|
||||
}
|
||||
private static native void nglAttachObjectARB(int containerObj, int obj, long function_pointer);
|
||||
|
||||
public static int glCreateProgramObjectARB() {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateProgramObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCreateProgramObjectARB(function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCreateProgramObjectARB(long function_pointer);
|
||||
|
||||
public static void glCompileShaderARB(int shaderObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCompileShaderARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompileShaderARB(shaderObj, function_pointer);
|
||||
}
|
||||
private static native void nglCompileShaderARB(int shaderObj, long function_pointer);
|
||||
|
||||
/**
|
||||
* The ARB_shader_objects extension allows multiple, optionally null-terminated, source strings to define a shader program.
|
||||
* <p/>
|
||||
* This method uses just a single string, that should NOT be null-terminated.
|
||||
* @param shaderObj
|
||||
* @param string
|
||||
*/
|
||||
public static void glShaderSourceARB(int shader, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glShaderSourceARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(string);
|
||||
nglShaderSourceARB(shader, 1, string, string.position(), (string.remaining()), function_pointer);
|
||||
}
|
||||
private static native void nglShaderSourceARB(int shader, int count, ByteBuffer string, int string_position, int length, long function_pointer);
|
||||
|
||||
public static int glCreateShaderObjectARB(int shaderType) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateShaderObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCreateShaderObjectARB(shaderType, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCreateShaderObjectARB(int shaderType, long function_pointer);
|
||||
|
||||
public static void glDetachObjectARB(int containerObj, int attachedObj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDetachObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDetachObjectARB(containerObj, attachedObj, function_pointer);
|
||||
}
|
||||
private static native void nglDetachObjectARB(int containerObj, int attachedObj, long function_pointer);
|
||||
|
||||
public static int glGetHandleARB(int pname) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetHandleARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglGetHandleARB(pname, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglGetHandleARB(int pname, long function_pointer);
|
||||
|
||||
public static void glDeleteObjectARB(int obj) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDeleteObjectARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDeleteObjectARB(obj, function_pointer);
|
||||
}
|
||||
private static native void nglDeleteObjectARB(int obj, long function_pointer);
|
||||
private static native void nglGetShaderSourceARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer source, int source_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBShadow {
|
||||
public static final int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884e;
|
||||
public static final int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884d;
|
||||
public static final int GL_TEXTURE_COMPARE_MODE_ARB = 0x884c;
|
||||
public static final int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884d;
|
||||
public static final int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884e;
|
||||
|
||||
private ARBShadow() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,206 +7,58 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureCompression {
|
||||
public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86a3;
|
||||
public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86a2;
|
||||
public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86a1;
|
||||
public static final int GL_TEXTURE_IMAGE_SIZE_ARB = 0x86a0;
|
||||
public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84ef;
|
||||
public static final int GL_COMPRESSED_RGBA_ARB = 0x84ee;
|
||||
public static final int GL_COMPRESSED_RGB_ARB = 0x84ed;
|
||||
public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84ec;
|
||||
public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84eb;
|
||||
public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84ea;
|
||||
public static final int GL_COMPRESSED_ALPHA_ARB = 0x84e9;
|
||||
public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84ea;
|
||||
public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84eb;
|
||||
public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84ec;
|
||||
public static final int GL_COMPRESSED_RGB_ARB = 0x84ed;
|
||||
public static final int GL_COMPRESSED_RGBA_ARB = 0x84ee;
|
||||
public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84ef;
|
||||
public static final int GL_TEXTURE_IMAGE_SIZE_ARB = 0x86a0;
|
||||
public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86a1;
|
||||
public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86a2;
|
||||
public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86a3;
|
||||
|
||||
private ARBTextureCompression() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position(), function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, FloatBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageARB(int target, int lod, Buffer pImg, int pImg_position, long function_pointer);
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, int pImg_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOenabled();
|
||||
nglGetCompressedTexImageARBBO(target, lod, pImg_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageARBBO(int target, int lod, int pImg_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
private static native void nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage3DARBBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
nglCompressedTexImage1DARBBO(target, level, internalformat, width, border, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DARBBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage2DARBBO(target, level, xoffset, yoffset, width, height, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DARBBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage1DARBBO(target, level, xoffset, width, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DARBBO(int target, int level, int xoffset, int width, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage3DARBBO(target, level, internalformat, width, height, depth, border, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage3DARBBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
private static native void nglCompressedTexImage1DARBBO(int target, int level, int internalformat, int width, int border, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer;
|
||||
|
|
@ -245,40 +97,188 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
private static native void nglCompressedTexImage2DARBBO(int target, int level, int internalformat, int width, int height, int border, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
private static native void nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage1DARBBO(target, level, internalformat, width, border, imageSize, pData_buffer_offset, function_pointer);
|
||||
nglCompressedTexImage3DARBBO(target, level, internalformat, width, height, depth, border, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage1DARBBO(int target, int level, int internalformat, int width, int border, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
private static native void nglCompressedTexImage3DARBBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage1DARBBO(target, level, xoffset, width, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DARBBO(int target, int level, int xoffset, int width, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage2DARBBO(target, level, xoffset, yoffset, width, height, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DARBBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ByteBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, FloatBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, IntBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ShortBuffer pData) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int pData_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage3DARBBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DARBBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int pData_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position(), function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, FloatBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageARB(int target, int lod, Buffer pImg, int pImg_position, long function_pointer);
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, int pImg_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOenabled();
|
||||
nglGetCompressedTexImageARBBO(target, lod, pImg_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageARBBO(int target, int lod, int pImg_buffer_offset, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,18 +7,18 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureCubeMap {
|
||||
public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851c;
|
||||
public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851b;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851a;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515;
|
||||
public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_ARB = 0x8513;
|
||||
public static final int GL_REFLECTION_MAP_ARB = 0x8512;
|
||||
public static final int GL_NORMAL_MAP_ARB = 0x8511;
|
||||
public static final int GL_REFLECTION_MAP_ARB = 0x8512;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_ARB = 0x8513;
|
||||
public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851a;
|
||||
public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851b;
|
||||
public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851c;
|
||||
|
||||
private ARBTextureCubeMap() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,27 +7,27 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureEnvCombine {
|
||||
public static final int GL_OPERAND2_ALPHA_ARB = 0x859a;
|
||||
public static final int GL_OPERAND1_ALPHA_ARB = 0x8599;
|
||||
public static final int GL_OPERAND0_ALPHA_ARB = 0x8598;
|
||||
public static final int GL_OPERAND2_RGB_ARB = 0x8592;
|
||||
public static final int GL_OPERAND1_RGB_ARB = 0x8591;
|
||||
public static final int GL_OPERAND0_RGB_ARB = 0x8590;
|
||||
public static final int GL_SOURCE2_ALPHA_ARB = 0x858a;
|
||||
public static final int GL_SOURCE1_ALPHA_ARB = 0x8589;
|
||||
public static final int GL_SOURCE0_ALPHA_ARB = 0x8588;
|
||||
public static final int GL_SOURCE2_RGB_ARB = 0x8582;
|
||||
public static final int GL_SOURCE1_RGB_ARB = 0x8581;
|
||||
public static final int GL_SOURCE0_RGB_ARB = 0x8580;
|
||||
public static final int GL_PREVIOUS_ARB = 0x8578;
|
||||
public static final int GL_PRIMARY_COLOR_ARB = 0x8577;
|
||||
public static final int GL_CONSTANT_ARB = 0x8576;
|
||||
public static final int GL_INTERPOLATE_ARB = 0x8575;
|
||||
public static final int GL_ADD_SIGNED_ARB = 0x8574;
|
||||
public static final int GL_RGB_SCALE_ARB = 0x8573;
|
||||
public static final int GL_COMBINE_ALPHA_ARB = 0x8572;
|
||||
public static final int GL_COMBINE_RGB_ARB = 0x8571;
|
||||
public static final int GL_COMBINE_ARB = 0x8570;
|
||||
public static final int GL_COMBINE_RGB_ARB = 0x8571;
|
||||
public static final int GL_COMBINE_ALPHA_ARB = 0x8572;
|
||||
public static final int GL_RGB_SCALE_ARB = 0x8573;
|
||||
public static final int GL_ADD_SIGNED_ARB = 0x8574;
|
||||
public static final int GL_INTERPOLATE_ARB = 0x8575;
|
||||
public static final int GL_CONSTANT_ARB = 0x8576;
|
||||
public static final int GL_PRIMARY_COLOR_ARB = 0x8577;
|
||||
public static final int GL_PREVIOUS_ARB = 0x8578;
|
||||
public static final int GL_SOURCE0_RGB_ARB = 0x8580;
|
||||
public static final int GL_SOURCE1_RGB_ARB = 0x8581;
|
||||
public static final int GL_SOURCE2_RGB_ARB = 0x8582;
|
||||
public static final int GL_SOURCE0_ALPHA_ARB = 0x8588;
|
||||
public static final int GL_SOURCE1_ALPHA_ARB = 0x8589;
|
||||
public static final int GL_SOURCE2_ALPHA_ARB = 0x858a;
|
||||
public static final int GL_OPERAND0_RGB_ARB = 0x8590;
|
||||
public static final int GL_OPERAND1_RGB_ARB = 0x8591;
|
||||
public static final int GL_OPERAND2_RGB_ARB = 0x8592;
|
||||
public static final int GL_OPERAND0_ALPHA_ARB = 0x8598;
|
||||
public static final int GL_OPERAND1_ALPHA_ARB = 0x8599;
|
||||
public static final int GL_OPERAND2_ALPHA_ARB = 0x859a;
|
||||
|
||||
private ARBTextureEnvCombine() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureEnvDot3 {
|
||||
public static final int GL_DOT3_RGBA_ARB = 0x86af;
|
||||
public static final int GL_DOT3_RGB_ARB = 0x86ae;
|
||||
public static final int GL_DOT3_RGBA_ARB = 0x86af;
|
||||
|
||||
private ARBTextureEnvDot3() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,26 +7,26 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureFloat {
|
||||
public static final int LUMINANCE_ALPHA16F_ARB = 0x881f;
|
||||
public static final int LUMINANCE16F_ARB = 0x881e;
|
||||
public static final int INTENSITY16F_ARB = 0x881d;
|
||||
public static final int ALPHA16F_ARB = 0x881c;
|
||||
public static final int RGB16F_ARB = 0x881b;
|
||||
public static final int RGBA16F_ARB = 0x881a;
|
||||
public static final int LUMINANCE_ALPHA32F_ARB = 0x8819;
|
||||
public static final int LUMINANCE32F_ARB = 0x8818;
|
||||
public static final int INTENSITY32F_ARB = 0x8817;
|
||||
public static final int ALPHA32F_ARB = 0x8816;
|
||||
public static final int RGB32F_ARB = 0x8815;
|
||||
public static final int RGBA32F_ARB = 0x8814;
|
||||
public static final int UNSIGNED_NORMALIZED_ARB = 0x8c17;
|
||||
public static final int TEXTURE_DEPTH_TYPE_ARB = 0x8c16;
|
||||
public static final int TEXTURE_INTENSITY_TYPE_ARB = 0x8c15;
|
||||
public static final int TEXTURE_LUMINANCE_TYPE_ARB = 0x8c14;
|
||||
public static final int TEXTURE_ALPHA_TYPE_ARB = 0x8c13;
|
||||
public static final int TEXTURE_BLUE_TYPE_ARB = 0x8c12;
|
||||
public static final int TEXTURE_GREEN_TYPE_ARB = 0x8c11;
|
||||
public static final int TEXTURE_RED_TYPE_ARB = 0x8c10;
|
||||
public static final int GL_TEXTURE_RED_TYPE_ARB = 0x8c10;
|
||||
public static final int GL_TEXTURE_GREEN_TYPE_ARB = 0x8c11;
|
||||
public static final int GL_TEXTURE_BLUE_TYPE_ARB = 0x8c12;
|
||||
public static final int GL_TEXTURE_ALPHA_TYPE_ARB = 0x8c13;
|
||||
public static final int GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8c14;
|
||||
public static final int GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8c15;
|
||||
public static final int GL_TEXTURE_DEPTH_TYPE_ARB = 0x8c16;
|
||||
public static final int GL_UNSIGNED_NORMALIZED_ARB = 0x8c17;
|
||||
public static final int GL_RGBA32F_ARB = 0x8814;
|
||||
public static final int GL_RGB32F_ARB = 0x8815;
|
||||
public static final int GL_ALPHA32F_ARB = 0x8816;
|
||||
public static final int GL_INTENSITY32F_ARB = 0x8817;
|
||||
public static final int GL_LUMINANCE32F_ARB = 0x8818;
|
||||
public static final int GL_LUMINANCE_ALPHA32F_ARB = 0x8819;
|
||||
public static final int GL_RGBA16F_ARB = 0x881a;
|
||||
public static final int GL_RGB16F_ARB = 0x881b;
|
||||
public static final int GL_ALPHA16F_ARB = 0x881c;
|
||||
public static final int GL_INTENSITY16F_ARB = 0x881d;
|
||||
public static final int GL_LUMINANCE16F_ARB = 0x881e;
|
||||
public static final int GL_LUMINANCE_ALPHA16F_ARB = 0x881f;
|
||||
|
||||
private ARBTextureFloat() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTextureRectangle {
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84f8;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84f7;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84f6;
|
||||
public static final int GL_TEXTURE_RECTANGLE_ARB = 0x84f5;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84f6;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84f7;
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84f8;
|
||||
|
||||
private ARBTextureRectangle() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,23 +7,15 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBTransposeMatrix {
|
||||
public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84e6;
|
||||
public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84e5;
|
||||
public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84e4;
|
||||
public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84e3;
|
||||
public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84e4;
|
||||
public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84e5;
|
||||
public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84e6;
|
||||
|
||||
private ARBTransposeMatrix() {
|
||||
}
|
||||
|
||||
|
||||
public static void glMultTransposeMatrixARB(FloatBuffer pfMtx) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_transpose_matrix_glMultTransposeMatrixfARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pfMtx, 16);
|
||||
nglMultTransposeMatrixfARB(pfMtx, pfMtx.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMultTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_position, long function_pointer);
|
||||
|
||||
public static void glLoadTransposeMatrixARB(FloatBuffer pfMtx) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_transpose_matrix_glLoadTransposeMatrixfARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -31,4 +23,12 @@ public final class ARBTransposeMatrix {
|
|||
nglLoadTransposeMatrixfARB(pfMtx, pfMtx.position(), function_pointer);
|
||||
}
|
||||
private static native void nglLoadTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_position, long function_pointer);
|
||||
|
||||
public static void glMultTransposeMatrixARB(FloatBuffer pfMtx) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_transpose_matrix_glMultTransposeMatrixfARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pfMtx, 16);
|
||||
nglMultTransposeMatrixfARB(pfMtx, pfMtx.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMultTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,59 +7,108 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBVertexBlend {
|
||||
public static final int GL_MODELVIEW31_ARB = 0x873f;
|
||||
public static final int GL_MODELVIEW30_ARB = 0x873e;
|
||||
public static final int GL_MODELVIEW29_ARB = 0x873d;
|
||||
public static final int GL_MODELVIEW28_ARB = 0x873c;
|
||||
public static final int GL_MODELVIEW27_ARB = 0x873b;
|
||||
public static final int GL_MODELVIEW26_ARB = 0x873a;
|
||||
public static final int GL_MODELVIEW25_ARB = 0x8739;
|
||||
public static final int GL_MODELVIEW24_ARB = 0x8738;
|
||||
public static final int GL_MODELVIEW23_ARB = 0x8737;
|
||||
public static final int GL_MODELVIEW22_ARB = 0x8736;
|
||||
public static final int GL_MODELVIEW21_ARB = 0x8735;
|
||||
public static final int GL_MODELVIEW20_ARB = 0x8734;
|
||||
public static final int GL_MODELVIEW19_ARB = 0x8733;
|
||||
public static final int GL_MODELVIEW18_ARB = 0x8732;
|
||||
public static final int GL_MODELVIEW17_ARB = 0x8731;
|
||||
public static final int GL_MODELVIEW16_ARB = 0x8730;
|
||||
public static final int GL_MODELVIEW15_ARB = 0x872f;
|
||||
public static final int GL_MODELVIEW14_ARB = 0x872e;
|
||||
public static final int GL_MODELVIEW13_ARB = 0x872d;
|
||||
public static final int GL_MODELVIEW12_ARB = 0x872c;
|
||||
public static final int GL_MODELVIEW11_ARB = 0x872b;
|
||||
public static final int GL_MODELVIEW10_ARB = 0x872a;
|
||||
public static final int GL_MODELVIEW9_ARB = 0x8729;
|
||||
public static final int GL_MODELVIEW8_ARB = 0x8728;
|
||||
public static final int GL_MODELVIEW7_ARB = 0x8727;
|
||||
public static final int GL_MODELVIEW6_ARB = 0x8726;
|
||||
public static final int GL_MODELVIEW5_ARB = 0x8725;
|
||||
public static final int GL_MODELVIEW4_ARB = 0x8724;
|
||||
public static final int GL_MODELVIEW3_ARB = 0x8723;
|
||||
public static final int GL_MODELVIEW2_ARB = 0x8722;
|
||||
public static final int GL_MODELVIEW1_ARB = 0x850a;
|
||||
public static final int GL_MODELVIEW0_ARB = 0x1700;
|
||||
public static final int GL_WEIGHT_ARRAY_ARB = 0x86ad;
|
||||
public static final int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86ac;
|
||||
public static final int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86ab;
|
||||
public static final int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86aa;
|
||||
public static final int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86a9;
|
||||
public static final int GL_CURRENT_WEIGHT_ARB = 0x86a8;
|
||||
public static final int GL_VERTEX_BLEND_ARB = 0x86a7;
|
||||
public static final int GL_WEIGHT_SUM_UNITY_ARB = 0x86a6;
|
||||
public static final int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86a5;
|
||||
public static final int GL_MAX_VERTEX_UNITS_ARB = 0x86a4;
|
||||
public static final int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86a5;
|
||||
public static final int GL_WEIGHT_SUM_UNITY_ARB = 0x86a6;
|
||||
public static final int GL_VERTEX_BLEND_ARB = 0x86a7;
|
||||
public static final int GL_CURRENT_WEIGHT_ARB = 0x86a8;
|
||||
public static final int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86a9;
|
||||
public static final int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86aa;
|
||||
public static final int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86ab;
|
||||
public static final int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86ac;
|
||||
public static final int GL_WEIGHT_ARRAY_ARB = 0x86ad;
|
||||
public static final int GL_MODELVIEW0_ARB = 0x1700;
|
||||
public static final int GL_MODELVIEW1_ARB = 0x850a;
|
||||
public static final int GL_MODELVIEW2_ARB = 0x8722;
|
||||
public static final int GL_MODELVIEW3_ARB = 0x8723;
|
||||
public static final int GL_MODELVIEW4_ARB = 0x8724;
|
||||
public static final int GL_MODELVIEW5_ARB = 0x8725;
|
||||
public static final int GL_MODELVIEW6_ARB = 0x8726;
|
||||
public static final int GL_MODELVIEW7_ARB = 0x8727;
|
||||
public static final int GL_MODELVIEW8_ARB = 0x8728;
|
||||
public static final int GL_MODELVIEW9_ARB = 0x8729;
|
||||
public static final int GL_MODELVIEW10_ARB = 0x872a;
|
||||
public static final int GL_MODELVIEW11_ARB = 0x872b;
|
||||
public static final int GL_MODELVIEW12_ARB = 0x872c;
|
||||
public static final int GL_MODELVIEW13_ARB = 0x872d;
|
||||
public static final int GL_MODELVIEW14_ARB = 0x872e;
|
||||
public static final int GL_MODELVIEW15_ARB = 0x872f;
|
||||
public static final int GL_MODELVIEW16_ARB = 0x8730;
|
||||
public static final int GL_MODELVIEW17_ARB = 0x8731;
|
||||
public static final int GL_MODELVIEW18_ARB = 0x8732;
|
||||
public static final int GL_MODELVIEW19_ARB = 0x8733;
|
||||
public static final int GL_MODELVIEW20_ARB = 0x8734;
|
||||
public static final int GL_MODELVIEW21_ARB = 0x8735;
|
||||
public static final int GL_MODELVIEW22_ARB = 0x8736;
|
||||
public static final int GL_MODELVIEW23_ARB = 0x8737;
|
||||
public static final int GL_MODELVIEW24_ARB = 0x8738;
|
||||
public static final int GL_MODELVIEW25_ARB = 0x8739;
|
||||
public static final int GL_MODELVIEW26_ARB = 0x873a;
|
||||
public static final int GL_MODELVIEW27_ARB = 0x873b;
|
||||
public static final int GL_MODELVIEW28_ARB = 0x873c;
|
||||
public static final int GL_MODELVIEW29_ARB = 0x873d;
|
||||
public static final int GL_MODELVIEW30_ARB = 0x873e;
|
||||
public static final int GL_MODELVIEW31_ARB = 0x873f;
|
||||
|
||||
private ARBVertexBlend() {
|
||||
}
|
||||
|
||||
|
||||
public static void glVertexBlendARB(int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glVertexBlendARB_pointer;
|
||||
public static void glWeightARB(ByteBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightbvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexBlendARB(count, function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightbvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexBlendARB(int count, long function_pointer);
|
||||
private static native void nglWeightbvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(ShortBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightsvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightsvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightsvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(IntBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(FloatBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightfvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightfvARB(int size, FloatBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(ByteBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightubvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightubvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightubvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(ShortBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightusvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightusvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightusvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(IntBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightuivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightuivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightuivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer;
|
||||
|
|
@ -102,59 +151,10 @@ public final class ARBVertexBlend {
|
|||
}
|
||||
private static native void nglWeightPointerARBBO(int size, int type, int stride, int pPointer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(IntBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightuivARB_pointer;
|
||||
public static void glVertexBlendARB(int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glVertexBlendARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightuivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
nglVertexBlendARB(count, function_pointer);
|
||||
}
|
||||
private static native void nglWeightuivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(ShortBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightusvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightusvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightusvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightuARB(ByteBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightubvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightubvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightubvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(FloatBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightfvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightfvARB(int size, FloatBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(IntBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(ShortBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightsvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightsvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightsvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
|
||||
public static void glWeightARB(ByteBuffer pWeights) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightbvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pWeights);
|
||||
nglWeightbvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer);
|
||||
}
|
||||
private static native void nglWeightbvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer);
|
||||
private static native void nglVertexBlendARB(int count, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBVertexBufferObject extends ARBBufferObject {
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889f;
|
||||
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889e;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889d;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889c;
|
||||
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889b;
|
||||
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889a;
|
||||
public static final int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899;
|
||||
public static final int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898;
|
||||
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897;
|
||||
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895;
|
||||
public static final int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893;
|
||||
public static final int GL_ARRAY_BUFFER_ARB = 0x8892;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893;
|
||||
public static final int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895;
|
||||
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896;
|
||||
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897;
|
||||
public static final int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898;
|
||||
public static final int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899;
|
||||
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889a;
|
||||
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889b;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889c;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889d;
|
||||
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889e;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889f;
|
||||
|
||||
private ARBVertexBufferObject() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,64 +7,89 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBVertexProgram extends ARBProgram {
|
||||
public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88b3;
|
||||
public static final int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88b2;
|
||||
public static final int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88b1;
|
||||
public static final int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88b0;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
|
||||
public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886a;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
|
||||
public static final int GL_COLOR_SUM_ARB = 0x8458;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
|
||||
public static final int GL_VERTEX_PROGRAM_ARB = 0x8620;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
|
||||
public static final int GL_COLOR_SUM_ARB = 0x8458;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886a;
|
||||
public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
|
||||
public static final int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88b0;
|
||||
public static final int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88b1;
|
||||
public static final int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88b2;
|
||||
public static final int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88b3;
|
||||
public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
|
||||
|
||||
private ARBVertexProgram() {
|
||||
}
|
||||
|
||||
|
||||
public static java.nio.ByteBuffer glGetVertexAttribPointerARB(int index, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribPointervARB_pointer;
|
||||
public static void glVertexAttrib1sARB(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVertexAttribPointervARB(index, pname, result_size, function_pointer);
|
||||
return __result;
|
||||
nglVertexAttrib1sARB(index, x, function_pointer);
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetVertexAttribPointervARB(int index, int pname, int result_size, long function_pointer);
|
||||
private static native void nglVertexAttrib1sARB(int index, short x, long function_pointer);
|
||||
|
||||
public static void glGetVertexAttribARB(int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribivARB_pointer;
|
||||
public static void glVertexAttrib1fARB(int index, float x) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetVertexAttribivARB(index, pname, params, params.position(), function_pointer);
|
||||
nglVertexAttrib1fARB(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib1fARB(int index, float x, long function_pointer);
|
||||
|
||||
public static void glGetVertexAttribARB(int index, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribfvARB_pointer;
|
||||
public static void glVertexAttrib2sARB(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetVertexAttribfvARB(index, pname, params, params.position(), function_pointer);
|
||||
nglVertexAttrib2sARB(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib2sARB(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static void glDisableVertexAttribArrayARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glDisableVertexAttribArrayARB_pointer;
|
||||
public static void glVertexAttrib2fARB(int index, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDisableVertexAttribArrayARB(index, function_pointer);
|
||||
nglVertexAttrib2fARB(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglDisableVertexAttribArrayARB(int index, long function_pointer);
|
||||
private static native void nglVertexAttrib2fARB(int index, float x, float y, long function_pointer);
|
||||
|
||||
public static void glEnableVertexAttribArrayARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glEnableVertexAttribArrayARB_pointer;
|
||||
public static void glVertexAttrib3sARB(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEnableVertexAttribArrayARB(index, function_pointer);
|
||||
nglVertexAttrib3sARB(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglEnableVertexAttribArrayARB(int index, long function_pointer);
|
||||
private static native void nglVertexAttrib3sARB(int index, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3fARB(int index, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3fARB(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3fARB(int index, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4sARB(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4sARB(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4sARB(int index, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4fARB(int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4fARB(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4fARB(int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4NubARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4NubARB(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w, long function_pointer);
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer;
|
||||
|
|
@ -107,66 +132,41 @@ public final class ARBVertexProgram extends ARBProgram {
|
|||
}
|
||||
private static native void nglVertexAttribPointerARBBO(int index, int size, int type, boolean normalized, int stride, int buffer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4NubARB_pointer;
|
||||
public static void glEnableVertexAttribArrayARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glEnableVertexAttribArrayARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4NubARB(index, x, y, z, w, function_pointer);
|
||||
nglEnableVertexAttribArrayARB(index, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w, long function_pointer);
|
||||
private static native void nglEnableVertexAttribArrayARB(int index, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4fARB(int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4fARB_pointer;
|
||||
public static void glDisableVertexAttribArrayARB(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glDisableVertexAttribArrayARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4fARB(index, x, y, z, w, function_pointer);
|
||||
nglDisableVertexAttribArrayARB(index, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4fARB(int index, float x, float y, float z, float w, long function_pointer);
|
||||
private static native void nglDisableVertexAttribArrayARB(int index, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4sARB(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4sARB_pointer;
|
||||
public static void glGetVertexAttribARB(int index, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribfvARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4sARB(index, x, y, z, w, function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetVertexAttribfvARB(index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4sARB(int index, short x, short y, short z, short w, long function_pointer);
|
||||
private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3fARB(int index, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3fARB_pointer;
|
||||
public static void glGetVertexAttribARB(int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribivARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3fARB(index, x, y, z, function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetVertexAttribivARB(index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3fARB(int index, float x, float y, float z, long function_pointer);
|
||||
private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3sARB(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3sARB_pointer;
|
||||
public static java.nio.ByteBuffer glGetVertexAttribPointerARB(int index, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribPointervARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3sARB(index, x, y, z, function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVertexAttribPointervARB(index, pname, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglVertexAttrib3sARB(int index, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2fARB(int index, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2fARB(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2fARB(int index, float x, float y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2sARB(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2sARB(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2sARB(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1fARB(int index, float x) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1fARB(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1fARB(int index, float x, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1sARB(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1sARB(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1sARB(int index, short x, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglGetVertexAttribPointervARB(int index, int pname, int result_size, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,46 +7,45 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ARBVertexShader {
|
||||
public static final int GL_FLOAT_MAT4_ARB = 0x8b5c;
|
||||
public static final int GL_FLOAT_MAT3_ARB = 0x8b5b;
|
||||
public static final int GL_FLOAT_MAT2_ARB = 0x8b5a;
|
||||
public static final int GL_FLOAT_VEC4_ARB = 0x8b52;
|
||||
public static final int GL_FLOAT_VEC3_ARB = 0x8b51;
|
||||
public static final int GL_FLOAT_VEC2_ARB = 0x8b50;
|
||||
public static final int GL_FLOAT = 0x1406;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
|
||||
public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886a;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
|
||||
public static final int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8b8a;
|
||||
public static final int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8b89;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8b4d;
|
||||
public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8b4c;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
|
||||
public static final int GL_MAX_VARYING_FLOATS_ARB = 0x8b4b;
|
||||
public static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8b4a;
|
||||
public static final int GL_VERTEX_SHADER_ARB = 0x8b31;
|
||||
public static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8b4a;
|
||||
public static final int GL_MAX_VARYING_FLOATS_ARB = 0x8b4b;
|
||||
public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872;
|
||||
public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8b4c;
|
||||
public static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8b4d;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643;
|
||||
public static final int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8b89;
|
||||
public static final int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8b8a;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886a;
|
||||
public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645;
|
||||
public static final int GL_FLOAT = 0x1406;
|
||||
public static final int GL_FLOAT_VEC2_ARB = 0x8b50;
|
||||
public static final int GL_FLOAT_VEC3_ARB = 0x8b51;
|
||||
public static final int GL_FLOAT_VEC4_ARB = 0x8b52;
|
||||
public static final int GL_FLOAT_MAT2_ARB = 0x8b5a;
|
||||
public static final int GL_FLOAT_MAT3_ARB = 0x8b5b;
|
||||
public static final int GL_FLOAT_MAT4_ARB = 0x8b5c;
|
||||
|
||||
private ARBVertexShader() {
|
||||
}
|
||||
|
||||
|
||||
public static int glGetAttribLocationARB(int programObj, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetAttribLocationARB_pointer;
|
||||
public static void glBindAttribLocationARB(int programObj, int index, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glBindAttribLocationARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(name);
|
||||
BufferChecks.checkNullTerminated(name);
|
||||
int __result = nglGetAttribLocationARB(programObj, name, name.position(), function_pointer);
|
||||
return __result;
|
||||
nglBindAttribLocationARB(programObj, index, name, name.position(), function_pointer);
|
||||
}
|
||||
private static native int nglGetAttribLocationARB(int programObj, ByteBuffer name, int name_position, long function_pointer);
|
||||
private static native void nglBindAttribLocationARB(int programObj, int index, ByteBuffer name, int name_position, long function_pointer);
|
||||
|
||||
public static void glGetActiveAttribARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetActiveAttribARB_pointer;
|
||||
|
|
@ -60,12 +59,13 @@ public final class ARBVertexShader {
|
|||
}
|
||||
private static native void nglGetActiveAttribARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer);
|
||||
|
||||
public static void glBindAttribLocationARB(int programObj, int index, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glBindAttribLocationARB_pointer;
|
||||
public static int glGetAttribLocationARB(int programObj, ByteBuffer name) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetAttribLocationARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(name);
|
||||
BufferChecks.checkNullTerminated(name);
|
||||
nglBindAttribLocationARB(programObj, index, name, name.position(), function_pointer);
|
||||
int __result = nglGetAttribLocationARB(programObj, name, name.position(), function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglBindAttribLocationARB(int programObj, int index, ByteBuffer name, int name_position, long function_pointer);
|
||||
private static native int nglGetAttribLocationARB(int programObj, ByteBuffer name, int name_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,33 +12,12 @@ public final class ARBWindowPos {
|
|||
}
|
||||
|
||||
|
||||
public static void glWindowPos3sARB(short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3sARB_pointer;
|
||||
public static void glWindowPos2fARB(float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3sARB(x, y, z, function_pointer);
|
||||
nglWindowPos2fARB(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3sARB(short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glWindowPos3iARB(int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3iARB(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3iARB(int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glWindowPos3fARB(float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3fARB(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3fARB(float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glWindowPos2sARB(short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos2sARB(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos2sARB(short x, short y, long function_pointer);
|
||||
private static native void nglWindowPos2fARB(float x, float y, long function_pointer);
|
||||
|
||||
public static void glWindowPos2iARB(int x, int y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2iARB_pointer;
|
||||
|
|
@ -47,10 +26,31 @@ public final class ARBWindowPos {
|
|||
}
|
||||
private static native void nglWindowPos2iARB(int x, int y, long function_pointer);
|
||||
|
||||
public static void glWindowPos2fARB(float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2fARB_pointer;
|
||||
public static void glWindowPos2sARB(short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos2fARB(x, y, function_pointer);
|
||||
nglWindowPos2sARB(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos2fARB(float x, float y, long function_pointer);
|
||||
private static native void nglWindowPos2sARB(short x, short y, long function_pointer);
|
||||
|
||||
public static void glWindowPos3fARB(float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3fARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3fARB(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3fARB(float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glWindowPos3iARB(int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3iARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3iARB(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3iARB(int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glWindowPos3sARB(short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3sARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3sARB(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3sARB(short x, short y, short z, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,23 +7,23 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIDrawBuffers {
|
||||
public static final int GL_DRAW_BUFFER15_ATI = 0x8834;
|
||||
public static final int GL_DRAW_BUFFER14_ATI = 0x8833;
|
||||
public static final int GL_DRAW_BUFFER13_ATI = 0x8832;
|
||||
public static final int GL_DRAW_BUFFER12_ATI = 0x8831;
|
||||
public static final int GL_DRAW_BUFFER11_ATI = 0x8830;
|
||||
public static final int GL_DRAW_BUFFER10_ATI = 0x882f;
|
||||
public static final int GL_DRAW_BUFFER9_ATI = 0x882e;
|
||||
public static final int GL_DRAW_BUFFER8_ATI = 0x882d;
|
||||
public static final int GL_DRAW_BUFFER7_ATI = 0x882c;
|
||||
public static final int GL_DRAW_BUFFER6_ATI = 0x882b;
|
||||
public static final int GL_DRAW_BUFFER5_ATI = 0x882a;
|
||||
public static final int GL_DRAW_BUFFER4_ATI = 0x8829;
|
||||
public static final int GL_DRAW_BUFFER3_ATI = 0x8828;
|
||||
public static final int GL_DRAW_BUFFER2_ATI = 0x8827;
|
||||
public static final int GL_DRAW_BUFFER1_ATI = 0x8826;
|
||||
public static final int GL_DRAW_BUFFER0_ATI = 0x8825;
|
||||
public static final int GL_MAX_DRAW_BUFFERS_ATI = 0x8824;
|
||||
public static final int GL_DRAW_BUFFER0_ATI = 0x8825;
|
||||
public static final int GL_DRAW_BUFFER1_ATI = 0x8826;
|
||||
public static final int GL_DRAW_BUFFER2_ATI = 0x8827;
|
||||
public static final int GL_DRAW_BUFFER3_ATI = 0x8828;
|
||||
public static final int GL_DRAW_BUFFER4_ATI = 0x8829;
|
||||
public static final int GL_DRAW_BUFFER5_ATI = 0x882a;
|
||||
public static final int GL_DRAW_BUFFER6_ATI = 0x882b;
|
||||
public static final int GL_DRAW_BUFFER7_ATI = 0x882c;
|
||||
public static final int GL_DRAW_BUFFER8_ATI = 0x882d;
|
||||
public static final int GL_DRAW_BUFFER9_ATI = 0x882e;
|
||||
public static final int GL_DRAW_BUFFER10_ATI = 0x882f;
|
||||
public static final int GL_DRAW_BUFFER11_ATI = 0x8830;
|
||||
public static final int GL_DRAW_BUFFER12_ATI = 0x8831;
|
||||
public static final int GL_DRAW_BUFFER13_ATI = 0x8832;
|
||||
public static final int GL_DRAW_BUFFER14_ATI = 0x8833;
|
||||
public static final int GL_DRAW_BUFFER15_ATI = 0x8834;
|
||||
|
||||
private ATIDrawBuffers() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,28 +7,14 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIElementArray {
|
||||
public static final int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876a;
|
||||
public static final int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769;
|
||||
public static final int GL_ELEMENT_ARRAY_ATI = 0x8768;
|
||||
public static final int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769;
|
||||
public static final int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876a;
|
||||
|
||||
private ATIElementArray() {
|
||||
}
|
||||
|
||||
|
||||
public static void glDrawRangeElementArrayATI(int mode, int start, int end, int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawRangeElementArrayATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElementArrayATI(mode, start, end, count, function_pointer);
|
||||
}
|
||||
private static native void nglDrawRangeElementArrayATI(int mode, int start, int end, int count, long function_pointer);
|
||||
|
||||
public static void glDrawElementArrayATI(int mode, int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawElementArrayATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawElementArrayATI(mode, count, function_pointer);
|
||||
}
|
||||
private static native void nglDrawElementArrayATI(int mode, int count, long function_pointer);
|
||||
|
||||
public static void glElementPointerATI(ByteBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -61,4 +47,18 @@ public final class ATIElementArray {
|
|||
nglElementPointerATIBO(type, pPointer_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglElementPointerATIBO(int type, int pPointer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glDrawElementArrayATI(int mode, int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawElementArrayATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawElementArrayATI(mode, count, function_pointer);
|
||||
}
|
||||
private static native void nglDrawElementArrayATI(int mode, int count, long function_pointer);
|
||||
|
||||
public static void glDrawRangeElementArrayATI(int mode, int start, int end, int count) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawRangeElementArrayATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElementArrayATI(mode, start, end, count, function_pointer);
|
||||
}
|
||||
private static native void nglDrawRangeElementArrayATI(int mode, int start, int end, int count, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,34 +7,26 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIEnvmapBumpmap {
|
||||
public static final int GL_BUMP_TARGET_ATI = 0x877c;
|
||||
public static final int GL_BUMP_ENVMAP_ATI = 0x877b;
|
||||
public static final int GL_DU8DV8_ATI = 0x877a;
|
||||
public static final int GL_DUDV_ATI = 0x8779;
|
||||
public static final int GL_BUMP_TEX_UNITS_ATI = 0x8778;
|
||||
public static final int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777;
|
||||
public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776;
|
||||
public static final int GL_BUMP_ROT_MATRIX_ATI = 0x8775;
|
||||
public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776;
|
||||
public static final int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777;
|
||||
public static final int GL_BUMP_TEX_UNITS_ATI = 0x8778;
|
||||
public static final int GL_DUDV_ATI = 0x8779;
|
||||
public static final int GL_DU8DV8_ATI = 0x877a;
|
||||
public static final int GL_BUMP_ENVMAP_ATI = 0x877b;
|
||||
public static final int GL_BUMP_TARGET_ATI = 0x877c;
|
||||
|
||||
private ATIEnvmapBumpmap() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetTexBumpParameterATI(int pname, IntBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterivATI_pointer;
|
||||
public static void glTexBumpParameterATI(int pname, FloatBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glTexBumpParameterfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(param, 4);
|
||||
nglGetTexBumpParameterivATI(pname, param, param.position(), function_pointer);
|
||||
nglTexBumpParameterfvATI(pname, param, param.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer param, int param_position, long function_pointer);
|
||||
|
||||
public static void glGetTexBumpParameterATI(int pname, FloatBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(param, 4);
|
||||
nglGetTexBumpParameterfvATI(pname, param, param.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer);
|
||||
private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer);
|
||||
|
||||
public static void glTexBumpParameterATI(int pname, IntBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glTexBumpParameterivATI_pointer;
|
||||
|
|
@ -44,11 +36,19 @@ public final class ATIEnvmapBumpmap {
|
|||
}
|
||||
private static native void nglTexBumpParameterivATI(int pname, IntBuffer param, int param_position, long function_pointer);
|
||||
|
||||
public static void glTexBumpParameterATI(int pname, FloatBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glTexBumpParameterfvATI_pointer;
|
||||
public static void glGetTexBumpParameterATI(int pname, FloatBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(param, 4);
|
||||
nglTexBumpParameterfvATI(pname, param, param.position(), function_pointer);
|
||||
nglGetTexBumpParameterfvATI(pname, param, param.position(), function_pointer);
|
||||
}
|
||||
private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer);
|
||||
private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer);
|
||||
|
||||
public static void glGetTexBumpParameterATI(int pname, IntBuffer param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(param, 4);
|
||||
nglGetTexBumpParameterivATI(pname, param, param.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetTexBumpParameterivATI(int pname, IntBuffer param, int param_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,207 +7,115 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIFragmentShader {
|
||||
public static final int GL_BIAS_BIT_ATI = 0x8;
|
||||
public static final int GL_NEGATE_BIT_ATI = 0x4;
|
||||
public static final int GL_COMP_BIT_ATI = 0x2;
|
||||
public static final int GL_SATURATE_BIT_ATI = 0x40;
|
||||
public static final int GL_EIGHTH_BIT_ATI = 0x20;
|
||||
public static final int GL_QUARTER_BIT_ATI = 0x10;
|
||||
public static final int GL_HALF_BIT_ATI = 0x8;
|
||||
public static final int GL_X8_BIT_ATI = 0x4;
|
||||
public static final int GL_X4_BIT_ATI = 0x2;
|
||||
public static final int GL_X2_BIT_ATI = 0x1;
|
||||
public static final int GL_BLUE_BIT_ATI = 0x4;
|
||||
public static final int GL_GREEN_BIT_ATI = 0x2;
|
||||
public static final int GL_RED_BIT_ATI = 0x1;
|
||||
public static final int GL_SWIZZLE_STRQ_DQ_ATI = 0x897b;
|
||||
public static final int GL_SWIZZLE_STRQ_ATI = 0x897a;
|
||||
public static final int GL_SWIZZLE_STQ_DQ_ATI = 0x8979;
|
||||
public static final int GL_SWIZZLE_STR_DR_ATI = 0x8978;
|
||||
public static final int GL_SWIZZLE_STQ_ATI = 0x8977;
|
||||
public static final int GL_SWIZZLE_STR_ATI = 0x8976;
|
||||
public static final int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975;
|
||||
public static final int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974;
|
||||
public static final int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973;
|
||||
public static final int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972;
|
||||
public static final int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971;
|
||||
public static final int GL_NUM_PASSES_ATI = 0x8970;
|
||||
public static final int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896f;
|
||||
public static final int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896e;
|
||||
public static final int GL_SECONDARY_INTERPOLATOR_ATI = 0x896d;
|
||||
public static final int GL_DOT2_ADD_ATI = 0x896c;
|
||||
public static final int GL_CND0_ATI = 0x896b;
|
||||
public static final int GL_CND_ATI = 0x896a;
|
||||
public static final int GL_LERP_ATI = 0x8969;
|
||||
public static final int GL_MAD_ATI = 0x8968;
|
||||
public static final int GL_DOT4_ATI = 0x8967;
|
||||
public static final int GL_DOT3_ATI = 0x8966;
|
||||
public static final int GL_SUB_ATI = 0x8965;
|
||||
public static final int GL_MUL_ATI = 0x8964;
|
||||
public static final int GL_ADD_ATI = 0x8963;
|
||||
public static final int GL_MOV_ATI = 0x8961;
|
||||
public static final int GL_CON_31_ATI = 0x8960;
|
||||
public static final int GL_CON_30_ATI = 0x895f;
|
||||
public static final int GL_CON_29_ATI = 0x895e;
|
||||
public static final int GL_CON_28_ATI = 0x895d;
|
||||
public static final int GL_CON_27_ATI = 0x895c;
|
||||
public static final int GL_CON_26_ATI = 0x895b;
|
||||
public static final int GL_CON_25_ATI = 0x895a;
|
||||
public static final int GL_CON_24_ATI = 0x8959;
|
||||
public static final int GL_CON_23_ATI = 0x8958;
|
||||
public static final int GL_CON_22_ATI = 0x8957;
|
||||
public static final int GL_CON_21_ATI = 0x8956;
|
||||
public static final int GL_CON_20_ATI = 0x8955;
|
||||
public static final int GL_CON_19_ATI = 0x8954;
|
||||
public static final int GL_CON_18_ATI = 0x8953;
|
||||
public static final int GL_CON_17_ATI = 0x8952;
|
||||
public static final int GL_CON_16_ATI = 0x8951;
|
||||
public static final int GL_CON_15_ATI = 0x8950;
|
||||
public static final int GL_CON_14_ATI = 0x894f;
|
||||
public static final int GL_CON_13_ATI = 0x894e;
|
||||
public static final int GL_CON_12_ATI = 0x894d;
|
||||
public static final int GL_CON_11_ATI = 0x894c;
|
||||
public static final int GL_CON_10_ATI = 0x894b;
|
||||
public static final int GL_CON_9_ATI = 0x894a;
|
||||
public static final int GL_CON_8_ATI = 0x8949;
|
||||
public static final int GL_CON_7_ATI = 0x8948;
|
||||
public static final int GL_CON_6_ATI = 0x8947;
|
||||
public static final int GL_CON_5_ATI = 0x8946;
|
||||
public static final int GL_CON_4_ATI = 0x8945;
|
||||
public static final int GL_CON_3_ATI = 0x8944;
|
||||
public static final int GL_CON_2_ATI = 0x8943;
|
||||
public static final int GL_CON_1_ATI = 0x8942;
|
||||
public static final int GL_CON_0_ATI = 0x8941;
|
||||
public static final int GL_REG_31_ATI = 0x8940;
|
||||
public static final int GL_REG_30_ATI = 0x893f;
|
||||
public static final int GL_REG_29_ATI = 0x893e;
|
||||
public static final int GL_REG_28_ATI = 0x893d;
|
||||
public static final int GL_REG_27_ATI = 0x893c;
|
||||
public static final int GL_REG_26_ATI = 0x893b;
|
||||
public static final int GL_REG_25_ATI = 0x893a;
|
||||
public static final int GL_REG_24_ATI = 0x8939;
|
||||
public static final int GL_REG_23_ATI = 0x8938;
|
||||
public static final int GL_REG_22_ATI = 0x8937;
|
||||
public static final int GL_REG_21_ATI = 0x8936;
|
||||
public static final int GL_REG_20_ATI = 0x8935;
|
||||
public static final int GL_REG_19_ATI = 0x8934;
|
||||
public static final int GL_REG_18_ATI = 0x8933;
|
||||
public static final int GL_REG_17_ATI = 0x8932;
|
||||
public static final int GL_REG_16_ATI = 0x8931;
|
||||
public static final int GL_REG_15_ATI = 0x8930;
|
||||
public static final int GL_REG_14_ATI = 0x892f;
|
||||
public static final int GL_REG_13_ATI = 0x892e;
|
||||
public static final int GL_REG_12_ATI = 0x892d;
|
||||
public static final int GL_REG_11_ATI = 0x892c;
|
||||
public static final int GL_REG_10_ATI = 0x892b;
|
||||
public static final int GL_REG_9_ATI = 0x892a;
|
||||
public static final int GL_REG_8_ATI = 0x8929;
|
||||
public static final int GL_REG_7_ATI = 0x8928;
|
||||
public static final int GL_REG_6_ATI = 0x8927;
|
||||
public static final int GL_REG_5_ATI = 0x8926;
|
||||
public static final int GL_REG_4_ATI = 0x8925;
|
||||
public static final int GL_REG_3_ATI = 0x8924;
|
||||
public static final int GL_REG_2_ATI = 0x8923;
|
||||
public static final int GL_REG_1_ATI = 0x8922;
|
||||
public static final int GL_REG_0_ATI = 0x8921;
|
||||
public static final int GL_FRAGMENT_SHADER_ATI = 0x8920;
|
||||
public static final int GL_REG_0_ATI = 0x8921;
|
||||
public static final int GL_REG_1_ATI = 0x8922;
|
||||
public static final int GL_REG_2_ATI = 0x8923;
|
||||
public static final int GL_REG_3_ATI = 0x8924;
|
||||
public static final int GL_REG_4_ATI = 0x8925;
|
||||
public static final int GL_REG_5_ATI = 0x8926;
|
||||
public static final int GL_REG_6_ATI = 0x8927;
|
||||
public static final int GL_REG_7_ATI = 0x8928;
|
||||
public static final int GL_REG_8_ATI = 0x8929;
|
||||
public static final int GL_REG_9_ATI = 0x892a;
|
||||
public static final int GL_REG_10_ATI = 0x892b;
|
||||
public static final int GL_REG_11_ATI = 0x892c;
|
||||
public static final int GL_REG_12_ATI = 0x892d;
|
||||
public static final int GL_REG_13_ATI = 0x892e;
|
||||
public static final int GL_REG_14_ATI = 0x892f;
|
||||
public static final int GL_REG_15_ATI = 0x8930;
|
||||
public static final int GL_REG_16_ATI = 0x8931;
|
||||
public static final int GL_REG_17_ATI = 0x8932;
|
||||
public static final int GL_REG_18_ATI = 0x8933;
|
||||
public static final int GL_REG_19_ATI = 0x8934;
|
||||
public static final int GL_REG_20_ATI = 0x8935;
|
||||
public static final int GL_REG_21_ATI = 0x8936;
|
||||
public static final int GL_REG_22_ATI = 0x8937;
|
||||
public static final int GL_REG_23_ATI = 0x8938;
|
||||
public static final int GL_REG_24_ATI = 0x8939;
|
||||
public static final int GL_REG_25_ATI = 0x893a;
|
||||
public static final int GL_REG_26_ATI = 0x893b;
|
||||
public static final int GL_REG_27_ATI = 0x893c;
|
||||
public static final int GL_REG_28_ATI = 0x893d;
|
||||
public static final int GL_REG_29_ATI = 0x893e;
|
||||
public static final int GL_REG_30_ATI = 0x893f;
|
||||
public static final int GL_REG_31_ATI = 0x8940;
|
||||
public static final int GL_CON_0_ATI = 0x8941;
|
||||
public static final int GL_CON_1_ATI = 0x8942;
|
||||
public static final int GL_CON_2_ATI = 0x8943;
|
||||
public static final int GL_CON_3_ATI = 0x8944;
|
||||
public static final int GL_CON_4_ATI = 0x8945;
|
||||
public static final int GL_CON_5_ATI = 0x8946;
|
||||
public static final int GL_CON_6_ATI = 0x8947;
|
||||
public static final int GL_CON_7_ATI = 0x8948;
|
||||
public static final int GL_CON_8_ATI = 0x8949;
|
||||
public static final int GL_CON_9_ATI = 0x894a;
|
||||
public static final int GL_CON_10_ATI = 0x894b;
|
||||
public static final int GL_CON_11_ATI = 0x894c;
|
||||
public static final int GL_CON_12_ATI = 0x894d;
|
||||
public static final int GL_CON_13_ATI = 0x894e;
|
||||
public static final int GL_CON_14_ATI = 0x894f;
|
||||
public static final int GL_CON_15_ATI = 0x8950;
|
||||
public static final int GL_CON_16_ATI = 0x8951;
|
||||
public static final int GL_CON_17_ATI = 0x8952;
|
||||
public static final int GL_CON_18_ATI = 0x8953;
|
||||
public static final int GL_CON_19_ATI = 0x8954;
|
||||
public static final int GL_CON_20_ATI = 0x8955;
|
||||
public static final int GL_CON_21_ATI = 0x8956;
|
||||
public static final int GL_CON_22_ATI = 0x8957;
|
||||
public static final int GL_CON_23_ATI = 0x8958;
|
||||
public static final int GL_CON_24_ATI = 0x8959;
|
||||
public static final int GL_CON_25_ATI = 0x895a;
|
||||
public static final int GL_CON_26_ATI = 0x895b;
|
||||
public static final int GL_CON_27_ATI = 0x895c;
|
||||
public static final int GL_CON_28_ATI = 0x895d;
|
||||
public static final int GL_CON_29_ATI = 0x895e;
|
||||
public static final int GL_CON_30_ATI = 0x895f;
|
||||
public static final int GL_CON_31_ATI = 0x8960;
|
||||
public static final int GL_MOV_ATI = 0x8961;
|
||||
public static final int GL_ADD_ATI = 0x8963;
|
||||
public static final int GL_MUL_ATI = 0x8964;
|
||||
public static final int GL_SUB_ATI = 0x8965;
|
||||
public static final int GL_DOT3_ATI = 0x8966;
|
||||
public static final int GL_DOT4_ATI = 0x8967;
|
||||
public static final int GL_MAD_ATI = 0x8968;
|
||||
public static final int GL_LERP_ATI = 0x8969;
|
||||
public static final int GL_CND_ATI = 0x896a;
|
||||
public static final int GL_CND0_ATI = 0x896b;
|
||||
public static final int GL_DOT2_ADD_ATI = 0x896c;
|
||||
public static final int GL_SECONDARY_INTERPOLATOR_ATI = 0x896d;
|
||||
public static final int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896e;
|
||||
public static final int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896f;
|
||||
public static final int GL_NUM_PASSES_ATI = 0x8970;
|
||||
public static final int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971;
|
||||
public static final int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972;
|
||||
public static final int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973;
|
||||
public static final int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974;
|
||||
public static final int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975;
|
||||
public static final int GL_SWIZZLE_STR_ATI = 0x8976;
|
||||
public static final int GL_SWIZZLE_STQ_ATI = 0x8977;
|
||||
public static final int GL_SWIZZLE_STR_DR_ATI = 0x8978;
|
||||
public static final int GL_SWIZZLE_STQ_DQ_ATI = 0x8979;
|
||||
public static final int GL_SWIZZLE_STRQ_ATI = 0x897a;
|
||||
public static final int GL_SWIZZLE_STRQ_DQ_ATI = 0x897b;
|
||||
public static final int GL_RED_BIT_ATI = 0x1;
|
||||
public static final int GL_GREEN_BIT_ATI = 0x2;
|
||||
public static final int GL_BLUE_BIT_ATI = 0x4;
|
||||
public static final int GL_X2_BIT_ATI = 0x1;
|
||||
public static final int GL_X4_BIT_ATI = 0x2;
|
||||
public static final int GL_X8_BIT_ATI = 0x4;
|
||||
public static final int GL_HALF_BIT_ATI = 0x8;
|
||||
public static final int GL_QUARTER_BIT_ATI = 0x10;
|
||||
public static final int GL_EIGHTH_BIT_ATI = 0x20;
|
||||
public static final int GL_SATURATE_BIT_ATI = 0x40;
|
||||
public static final int GL_COMP_BIT_ATI = 0x2;
|
||||
public static final int GL_NEGATE_BIT_ATI = 0x4;
|
||||
public static final int GL_BIAS_BIT_ATI = 0x8;
|
||||
|
||||
private ATIFragmentShader() {
|
||||
}
|
||||
|
||||
|
||||
public static void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSetFragmentShaderConstantATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pfValue, 4);
|
||||
nglSetFragmentShaderConstantATI(dst, pfValue, pfValue.position(), function_pointer);
|
||||
}
|
||||
private static native void nglSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue, int pfValue_position, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp3ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp2ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp1ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp3ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp2ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp1ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer);
|
||||
|
||||
public static void glSampleMapATI(int dst, int interp, int swizzle) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSampleMapATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSampleMapATI(dst, interp, swizzle, function_pointer);
|
||||
}
|
||||
private static native void nglSampleMapATI(int dst, int interp, int swizzle, long function_pointer);
|
||||
|
||||
public static void glPassTexCoordATI(int dst, int coord, int swizzle) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glPassTexCoordATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPassTexCoordATI(dst, coord, swizzle, function_pointer);
|
||||
}
|
||||
private static native void nglPassTexCoordATI(int dst, int coord, int swizzle, long function_pointer);
|
||||
|
||||
public static void glEndFragmentShaderATI() {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glEndFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndFragmentShaderATI(function_pointer);
|
||||
}
|
||||
private static native void nglEndFragmentShaderATI(long function_pointer);
|
||||
|
||||
public static void glBeginFragmentShaderATI() {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBeginFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginFragmentShaderATI(function_pointer);
|
||||
}
|
||||
private static native void nglBeginFragmentShaderATI(long function_pointer);
|
||||
|
||||
public static void glDeleteFragmentShaderATI(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glDeleteFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDeleteFragmentShaderATI(id, function_pointer);
|
||||
}
|
||||
private static native void nglDeleteFragmentShaderATI(int id, long function_pointer);
|
||||
|
||||
public static void glBindFragmentShaderATI(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBindFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindFragmentShaderATI(id, function_pointer);
|
||||
}
|
||||
private static native void nglBindFragmentShaderATI(int id, long function_pointer);
|
||||
|
||||
public static int glGenFragmentShadersATI(int range) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glGenFragmentShadersATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -215,4 +123,96 @@ public final class ATIFragmentShader {
|
|||
return __result;
|
||||
}
|
||||
private static native int nglGenFragmentShadersATI(int range, long function_pointer);
|
||||
|
||||
public static void glBindFragmentShaderATI(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBindFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindFragmentShaderATI(id, function_pointer);
|
||||
}
|
||||
private static native void nglBindFragmentShaderATI(int id, long function_pointer);
|
||||
|
||||
public static void glDeleteFragmentShaderATI(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glDeleteFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDeleteFragmentShaderATI(id, function_pointer);
|
||||
}
|
||||
private static native void nglDeleteFragmentShaderATI(int id, long function_pointer);
|
||||
|
||||
public static void glBeginFragmentShaderATI() {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBeginFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginFragmentShaderATI(function_pointer);
|
||||
}
|
||||
private static native void nglBeginFragmentShaderATI(long function_pointer);
|
||||
|
||||
public static void glEndFragmentShaderATI() {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glEndFragmentShaderATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndFragmentShaderATI(function_pointer);
|
||||
}
|
||||
private static native void nglEndFragmentShaderATI(long function_pointer);
|
||||
|
||||
public static void glPassTexCoordATI(int dst, int coord, int swizzle) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glPassTexCoordATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPassTexCoordATI(dst, coord, swizzle, function_pointer);
|
||||
}
|
||||
private static native void nglPassTexCoordATI(int dst, int coord, int swizzle, long function_pointer);
|
||||
|
||||
public static void glSampleMapATI(int dst, int interp, int swizzle) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSampleMapATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSampleMapATI(dst, interp, swizzle, function_pointer);
|
||||
}
|
||||
private static native void nglSampleMapATI(int dst, int interp, int swizzle, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp1ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp2ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer);
|
||||
|
||||
public static void glColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp3ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer);
|
||||
}
|
||||
private static native void nglColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp1ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp2ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer);
|
||||
|
||||
public static void glAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp3ATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer);
|
||||
}
|
||||
private static native void nglAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer);
|
||||
|
||||
public static void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSetFragmentShaderConstantATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pfValue, 4);
|
||||
nglSetFragmentShaderConstantATI(dst, pfValue, pfValue.position(), function_pointer);
|
||||
}
|
||||
private static native void nglSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue, int pfValue_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,13 +12,6 @@ public final class ATIMapObjectBuffer {
|
|||
}
|
||||
|
||||
|
||||
public static void glUnmapObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_map_object_buffer_glUnmapObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUnmapObjectBufferATI(buffer, function_pointer);
|
||||
}
|
||||
private static native void nglUnmapObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
/**
|
||||
* glMapObjectBufferATI maps a gl object buffer to a ByteBuffer. The oldBuffer argument can be
|
||||
* null, in which case a new ByteBuffer will be created, pointing to the returned memory. If
|
||||
|
|
@ -39,4 +32,11 @@ public final class ATIMapObjectBuffer {
|
|||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglMapObjectBufferATI(int buffer, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
|
||||
|
||||
public static void glUnmapObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_map_object_buffer_glUnmapObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUnmapObjectBufferATI(buffer, function_pointer);
|
||||
}
|
||||
private static native void nglUnmapObjectBufferATI(int buffer, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,31 +7,31 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIPnTriangles {
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87f8;
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87f7;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87f6;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87f5;
|
||||
public static final int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87f4;
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87f3;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87f2;
|
||||
public static final int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87f1;
|
||||
public static final int GL_PN_TRIANGLES_ATI = 0x87f0;
|
||||
public static final int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87f1;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87f2;
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87f3;
|
||||
public static final int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87f4;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87f5;
|
||||
public static final int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87f6;
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87f7;
|
||||
public static final int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87f8;
|
||||
|
||||
private ATIPnTriangles() {
|
||||
}
|
||||
|
||||
|
||||
public static void glPNTrianglesiATI(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_pn_triangles_glPNTrianglesiATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPNTrianglesiATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPNTrianglesiATI(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glPNTrianglesfATI(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_pn_triangles_glPNTrianglesfATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPNTrianglesfATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPNTrianglesfATI(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glPNTrianglesiATI(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_pn_triangles_glPNTrianglesiATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPNTrianglesiATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPNTrianglesiATI(int pname, int param, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,26 +7,26 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATISeparateStencil {
|
||||
public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803;
|
||||
public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802;
|
||||
public static final int GL_STENCIL_BACK_FAIL_ATI = 0x8801;
|
||||
public static final int GL_STENCIL_BACK_FUNC_ATI = 0x8800;
|
||||
public static final int GL_STENCIL_BACK_FAIL_ATI = 0x8801;
|
||||
public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802;
|
||||
public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803;
|
||||
|
||||
private ATISeparateStencil() {
|
||||
}
|
||||
|
||||
|
||||
public static void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_separate_stencil_glStencilFuncSeparateATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglStencilFuncSeparateATI(frontfunc, backfunc, ref, mask, function_pointer);
|
||||
}
|
||||
private static native void nglStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask, long function_pointer);
|
||||
|
||||
public static void glStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_separate_stencil_glStencilOpSeparateATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglStencilOpSeparateATI(face, sfail, dpfail, dppass, function_pointer);
|
||||
}
|
||||
private static native void nglStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass, long function_pointer);
|
||||
|
||||
public static void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_separate_stencil_glStencilFuncSeparateATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglStencilFuncSeparateATI(frontfunc, backfunc, ref, mask, function_pointer);
|
||||
}
|
||||
private static native void nglStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,18 +7,18 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATITextureFloat {
|
||||
public static final int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881f;
|
||||
public static final int GL_LUMINANCE_FLOAT16_ATI = 0x881e;
|
||||
public static final int GL_INTENSITY_FLOAT16_ATI = 0x881d;
|
||||
public static final int GL_ALPHA_FLOAT16_ATI = 0x881c;
|
||||
public static final int GL_RGB_FLOAT16_ATI = 0x881b;
|
||||
public static final int GL_RGBA_FLOAT16_ATI = 0x881a;
|
||||
public static final int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819;
|
||||
public static final int GL_LUMINANCE_FLOAT32_ATI = 0x8818;
|
||||
public static final int GL_INTENSITY_FLOAT32_ATI = 0x8817;
|
||||
public static final int GL_ALPHA_FLOAT32_ATI = 0x8816;
|
||||
public static final int GL_RGB_FLOAT32_ATI = 0x8815;
|
||||
public static final int GL_RGBA_FLOAT32_ATI = 0x8814;
|
||||
public static final int GL_RGB_FLOAT32_ATI = 0x8815;
|
||||
public static final int GL_ALPHA_FLOAT32_ATI = 0x8816;
|
||||
public static final int GL_INTENSITY_FLOAT32_ATI = 0x8817;
|
||||
public static final int GL_LUMINANCE_FLOAT32_ATI = 0x8818;
|
||||
public static final int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819;
|
||||
public static final int GL_RGBA_FLOAT16_ATI = 0x881a;
|
||||
public static final int GL_RGB_FLOAT16_ATI = 0x881b;
|
||||
public static final int GL_ALPHA_FLOAT16_ATI = 0x881c;
|
||||
public static final int GL_INTENSITY_FLOAT16_ATI = 0x881d;
|
||||
public static final int GL_LUMINANCE_FLOAT16_ATI = 0x881e;
|
||||
public static final int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881f;
|
||||
|
||||
private ATITextureFloat() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATITextureMirrorOnce {
|
||||
public static final int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743;
|
||||
public static final int GL_MIRROR_CLAMP_ATI = 0x8742;
|
||||
public static final int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743;
|
||||
|
||||
private ATITextureMirrorOnce() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,122 +7,19 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIVertexArrayObject {
|
||||
public static final int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767;
|
||||
public static final int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766;
|
||||
public static final int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765;
|
||||
public static final int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764;
|
||||
public static final int GL_DISCARD_ATI = 0x8763;
|
||||
public static final int GL_PRESERVE_ATI = 0x8762;
|
||||
public static final int GL_DYNAMIC_ATI = 0x8761;
|
||||
public static final int GL_STATIC_ATI = 0x8760;
|
||||
public static final int GL_DYNAMIC_ATI = 0x8761;
|
||||
public static final int GL_PRESERVE_ATI = 0x8762;
|
||||
public static final int GL_DISCARD_ATI = 0x8763;
|
||||
public static final int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764;
|
||||
public static final int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765;
|
||||
public static final int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766;
|
||||
public static final int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767;
|
||||
|
||||
private ATIVertexArrayObject() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectivATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectivATI(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectfvATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glVariantArrayObjectATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVariantArrayObjectATI(id, type, stride, buffer, offset, function_pointer);
|
||||
}
|
||||
private static native void nglVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectivATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectfvATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glArrayObjectATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglArrayObjectATI(array, size, type, stride, buffer, offset, function_pointer);
|
||||
}
|
||||
private static native void nglArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glFreeObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glFreeObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFreeObjectBufferATI(buffer, function_pointer);
|
||||
}
|
||||
private static native void nglFreeObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferivATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferfvATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining()), pPointer, pPointer.position(), preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ShortBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 1), pPointer, pPointer.position() << 1, preserve, function_pointer);
|
||||
}
|
||||
private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_position, int preserve, long function_pointer);
|
||||
|
||||
public static boolean glIsObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glIsObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsObjectBufferATI(buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
public static int glNewObjectBufferATI(int size, int usage) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -158,4 +55,107 @@ public final class ATIVertexArrayObject {
|
|||
return __result;
|
||||
}
|
||||
private static native int nglNewObjectBufferATI(int size, Buffer pPointer, int pPointer_position, int usage, long function_pointer);
|
||||
|
||||
public static boolean glIsObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glIsObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsObjectBufferATI(buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining()), pPointer, pPointer.position(), preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ShortBuffer pPointer, int preserve) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 1), pPointer, pPointer.position() << 1, preserve, function_pointer);
|
||||
}
|
||||
private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_position, int preserve, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferfvATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferivATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glFreeObjectBufferATI(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glFreeObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFreeObjectBufferATI(buffer, function_pointer);
|
||||
}
|
||||
private static native void nglFreeObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
public static void glArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glArrayObjectATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglArrayObjectATI(array, size, type, stride, buffer, offset, function_pointer);
|
||||
}
|
||||
private static native void nglArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectfvATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectivATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glVariantArrayObjectATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVariantArrayObjectATI(id, type, stride, buffer, offset, function_pointer);
|
||||
}
|
||||
private static native void nglVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectfvATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectivATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectivATI(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,13 +12,12 @@ public final class ATIVertexAttribArrayObject {
|
|||
}
|
||||
|
||||
|
||||
public static void glGetVertexAttribArrayObjectATI(int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectivATI_pointer;
|
||||
public static void glVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glVertexAttribArrayObjectATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribArrayObjectivATI(index, pname, params, params.position(), function_pointer);
|
||||
nglVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset, function_pointer);
|
||||
}
|
||||
private static native void nglGetVertexAttribArrayObjectivATI(int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glGetVertexAttribArrayObjectATI(int index, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectfvATI_pointer;
|
||||
|
|
@ -28,10 +27,11 @@ public final class ATIVertexAttribArrayObject {
|
|||
}
|
||||
private static native void nglGetVertexAttribArrayObjectfvATI(int index, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glVertexAttribArrayObjectATI_pointer;
|
||||
public static void glGetVertexAttribArrayObjectATI(int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset, function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribArrayObjectivATI(index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset, long function_pointer);
|
||||
private static native void nglGetVertexAttribArrayObjectivATI(int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,118 +7,27 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class ATIVertexStreams {
|
||||
public static final int GL_VERTEX_STREAM7_ATI = 0x8774;
|
||||
public static final int GL_VERTEX_STREAM6_ATI = 0x8773;
|
||||
public static final int GL_VERTEX_STREAM5_ATI = 0x8772;
|
||||
public static final int GL_VERTEX_STREAM4_ATI = 0x8771;
|
||||
public static final int GL_VERTEX_STREAM3_ATI = 0x8770;
|
||||
public static final int GL_VERTEX_STREAM2_ATI = 0x876f;
|
||||
public static final int GL_VERTEX_STREAM1_ATI = 0x876e;
|
||||
public static final int GL_VERTEX_STREAM0_ATI = 0x876d;
|
||||
public static final int GL_VERTEX_SOURCE_ATI = 0x876c;
|
||||
public static final int GL_MAX_VERTEX_STREAMS_ATI = 0x876b;
|
||||
public static final int GL_VERTEX_SOURCE_ATI = 0x876c;
|
||||
public static final int GL_VERTEX_STREAM0_ATI = 0x876d;
|
||||
public static final int GL_VERTEX_STREAM1_ATI = 0x876e;
|
||||
public static final int GL_VERTEX_STREAM2_ATI = 0x876f;
|
||||
public static final int GL_VERTEX_STREAM3_ATI = 0x8770;
|
||||
public static final int GL_VERTEX_STREAM4_ATI = 0x8771;
|
||||
public static final int GL_VERTEX_STREAM5_ATI = 0x8772;
|
||||
public static final int GL_VERTEX_STREAM6_ATI = 0x8773;
|
||||
public static final int GL_VERTEX_STREAM7_ATI = 0x8774;
|
||||
|
||||
private ATIVertexStreams() {
|
||||
}
|
||||
|
||||
|
||||
public static void glVertexBlendEnviATI(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnviATI_pointer;
|
||||
public static void glVertexStream2fATI(int stream, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexBlendEnviATI(pname, param, function_pointer);
|
||||
nglVertexStream2fATI(stream, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexBlendEnviATI(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glVertexBlendEnvfATI(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnvfATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexBlendEnvfATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglVertexBlendEnvfATI(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glClientActiveVertexStreamATI(int stream) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glClientActiveVertexStreamATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglClientActiveVertexStreamATI(stream, function_pointer);
|
||||
}
|
||||
private static native void nglClientActiveVertexStreamATI(int stream, long function_pointer);
|
||||
|
||||
public static void glNormalStream3sATI(int stream, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3sATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3sATI(int stream, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3iATI(int stream, int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3iATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3iATI(int stream, int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3fATI(int stream, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3fATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3fATI(int stream, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3bATI(int stream, byte x, byte y, byte z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3bATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3bATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3bATI(int stream, byte x, byte y, byte z, long function_pointer);
|
||||
|
||||
public static void glVertexStream4sATI(int stream, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4sATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4sATI(int stream, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glVertexStream4iATI(int stream, int x, int y, int z, int w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4iATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4iATI(int stream, int x, int y, int z, int w, long function_pointer);
|
||||
|
||||
public static void glVertexStream4fATI(int stream, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4fATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4fATI(int stream, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glVertexStream3sATI(int stream, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3sATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3sATI(int stream, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexStream3iATI(int stream, int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3iATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3iATI(int stream, int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glVertexStream3fATI(int stream, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3fATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3fATI(int stream, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glVertexStream2sATI(int stream, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream2sATI(stream, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream2sATI(int stream, short x, short y, long function_pointer);
|
||||
private static native void nglVertexStream2fATI(int stream, float x, float y, long function_pointer);
|
||||
|
||||
public static void glVertexStream2iATI(int stream, int x, int y) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2iATI_pointer;
|
||||
|
|
@ -127,10 +36,101 @@ public final class ATIVertexStreams {
|
|||
}
|
||||
private static native void nglVertexStream2iATI(int stream, int x, int y, long function_pointer);
|
||||
|
||||
public static void glVertexStream2fATI(int stream, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2fATI_pointer;
|
||||
public static void glVertexStream2sATI(int stream, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream2fATI(stream, x, y, function_pointer);
|
||||
nglVertexStream2sATI(stream, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream2fATI(int stream, float x, float y, long function_pointer);
|
||||
private static native void nglVertexStream2sATI(int stream, short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexStream3fATI(int stream, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3fATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3fATI(int stream, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glVertexStream3iATI(int stream, int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3iATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3iATI(int stream, int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glVertexStream3sATI(int stream, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream3sATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream3sATI(int stream, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexStream4fATI(int stream, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4fATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4fATI(int stream, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glVertexStream4iATI(int stream, int x, int y, int z, int w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4iATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4iATI(int stream, int x, int y, int z, int w, long function_pointer);
|
||||
|
||||
public static void glVertexStream4sATI(int stream, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexStream4sATI(stream, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexStream4sATI(int stream, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glNormalStream3bATI(int stream, byte x, byte y, byte z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3bATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3bATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3bATI(int stream, byte x, byte y, byte z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3fATI(int stream, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3fATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3fATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3fATI(int stream, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3iATI(int stream, int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3iATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3iATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3iATI(int stream, int x, int y, int z, long function_pointer);
|
||||
|
||||
public static void glNormalStream3sATI(int stream, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3sATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalStream3sATI(stream, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglNormalStream3sATI(int stream, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glClientActiveVertexStreamATI(int stream) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glClientActiveVertexStreamATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglClientActiveVertexStreamATI(stream, function_pointer);
|
||||
}
|
||||
private static native void nglClientActiveVertexStreamATI(int stream, long function_pointer);
|
||||
|
||||
public static void glVertexBlendEnvfATI(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnvfATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexBlendEnvfATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglVertexBlendEnvfATI(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glVertexBlendEnviATI(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnviATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexBlendEnviATI(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglVertexBlendEnviATI(int pname, int param, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTBgra {
|
||||
public static final int GL_BGRA_EXT = 0x80e1;
|
||||
public static final int GL_BGR_EXT = 0x80e0;
|
||||
public static final int GL_BGRA_EXT = 0x80e1;
|
||||
|
||||
private EXTBgra() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTBlendEquationSeparate {
|
||||
public static final int GL_BLEND_EQUATION_ALPHA_EXT = 0x883d;
|
||||
public static final int GL_BLEND_EQUATION_RGB_EXT = 0x8009;
|
||||
public static final int GL_BLEND_EQUATION_ALPHA_EXT = 0x883d;
|
||||
|
||||
private EXTBlendEquationSeparate() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTBlendFuncSeparate {
|
||||
public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80cb;
|
||||
public static final int GL_BLEND_DST_ALPHA_EXT = 0x80ca;
|
||||
public static final int GL_BLEND_SRC_RGB_EXT = 0x80c9;
|
||||
public static final int GL_BLEND_DST_RGB_EXT = 0x80c8;
|
||||
public static final int GL_BLEND_SRC_RGB_EXT = 0x80c9;
|
||||
public static final int GL_BLEND_DST_ALPHA_EXT = 0x80ca;
|
||||
public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80cb;
|
||||
|
||||
private EXTBlendFuncSeparate() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTBlendSubtract {
|
||||
public static final int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800b;
|
||||
public static final int GL_FUNC_SUBTRACT_EXT = 0x800a;
|
||||
public static final int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800b;
|
||||
|
||||
private EXTBlendSubtract() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTCgShader {
|
||||
public static final int GL_CG_FRAGMENT_SHADER_EXT = 0x890f;
|
||||
/**
|
||||
* You can pass GL_CG_VERTEX_SHADER_EXT to glCreateShaderARB instead of GL_VERTEX_SHADER_ARB to create a vertex shader object
|
||||
* that will parse and compile its shader source with the Cg compiler front-end rather than the GLSL front-end. Likewise, you
|
||||
|
|
@ -15,6 +14,7 @@ public final class EXTCgShader {
|
|||
* that will parse and compile its shader source with the Cg front-end rather than the GLSL front-end.
|
||||
*/
|
||||
public static final int GL_CG_VERTEX_SHADER_EXT = 0x890e;
|
||||
public static final int GL_CG_FRAGMENT_SHADER_EXT = 0x890f;
|
||||
|
||||
private EXTCgShader() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,24 +7,24 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTCompiledVertexArray {
|
||||
public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81a9;
|
||||
public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81a8;
|
||||
public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81a9;
|
||||
|
||||
private EXTCompiledVertexArray() {
|
||||
}
|
||||
|
||||
|
||||
public static void glUnlockArraysEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_compiled_vertex_array_glUnlockArraysEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUnlockArraysEXT(function_pointer);
|
||||
}
|
||||
private static native void nglUnlockArraysEXT(long function_pointer);
|
||||
|
||||
public static void glLockArraysEXT(int first, int count) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_compiled_vertex_array_glLockArraysEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglLockArraysEXT(first, count, function_pointer);
|
||||
}
|
||||
private static native void nglLockArraysEXT(int first, int count, long function_pointer);
|
||||
|
||||
public static void glUnlockArraysEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_compiled_vertex_array_glUnlockArraysEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUnlockArraysEXT(function_pointer);
|
||||
}
|
||||
private static native void nglUnlockArraysEXT(long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTDepthBoundsTest {
|
||||
public static final int GL_DEPTH_BOUNDS_EXT = 0x8891;
|
||||
public static final int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890;
|
||||
public static final int GL_DEPTH_BOUNDS_EXT = 0x8891;
|
||||
|
||||
private EXTDepthBoundsTest() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTDrawRangeElements {
|
||||
public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80e9;
|
||||
public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80e8;
|
||||
public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80e9;
|
||||
|
||||
private EXTDrawRangeElements() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,19 +7,26 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTFogCoord {
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454;
|
||||
public static final int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453;
|
||||
public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452;
|
||||
public static final int GL_FOG_COORDINATE_EXT = 0x8451;
|
||||
public static final int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450;
|
||||
public static final int GL_FOG_COORDINATE_EXT = 0x8451;
|
||||
public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452;
|
||||
public static final int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457;
|
||||
|
||||
private EXTFogCoord() {
|
||||
}
|
||||
|
||||
|
||||
public static void glFogCoordfEXT(float coord) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFogCoordfEXT(coord, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordfEXT(float coord, long function_pointer);
|
||||
|
||||
public static void glFogCoordPointerEXT(int stride, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordPointerEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -36,11 +43,4 @@ public final class EXTFogCoord {
|
|||
nglFogCoordPointerEXTBO(type, stride, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordPointerEXTBO(int type, int stride, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glFogCoordfEXT(float coord) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFogCoordfEXT(coord, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordfEXT(float coord, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,171 +8,112 @@ import java.nio.*;
|
|||
|
||||
public final class EXTFramebufferObject {
|
||||
/**
|
||||
* Returned by GetError():
|
||||
* Accepted by the <target> parameter of BindFramebufferEXT,
|
||||
* CheckFramebufferStatusEXT, FramebufferTexture{1D|2D|3D}EXT, and
|
||||
* FramebufferRenderbufferEXT:
|
||||
*/
|
||||
public static final int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x506;
|
||||
public static final int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84e8;
|
||||
public static final int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8cdf;
|
||||
public static final int GL_RENDERBUFFER_BINDING_EXT = 0x8ca7;
|
||||
public static final int GL_FRAMEBUFFER_EXT = 0x8d40;
|
||||
/**
|
||||
* Accepted by GetIntegerv():
|
||||
* Accepted by the <target> parameter of BindRenderbufferEXT,
|
||||
* RenderbufferStorageEXT, and GetRenderbufferParameterivEXT, and
|
||||
* returned by GetFramebufferAttachmentParameterivEXT:
|
||||
*/
|
||||
public static final int GL_FRAMEBUFFER_BINDING_EXT = 0x8ca6;
|
||||
public static final int GL_FRAMEBUFFER_STATUS_ERROR_EXT = 0x8cde;
|
||||
public static final int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8cdd;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8cdc;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8cdb;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8cda;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8cd9;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT = 0x8cd8;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8cd7;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8cd6;
|
||||
public static final int GL_RENDERBUFFER_EXT = 0x8d41;
|
||||
/**
|
||||
* Accepted by the <internalformat> parameter of
|
||||
* RenderbufferStorageEXT:
|
||||
*/
|
||||
public static final int GL_STENCIL_INDEX_EXT = 0x8d45;
|
||||
public static final int GL_STENCIL_INDEX1_EXT = 0x8d46;
|
||||
public static final int GL_STENCIL_INDEX4_EXT = 0x8d47;
|
||||
public static final int GL_STENCIL_INDEX8_EXT = 0x8d48;
|
||||
public static final int GL_STENCIL_INDEX16_EXT = 0x8d49;
|
||||
/**
|
||||
* Accepted by the <pname> parameter of GetRenderbufferParameterivEXT:
|
||||
*/
|
||||
public static final int GL_RENDERBUFFER_WIDTH_EXT = 0x8d42;
|
||||
public static final int GL_RENDERBUFFER_HEIGHT_EXT = 0x8d43;
|
||||
public static final int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8d44;
|
||||
public static final int GL_RENDERBUFFER_RED_SIZE_EXT = 0x8d50;
|
||||
public static final int GL_RENDERBUFFER_GREEN_SIZE_EXT = 0x8d51;
|
||||
public static final int GL_RENDERBUFFER_BLUE_SIZE_EXT = 0x8d52;
|
||||
public static final int GL_RENDERBUFFER_ALPHA_SIZE_EXT = 0x8d53;
|
||||
public static final int GL_RENDERBUFFER_DEPTH_SIZE_EXT = 0x8d54;
|
||||
public static final int GL_RENDERBUFFER_STENCIL_SIZE_EXT = 0x8d55;
|
||||
/**
|
||||
* Accepted by the <pname> parameter of
|
||||
* GetFramebufferAttachmentParameterivEXT:
|
||||
*/
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8cd0;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8cd1;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8cd2;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8cd3;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8cd4;
|
||||
/**
|
||||
* Accepted by the <attachment> parameter of
|
||||
* FramebufferTexture{1D|2D|3D}EXT, FramebufferRenderbufferEXT, and
|
||||
* GetFramebufferAttachmentParameterivEXT
|
||||
*/
|
||||
public static final int GL_COLOR_ATTACHMENT0_EXT = 0x8ce0;
|
||||
public static final int GL_COLOR_ATTACHMENT1_EXT = 0x8ce1;
|
||||
public static final int GL_COLOR_ATTACHMENT2_EXT = 0x8ce2;
|
||||
public static final int GL_COLOR_ATTACHMENT3_EXT = 0x8ce3;
|
||||
public static final int GL_COLOR_ATTACHMENT4_EXT = 0x8ce4;
|
||||
public static final int GL_COLOR_ATTACHMENT5_EXT = 0x8ce5;
|
||||
public static final int GL_COLOR_ATTACHMENT6_EXT = 0x8ce6;
|
||||
public static final int GL_COLOR_ATTACHMENT7_EXT = 0x8ce7;
|
||||
public static final int GL_COLOR_ATTACHMENT8_EXT = 0x8ce8;
|
||||
public static final int GL_COLOR_ATTACHMENT9_EXT = 0x8ce9;
|
||||
public static final int GL_COLOR_ATTACHMENT10_EXT = 0x8cea;
|
||||
public static final int GL_COLOR_ATTACHMENT11_EXT = 0x8ceb;
|
||||
public static final int GL_COLOR_ATTACHMENT12_EXT = 0x8cec;
|
||||
public static final int GL_COLOR_ATTACHMENT13_EXT = 0x8ced;
|
||||
public static final int GL_COLOR_ATTACHMENT14_EXT = 0x8cee;
|
||||
public static final int GL_COLOR_ATTACHMENT15_EXT = 0x8cef;
|
||||
public static final int GL_DEPTH_ATTACHMENT_EXT = 0x8d00;
|
||||
public static final int GL_STENCIL_ATTACHMENT_EXT = 0x8d20;
|
||||
/**
|
||||
* Returned by CheckFramebufferStatusEXT():
|
||||
*/
|
||||
public static final int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8cd5;
|
||||
public static final int GL_STENCIL_ATTACHMENT_EXT = 0x8d20;
|
||||
public static final int GL_DEPTH_ATTACHMENT_EXT = 0x8d00;
|
||||
public static final int GL_COLOR_ATTACHMENT15_EXT = 0x8cef;
|
||||
public static final int GL_COLOR_ATTACHMENT14_EXT = 0x8cee;
|
||||
public static final int GL_COLOR_ATTACHMENT13_EXT = 0x8ced;
|
||||
public static final int GL_COLOR_ATTACHMENT12_EXT = 0x8cec;
|
||||
public static final int GL_COLOR_ATTACHMENT11_EXT = 0x8ceb;
|
||||
public static final int GL_COLOR_ATTACHMENT10_EXT = 0x8cea;
|
||||
public static final int GL_COLOR_ATTACHMENT9_EXT = 0x8ce9;
|
||||
public static final int GL_COLOR_ATTACHMENT8_EXT = 0x8ce8;
|
||||
public static final int GL_COLOR_ATTACHMENT7_EXT = 0x8ce7;
|
||||
public static final int GL_COLOR_ATTACHMENT6_EXT = 0x8ce6;
|
||||
public static final int GL_COLOR_ATTACHMENT5_EXT = 0x8ce5;
|
||||
public static final int GL_COLOR_ATTACHMENT4_EXT = 0x8ce4;
|
||||
public static final int GL_COLOR_ATTACHMENT3_EXT = 0x8ce3;
|
||||
public static final int GL_COLOR_ATTACHMENT2_EXT = 0x8ce2;
|
||||
public static final int GL_COLOR_ATTACHMENT1_EXT = 0x8ce1;
|
||||
public static final int GL_COLOR_ATTACHMENT0_EXT = 0x8ce0;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8cd4;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8cd3;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8cd2;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8cd1;
|
||||
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8cd0;
|
||||
public static final int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8d44;
|
||||
public static final int GL_RENDERBUFFER_HEIGHT_EXT = 0x8d43;
|
||||
public static final int GL_RENDERBUFFER_WIDTH_EXT = 0x8d42;
|
||||
public static final int GL_STENCIL_INDEX16_EXT = 0x8d49;
|
||||
public static final int GL_STENCIL_INDEX8_EXT = 0x8d48;
|
||||
public static final int GL_STENCIL_INDEX4_EXT = 0x8d47;
|
||||
public static final int GL_STENCIL_INDEX1_EXT = 0x8d46;
|
||||
public static final int GL_STENCIL_INDEX_EXT = 0x8d45;
|
||||
public static final int GL_RENDERBUFFER_EXT = 0x8d41;
|
||||
public static final int GL_FRAMEBUFFER_EXT = 0x8d40;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8cd6;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8cd7;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT = 0x8cd8;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8cd9;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8cda;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8cdb;
|
||||
public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8cdc;
|
||||
public static final int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8cdd;
|
||||
/**
|
||||
* Accepted by GetIntegerv():
|
||||
*/
|
||||
public static final int GL_FRAMEBUFFER_BINDING_EXT = 0x8ca6;
|
||||
public static final int GL_RENDERBUFFER_BINDING_EXT = 0x8ca7;
|
||||
public static final int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8cdf;
|
||||
public static final int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84e8;
|
||||
/**
|
||||
* Returned by GetError():
|
||||
*/
|
||||
public static final int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x506;
|
||||
|
||||
private EXTFramebufferObject() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGenerateMipmapEXT(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenerateMipmapEXT_pointer;
|
||||
public static boolean glIsRenderbufferEXT(int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsRenderbufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGenerateMipmapEXT(target, function_pointer);
|
||||
}
|
||||
private static native void nglGenerateMipmapEXT(int target, long function_pointer);
|
||||
|
||||
public static void glGetFramebufferAttachmentParameterEXT(int target, int attachment, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetFramebufferAttachmentParameterivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFramebufferAttachmentParameterivEXT(int target, int attachment, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferRenderbufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture3DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture2DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture2DEXT(target, attachment, textarget, texture, level, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture1DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture1DEXT(target, attachment, textarget, texture, level, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer);
|
||||
|
||||
public static int glCheckFramebufferStatusEXT(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glCheckFramebufferStatusEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCheckFramebufferStatusEXT(target, function_pointer);
|
||||
boolean __result = nglIsRenderbufferEXT(renderbuffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCheckFramebufferStatusEXT(int target, long function_pointer);
|
||||
private static native boolean nglIsRenderbufferEXT(int renderbuffer, long function_pointer);
|
||||
|
||||
public static void glGenFramebuffersEXT(IntBuffer framebuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenFramebuffersEXT_pointer;
|
||||
public static void glBindRenderbufferEXT(int target, int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindRenderbufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(framebuffers);
|
||||
nglGenFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer);
|
||||
nglBindRenderbufferEXT(target, renderbuffer, function_pointer);
|
||||
}
|
||||
private static native void nglGenFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer);
|
||||
|
||||
public static void glDeleteFramebuffersEXT(IntBuffer framebuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glDeleteFramebuffersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(framebuffers);
|
||||
nglDeleteFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer);
|
||||
|
||||
public static void glBindFramebufferEXT(int target, int framebuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindFramebufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindFramebufferEXT(target, framebuffer, function_pointer);
|
||||
}
|
||||
private static native void nglBindFramebufferEXT(int target, int framebuffer, long function_pointer);
|
||||
|
||||
public static boolean glIsFramebufferEXT(int framebuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsFramebufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsFramebufferEXT(framebuffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsFramebufferEXT(int framebuffer, long function_pointer);
|
||||
|
||||
public static void glGetRenderbufferParameterEXT(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetRenderbufferParameterivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetRenderbufferParameterivEXT(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetRenderbufferParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glRenderbufferStorageEXT(int target, int internalformat, int width, int height) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glRenderbufferStorageEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglRenderbufferStorageEXT(target, internalformat, width, height, function_pointer);
|
||||
}
|
||||
private static native void nglRenderbufferStorageEXT(int target, int internalformat, int width, int height, long function_pointer);
|
||||
|
||||
public static void glGenRenderbuffersEXT(IntBuffer renderbuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenRenderbuffersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(renderbuffers);
|
||||
nglGenRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position, long function_pointer);
|
||||
private static native void nglBindRenderbufferEXT(int target, int renderbuffer, long function_pointer);
|
||||
|
||||
public static void glDeleteRenderbuffersEXT(IntBuffer renderbuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glDeleteRenderbuffersEXT_pointer;
|
||||
|
|
@ -182,18 +123,108 @@ public final class EXTFramebufferObject {
|
|||
}
|
||||
private static native void nglDeleteRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position, long function_pointer);
|
||||
|
||||
public static void glBindRenderbufferEXT(int target, int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindRenderbufferEXT_pointer;
|
||||
public static void glGenRenderbuffersEXT(IntBuffer renderbuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenRenderbuffersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindRenderbufferEXT(target, renderbuffer, function_pointer);
|
||||
BufferChecks.checkDirect(renderbuffers);
|
||||
nglGenRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglBindRenderbufferEXT(int target, int renderbuffer, long function_pointer);
|
||||
private static native void nglGenRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position, long function_pointer);
|
||||
|
||||
public static boolean glIsRenderbufferEXT(int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsRenderbufferEXT_pointer;
|
||||
public static void glRenderbufferStorageEXT(int target, int internalformat, int width, int height) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glRenderbufferStorageEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsRenderbufferEXT(renderbuffer, function_pointer);
|
||||
nglRenderbufferStorageEXT(target, internalformat, width, height, function_pointer);
|
||||
}
|
||||
private static native void nglRenderbufferStorageEXT(int target, int internalformat, int width, int height, long function_pointer);
|
||||
|
||||
public static void glGetRenderbufferParameterEXT(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetRenderbufferParameterivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetRenderbufferParameterivEXT(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetRenderbufferParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static boolean glIsFramebufferEXT(int framebuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsFramebufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsFramebufferEXT(framebuffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsRenderbufferEXT(int renderbuffer, long function_pointer);
|
||||
private static native boolean nglIsFramebufferEXT(int framebuffer, long function_pointer);
|
||||
|
||||
public static void glBindFramebufferEXT(int target, int framebuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindFramebufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindFramebufferEXT(target, framebuffer, function_pointer);
|
||||
}
|
||||
private static native void nglBindFramebufferEXT(int target, int framebuffer, long function_pointer);
|
||||
|
||||
public static void glDeleteFramebuffersEXT(IntBuffer framebuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glDeleteFramebuffersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(framebuffers);
|
||||
nglDeleteFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer);
|
||||
|
||||
public static void glGenFramebuffersEXT(IntBuffer framebuffers) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenFramebuffersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(framebuffers);
|
||||
nglGenFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer);
|
||||
|
||||
public static int glCheckFramebufferStatusEXT(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glCheckFramebufferStatusEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglCheckFramebufferStatusEXT(target, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglCheckFramebufferStatusEXT(int target, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture1DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture1DEXT(target, attachment, textarget, texture, level, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture2DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture2DEXT(target, attachment, textarget, texture, level, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer);
|
||||
|
||||
public static void glFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture3DEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset, long function_pointer);
|
||||
|
||||
public static void glFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferRenderbufferEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer, function_pointer);
|
||||
}
|
||||
private static native void nglFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer, long function_pointer);
|
||||
|
||||
public static void glGetFramebufferAttachmentParameterEXT(int target, int attachment, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetFramebufferAttachmentParameterivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFramebufferAttachmentParameterivEXT(int target, int attachment, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGenerateMipmapEXT(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenerateMipmapEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGenerateMipmapEXT(target, function_pointer);
|
||||
}
|
||||
private static native void nglGenerateMipmapEXT(int target, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTPackedPixels {
|
||||
public static final int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
|
||||
public static final int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
|
||||
public static final int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
|
||||
public static final int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
|
||||
public static final int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032;
|
||||
public static final int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
|
||||
public static final int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
|
||||
public static final int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
|
||||
public static final int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
|
||||
|
||||
private EXTPackedPixels() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,67 +7,51 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTPalettedTexture {
|
||||
public static final int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ed;
|
||||
public static final int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80df;
|
||||
public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80de;
|
||||
public static final int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80dd;
|
||||
public static final int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80dc;
|
||||
public static final int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80db;
|
||||
public static final int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80da;
|
||||
public static final int GL_COLOR_TABLE_WIDTH_EXT = 0x80d9;
|
||||
public static final int GL_COLOR_TABLE_FORMAT_EXT = 0x80d8;
|
||||
public static final int GL_COLOR_INDEX16_EXT = 0x80e7;
|
||||
public static final int GL_COLOR_INDEX12_EXT = 0x80e6;
|
||||
public static final int GL_COLOR_INDEX8_EXT = 0x80e5;
|
||||
public static final int GL_COLOR_INDEX4_EXT = 0x80e4;
|
||||
public static final int GL_COLOR_INDEX2_EXT = 0x80e3;
|
||||
public static final int GL_COLOR_INDEX1_EXT = 0x80e2;
|
||||
public static final int GL_COLOR_INDEX2_EXT = 0x80e3;
|
||||
public static final int GL_COLOR_INDEX4_EXT = 0x80e4;
|
||||
public static final int GL_COLOR_INDEX8_EXT = 0x80e5;
|
||||
public static final int GL_COLOR_INDEX12_EXT = 0x80e6;
|
||||
public static final int GL_COLOR_INDEX16_EXT = 0x80e7;
|
||||
public static final int GL_COLOR_TABLE_FORMAT_EXT = 0x80d8;
|
||||
public static final int GL_COLOR_TABLE_WIDTH_EXT = 0x80d9;
|
||||
public static final int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80da;
|
||||
public static final int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80db;
|
||||
public static final int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80dc;
|
||||
public static final int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80dd;
|
||||
public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80de;
|
||||
public static final int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80df;
|
||||
public static final int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ed;
|
||||
|
||||
private EXTPalettedTexture() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetColorTableParameterEXT(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterfvEXT_pointer;
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetColorTableParameterfvEXT(target, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableParameterfvEXT(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetColorTableParameterEXT(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterivEXT_pointer;
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetColorTableParameterivEXT(target, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetColorTableEXT(int target, int format, int type, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableEXT(int target, int format, int type, Buffer data, int data_position, long function_pointer);
|
||||
private static native void nglColorTableEXT(int target, int internalFormat, int width, int format, int type, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glColorSubTableEXT(int target, int start, int count, int format, int type, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer;
|
||||
|
|
@ -95,29 +79,45 @@ public final class EXTPalettedTexture {
|
|||
}
|
||||
private static native void nglColorSubTableEXT(int target, int start, int count, int format, int type, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
public static void glGetColorTableEXT(int target, int format, int type, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position(), function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
public static void glGetColorTableEXT(int target, int format, int type, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
public static void glGetColorTableEXT(int target, int format, int type, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 1, function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglColorTableEXT(int target, int internalFormat, int width, int format, int type, Buffer data, int data_position, long function_pointer);
|
||||
private static native void nglGetColorTableEXT(int target, int format, int type, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glGetColorTableParameterEXT(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetColorTableParameterivEXT(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetColorTableParameterEXT(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterfvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetColorTableParameterfvEXT(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableParameterfvEXT(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTPixelBufferObject extends ARBBufferObject {
|
||||
public static final int PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88ef;
|
||||
public static final int PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ed;
|
||||
public static final int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88ec;
|
||||
public static final int GL_PIXEL_PACK_BUFFER_EXT = 0x88eb;
|
||||
public static final int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88ec;
|
||||
public static final int PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ed;
|
||||
public static final int PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88ef;
|
||||
|
||||
private EXTPixelBufferObject() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,15 +7,22 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTPointParameters {
|
||||
public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129;
|
||||
public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128;
|
||||
public static final int GL_POINT_SIZE_MAX_EXT = 0x8127;
|
||||
public static final int GL_POINT_SIZE_MIN_EXT = 0x8126;
|
||||
public static final int GL_POINT_SIZE_MAX_EXT = 0x8127;
|
||||
public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128;
|
||||
public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129;
|
||||
|
||||
private EXTPointParameters() {
|
||||
}
|
||||
|
||||
|
||||
public static void glPointParameterfEXT(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_point_parameters_glPointParameterfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterfEXT(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfEXT(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glPointParameterEXT(int pname, FloatBuffer pfParams) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_point_parameters_glPointParameterfvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -23,11 +30,4 @@ public final class EXTPointParameters {
|
|||
nglPointParameterfvEXT(pname, pfParams, pfParams.position(), function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfvEXT(int pname, FloatBuffer pfParams, int pfParams_position, long function_pointer);
|
||||
|
||||
public static void glPointParameterfEXT(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_point_parameters_glPointParameterfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterfEXT(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfEXT(int pname, float param, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,18 +7,39 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTSecondaryColor {
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845e;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845d;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845c;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845b;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845a;
|
||||
public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459;
|
||||
public static final int GL_COLOR_SUM_EXT = 0x8458;
|
||||
public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845a;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845b;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845c;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845d;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845e;
|
||||
|
||||
private EXTSecondaryColor() {
|
||||
}
|
||||
|
||||
|
||||
public static void glSecondaryColor3bEXT(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3bEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3bEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3bEXT(byte red, byte green, byte blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3fEXT(float red, float green, float blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3fEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3fEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3fEXT(float red, float green, float blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3ubEXT(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3ubEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3ubEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3ubEXT(byte red, byte green, byte blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColorPointerEXT(int size, int stride, FloatBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColorPointerEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -43,25 +64,4 @@ public final class EXTSecondaryColor {
|
|||
nglSecondaryColorPointerEXTBO(size, type, stride, pPointer_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColorPointerEXTBO(int size, int type, int stride, int pPointer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3ubEXT(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3ubEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3ubEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3ubEXT(byte red, byte green, byte blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3fEXT(float red, float green, float blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3fEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3fEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3fEXT(float red, float green, float blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3bEXT(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3bEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3bEXT(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3bEXT(byte red, byte green, byte blue, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTSeparateSpecularColor {
|
||||
public static final int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81f8;
|
||||
public static final int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81fa;
|
||||
public static final int GL_SINGLE_COLOR_EXT = 0x81f9;
|
||||
public static final int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81fa;
|
||||
public static final int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81f8;
|
||||
|
||||
private EXTSeparateSpecularColor() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTStencilTwoSide {
|
||||
public static final int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911;
|
||||
public static final int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910;
|
||||
public static final int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911;
|
||||
|
||||
private EXTStencilTwoSide() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTStencilWrap {
|
||||
public static final int GL_DECR_WRAP_EXT = 0x8508;
|
||||
public static final int GL_INCR_WRAP_EXT = 0x8507;
|
||||
public static final int GL_DECR_WRAP_EXT = 0x8508;
|
||||
|
||||
private EXTStencilWrap() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureCompressionS3TC {
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83f3;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83f2;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1;
|
||||
public static final int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83f0;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83f2;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83f3;
|
||||
|
||||
private EXTTextureCompressionS3TC() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,27 +7,27 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureEnvCombine {
|
||||
public static final int GL_PREVIOUS_EXT = 0x8578;
|
||||
public static final int GL_PRIMARY_COLOR_EXT = 0x8577;
|
||||
public static final int GL_CONSTANT_EXT = 0x8576;
|
||||
public static final int GL_INTERPOLATE_EXT = 0x8575;
|
||||
public static final int GL_ADD_SIGNED_EXT = 0x8574;
|
||||
public static final int GL_RGB_SCALE_EXT = 0x8573;
|
||||
public static final int GL_OPERAND2_ALPHA_EXT = 0x859a;
|
||||
public static final int GL_OPERAND1_ALPHA_EXT = 0x8599;
|
||||
public static final int GL_OPERAND0_ALPHA_EXT = 0x8598;
|
||||
public static final int GL_OPERAND2_RGB_EXT = 0x8592;
|
||||
public static final int GL_OPERAND1_RGB_EXT = 0x8591;
|
||||
public static final int GL_OPERAND0_RGB_EXT = 0x8590;
|
||||
public static final int GL_SOURCE2_ALPHA_EXT = 0x858a;
|
||||
public static final int GL_SOURCE1_ALPHA_EXT = 0x8589;
|
||||
public static final int GL_SOURCE0_ALPHA_EXT = 0x8588;
|
||||
public static final int GL_SOURCE2_RGB_EXT = 0x8582;
|
||||
public static final int GL_SOURCE1_RGB_EXT = 0x8581;
|
||||
public static final int GL_SOURCE0_RGB_EXT = 0x8580;
|
||||
public static final int GL_COMBINE_ALPHA_EXT = 0x8572;
|
||||
public static final int GL_COMBINE_RGB_EXT = 0x8571;
|
||||
public static final int GL_COMBINE_EXT = 0x8570;
|
||||
public static final int GL_COMBINE_RGB_EXT = 0x8571;
|
||||
public static final int GL_COMBINE_ALPHA_EXT = 0x8572;
|
||||
public static final int GL_SOURCE0_RGB_EXT = 0x8580;
|
||||
public static final int GL_SOURCE1_RGB_EXT = 0x8581;
|
||||
public static final int GL_SOURCE2_RGB_EXT = 0x8582;
|
||||
public static final int GL_SOURCE0_ALPHA_EXT = 0x8588;
|
||||
public static final int GL_SOURCE1_ALPHA_EXT = 0x8589;
|
||||
public static final int GL_SOURCE2_ALPHA_EXT = 0x858a;
|
||||
public static final int GL_OPERAND0_RGB_EXT = 0x8590;
|
||||
public static final int GL_OPERAND1_RGB_EXT = 0x8591;
|
||||
public static final int GL_OPERAND2_RGB_EXT = 0x8592;
|
||||
public static final int GL_OPERAND0_ALPHA_EXT = 0x8598;
|
||||
public static final int GL_OPERAND1_ALPHA_EXT = 0x8599;
|
||||
public static final int GL_OPERAND2_ALPHA_EXT = 0x859a;
|
||||
public static final int GL_RGB_SCALE_EXT = 0x8573;
|
||||
public static final int GL_ADD_SIGNED_EXT = 0x8574;
|
||||
public static final int GL_INTERPOLATE_EXT = 0x8575;
|
||||
public static final int GL_CONSTANT_EXT = 0x8576;
|
||||
public static final int GL_PRIMARY_COLOR_EXT = 0x8577;
|
||||
public static final int GL_PREVIOUS_EXT = 0x8578;
|
||||
|
||||
private EXTTextureEnvCombine() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureEnvDot3 {
|
||||
public static final int GL_DOT3_RGBA_EXT = 0x8741;
|
||||
public static final int GL_DOT3_RGB_EXT = 0x8740;
|
||||
public static final int GL_DOT3_RGBA_EXT = 0x8741;
|
||||
|
||||
private EXTTextureEnvDot3() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureFilterAnisotropic {
|
||||
public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84ff;
|
||||
public static final int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84fe;
|
||||
public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84ff;
|
||||
|
||||
private EXTTextureFilterAnisotropic() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureLODBias {
|
||||
public static final int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84fd;
|
||||
public static final int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
|
||||
public static final int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500;
|
||||
public static final int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
|
||||
public static final int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84fd;
|
||||
|
||||
private EXTTextureLODBias() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureMirrorClamp {
|
||||
public static final int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912;
|
||||
public static final int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743;
|
||||
public static final int GL_MIRROR_CLAMP_EXT = 0x8742;
|
||||
public static final int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743;
|
||||
public static final int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912;
|
||||
|
||||
private EXTTextureMirrorClamp() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTTextureRectangle {
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT = 0x84f8;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_EXT = 0x84f7;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_EXT = 0x84f6;
|
||||
public static final int GL_TEXTURE_RECTANGLE_EXT = 0x84f5;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_EXT = 0x84f6;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_EXT = 0x84f7;
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT = 0x84f8;
|
||||
|
||||
private EXTTextureRectangle() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,262 +7,321 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTVertexShader {
|
||||
public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ed;
|
||||
public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87ec;
|
||||
public static final int GL_INVARIANT_DATATYPE_EXT = 0x87eb;
|
||||
public static final int GL_INVARIANT_VALUE_EXT = 0x87ea;
|
||||
public static final int GL_VARIANT_ARRAY_POINTER_EXT = 0x87e9;
|
||||
public static final int GL_VARIANT_ARRAY_EXT = 0x87e8;
|
||||
public static final int GL_VARIANT_ARRAY_TYPE_EXT = 0x87e7;
|
||||
public static final int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87e6;
|
||||
public static final int GL_VARIANT_DATATYPE_EXT = 0x87e5;
|
||||
public static final int GL_VARIANT_VALUE_EXT = 0x87e4;
|
||||
public static final int GL_MVP_MATRIX_EXT = 0x87e3;
|
||||
public static final int GL_CURRENT_VERTEX_EXT = 0x87e2;
|
||||
public static final int GL_FULL_RANGE_EXT = 0x87e1;
|
||||
public static final int GL_NORMALIZED_RANGE_EXT = 0x87e0;
|
||||
public static final int GL_NEGATIVE_ONE_EXT = 0x87df;
|
||||
public static final int GL_ONE_EXT = 0x87de;
|
||||
public static final int GL_ZERO_EXT = 0x87dd;
|
||||
public static final int GL_NEGATIVE_W_EXT = 0x87dc;
|
||||
public static final int GL_NEGATIVE_Z_EXT = 0x87db;
|
||||
public static final int GL_NEGATIVE_Y_EXT = 0x87da;
|
||||
public static final int GL_NEGATIVE_X_EXT = 0x87d9;
|
||||
public static final int GL_W_EXT = 0x87d8;
|
||||
public static final int GL_Z_EXT = 0x87d7;
|
||||
public static final int GL_Y_EXT = 0x87d6;
|
||||
public static final int GL_X_EXT = 0x87d5;
|
||||
public static final int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87d4;
|
||||
public static final int GL_VERTEX_SHADER_LOCALS_EXT = 0x87d3;
|
||||
public static final int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87d2;
|
||||
public static final int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87d1;
|
||||
public static final int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87d0;
|
||||
public static final int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87cf;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87ce;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87cd;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87cc;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87cb;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87ca;
|
||||
public static final int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87c9;
|
||||
public static final int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87c8;
|
||||
public static final int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87c7;
|
||||
public static final int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87c6;
|
||||
public static final int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87c5;
|
||||
public static final int GL_LOCAL_EXT = 0x87c4;
|
||||
public static final int GL_LOCAL_CONSTANT_EXT = 0x87c3;
|
||||
public static final int GL_INVARIANT_EXT = 0x87c2;
|
||||
public static final int GL_VARIANT_EXT = 0x87c1;
|
||||
public static final int GL_MATRIX_EXT = 0x87c0;
|
||||
public static final int GL_VECTOR_EXT = 0x87bf;
|
||||
public static final int GL_SCALAR_EXT = 0x87be;
|
||||
public static final int GL_OUTPUT_FOG_EXT = 0x87bd;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87bc;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87bb;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87ba;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87b9;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87b8;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87b7;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87b6;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87b5;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87b4;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87b3;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87b2;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87b1;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87b0;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87af;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87ae;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87ad;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87ac;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87ab;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87aa;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87a9;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87a8;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87a7;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87a6;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87a5;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87a4;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87a3;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87a2;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87a1;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87a0;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879f;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879e;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879d;
|
||||
public static final int GL_OUTPUT_COLOR1_EXT = 0x879c;
|
||||
public static final int GL_OUTPUT_COLOR0_EXT = 0x879b;
|
||||
public static final int GL_OUTPUT_VERTEX_EXT = 0x879a;
|
||||
public static final int GL_OP_MOV_EXT = 0x8799;
|
||||
public static final int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798;
|
||||
public static final int GL_OP_CROSS_PRODUCT_EXT = 0x8797;
|
||||
public static final int GL_OP_SUB_EXT = 0x8796;
|
||||
public static final int GL_OP_RECIP_SQRT_EXT = 0x8795;
|
||||
public static final int GL_OP_RECIP_EXT = 0x8794;
|
||||
public static final int GL_OP_POWER_EXT = 0x8793;
|
||||
public static final int GL_OP_LOG_BASE_2_EXT = 0x8792;
|
||||
public static final int GL_OP_EXP_BASE_2_EXT = 0x8791;
|
||||
public static final int GL_OP_ROUND_EXT = 0x8790;
|
||||
public static final int GL_OP_FLOOR_EXT = 0x878f;
|
||||
public static final int GL_OP_CLAMP_EXT = 0x878e;
|
||||
public static final int GL_OP_SET_LT_EXT = 0x878d;
|
||||
public static final int GL_OP_SET_GE_EXT = 0x878c;
|
||||
public static final int GL_OP_MIN_EXT = 0x878b;
|
||||
public static final int GL_OP_MAX_EXT = 0x878a;
|
||||
public static final int GL_OP_FRAC_EXT = 0x8789;
|
||||
public static final int GL_OP_MADD_EXT = 0x8788;
|
||||
public static final int GL_OP_ADD_EXT = 0x8787;
|
||||
public static final int GL_OP_MUL_EXT = 0x8786;
|
||||
public static final int GL_OP_DOT4_EXT = 0x8785;
|
||||
public static final int GL_OP_DOT3_EXT = 0x8784;
|
||||
public static final int GL_OP_NEGATE_EXT = 0x8783;
|
||||
public static final int GL_OP_INDEX_EXT = 0x8782;
|
||||
public static final int GL_VERTEX_SHADER_BINDING_EXT = 0x8781;
|
||||
public static final int GL_VERTEX_SHADER_EXT = 0x8780;
|
||||
public static final int GL_VERTEX_SHADER_BINDING_EXT = 0x8781;
|
||||
public static final int GL_OP_INDEX_EXT = 0x8782;
|
||||
public static final int GL_OP_NEGATE_EXT = 0x8783;
|
||||
public static final int GL_OP_DOT3_EXT = 0x8784;
|
||||
public static final int GL_OP_DOT4_EXT = 0x8785;
|
||||
public static final int GL_OP_MUL_EXT = 0x8786;
|
||||
public static final int GL_OP_ADD_EXT = 0x8787;
|
||||
public static final int GL_OP_MADD_EXT = 0x8788;
|
||||
public static final int GL_OP_FRAC_EXT = 0x8789;
|
||||
public static final int GL_OP_MAX_EXT = 0x878a;
|
||||
public static final int GL_OP_MIN_EXT = 0x878b;
|
||||
public static final int GL_OP_SET_GE_EXT = 0x878c;
|
||||
public static final int GL_OP_SET_LT_EXT = 0x878d;
|
||||
public static final int GL_OP_CLAMP_EXT = 0x878e;
|
||||
public static final int GL_OP_FLOOR_EXT = 0x878f;
|
||||
public static final int GL_OP_ROUND_EXT = 0x8790;
|
||||
public static final int GL_OP_EXP_BASE_2_EXT = 0x8791;
|
||||
public static final int GL_OP_LOG_BASE_2_EXT = 0x8792;
|
||||
public static final int GL_OP_POWER_EXT = 0x8793;
|
||||
public static final int GL_OP_RECIP_EXT = 0x8794;
|
||||
public static final int GL_OP_RECIP_SQRT_EXT = 0x8795;
|
||||
public static final int GL_OP_SUB_EXT = 0x8796;
|
||||
public static final int GL_OP_CROSS_PRODUCT_EXT = 0x8797;
|
||||
public static final int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798;
|
||||
public static final int GL_OP_MOV_EXT = 0x8799;
|
||||
public static final int GL_OUTPUT_VERTEX_EXT = 0x879a;
|
||||
public static final int GL_OUTPUT_COLOR0_EXT = 0x879b;
|
||||
public static final int GL_OUTPUT_COLOR1_EXT = 0x879c;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879d;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879e;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879f;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87a0;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87a1;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87a2;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87a3;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87a4;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87a5;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87a6;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87a7;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87a8;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87a9;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87aa;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87ab;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87ac;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87ad;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87ae;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87af;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87b0;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87b1;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87b2;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87b3;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87b4;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87b5;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87b6;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87b7;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87b8;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87b9;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87ba;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87bb;
|
||||
public static final int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87bc;
|
||||
public static final int GL_OUTPUT_FOG_EXT = 0x87bd;
|
||||
public static final int GL_SCALAR_EXT = 0x87be;
|
||||
public static final int GL_VECTOR_EXT = 0x87bf;
|
||||
public static final int GL_MATRIX_EXT = 0x87c0;
|
||||
public static final int GL_VARIANT_EXT = 0x87c1;
|
||||
public static final int GL_INVARIANT_EXT = 0x87c2;
|
||||
public static final int GL_LOCAL_CONSTANT_EXT = 0x87c3;
|
||||
public static final int GL_LOCAL_EXT = 0x87c4;
|
||||
public static final int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87c5;
|
||||
public static final int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87c6;
|
||||
public static final int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87c7;
|
||||
public static final int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87c8;
|
||||
public static final int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87c9;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87ca;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87cb;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87cc;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87cd;
|
||||
public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87ce;
|
||||
public static final int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87cf;
|
||||
public static final int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87d0;
|
||||
public static final int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87d1;
|
||||
public static final int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87d2;
|
||||
public static final int GL_VERTEX_SHADER_LOCALS_EXT = 0x87d3;
|
||||
public static final int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87d4;
|
||||
public static final int GL_X_EXT = 0x87d5;
|
||||
public static final int GL_Y_EXT = 0x87d6;
|
||||
public static final int GL_Z_EXT = 0x87d7;
|
||||
public static final int GL_W_EXT = 0x87d8;
|
||||
public static final int GL_NEGATIVE_X_EXT = 0x87d9;
|
||||
public static final int GL_NEGATIVE_Y_EXT = 0x87da;
|
||||
public static final int GL_NEGATIVE_Z_EXT = 0x87db;
|
||||
public static final int GL_NEGATIVE_W_EXT = 0x87dc;
|
||||
public static final int GL_ZERO_EXT = 0x87dd;
|
||||
public static final int GL_ONE_EXT = 0x87de;
|
||||
public static final int GL_NEGATIVE_ONE_EXT = 0x87df;
|
||||
public static final int GL_NORMALIZED_RANGE_EXT = 0x87e0;
|
||||
public static final int GL_FULL_RANGE_EXT = 0x87e1;
|
||||
public static final int GL_CURRENT_VERTEX_EXT = 0x87e2;
|
||||
public static final int GL_MVP_MATRIX_EXT = 0x87e3;
|
||||
public static final int GL_VARIANT_VALUE_EXT = 0x87e4;
|
||||
public static final int GL_VARIANT_DATATYPE_EXT = 0x87e5;
|
||||
public static final int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87e6;
|
||||
public static final int GL_VARIANT_ARRAY_TYPE_EXT = 0x87e7;
|
||||
public static final int GL_VARIANT_ARRAY_EXT = 0x87e8;
|
||||
public static final int GL_VARIANT_ARRAY_POINTER_EXT = 0x87e9;
|
||||
public static final int GL_INVARIANT_VALUE_EXT = 0x87ea;
|
||||
public static final int GL_INVARIANT_DATATYPE_EXT = 0x87eb;
|
||||
public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87ec;
|
||||
public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ed;
|
||||
|
||||
private EXTVertexShader() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantFloatvEXT_pointer;
|
||||
public static void glBeginVertexShaderEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBeginVertexShaderEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglBeginVertexShaderEXT(function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglBeginVertexShaderEXT(long function_pointer);
|
||||
|
||||
public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantIntegervEXT_pointer;
|
||||
public static void glEndVertexShaderEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEndVertexShaderEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglEndVertexShaderEXT(function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglEndVertexShaderEXT(long function_pointer);
|
||||
|
||||
public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantBooleanvEXT_pointer;
|
||||
public static void glBindVertexShaderEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindVertexShaderEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglBindVertexShaderEXT(id, function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglBindVertexShaderEXT(int id, long function_pointer);
|
||||
|
||||
public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantFloatvEXT_pointer;
|
||||
public static int glGenVertexShadersEXT(int range) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenVertexShadersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantIntegervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantBooleanvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glGetVariantPointerEXT(int id, int value, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantPointervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVariantPointervEXT(id, value, result_size, function_pointer);
|
||||
int __result = nglGenVertexShadersEXT(range, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetVariantPointervEXT(int id, int value, int result_size, long function_pointer);
|
||||
private static native int nglGenVertexShadersEXT(int range, long function_pointer);
|
||||
|
||||
public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantFloatvEXT_pointer;
|
||||
public static void glDeleteVertexShaderEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDeleteVertexShaderEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglDeleteVertexShaderEXT(id, function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglDeleteVertexShaderEXT(int id, long function_pointer);
|
||||
|
||||
public static void glGetVariantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantIntegervEXT_pointer;
|
||||
public static void glShaderOp1EXT(int op, int res, int arg1) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp1EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglShaderOp1EXT(op, res, arg1, function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglShaderOp1EXT(int op, int res, int arg1, long function_pointer);
|
||||
|
||||
public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantBooleanvEXT_pointer;
|
||||
public static void glShaderOp2EXT(int op, int res, int arg1, int arg2) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp2EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
nglShaderOp2EXT(op, res, arg1, arg2, function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
private static native void nglShaderOp2EXT(int op, int res, int arg1, int arg2, long function_pointer);
|
||||
|
||||
public static boolean glIsVariantEnabledEXT(int id, int cap) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glIsVariantEnabledEXT_pointer;
|
||||
public static void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp3EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsVariantEnabledEXT(id, cap, function_pointer);
|
||||
nglShaderOp3EXT(op, res, arg1, arg2, arg3, function_pointer);
|
||||
}
|
||||
private static native void nglShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3, long function_pointer);
|
||||
|
||||
public static void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSwizzleEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSwizzleEXT(res, in, outX, outY, outZ, outW, function_pointer);
|
||||
}
|
||||
private static native void nglSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer);
|
||||
|
||||
public static void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glWriteMaskEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWriteMaskEXT(res, in, outX, outY, outZ, outW, function_pointer);
|
||||
}
|
||||
private static native void nglWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer);
|
||||
|
||||
public static void glInsertComponentEXT(int res, int src, int num) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glInsertComponentEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInsertComponentEXT(res, src, num, function_pointer);
|
||||
}
|
||||
private static native void nglInsertComponentEXT(int res, int src, int num, long function_pointer);
|
||||
|
||||
public static void glExtractComponentEXT(int res, int src, int num) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glExtractComponentEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglExtractComponentEXT(res, src, num, function_pointer);
|
||||
}
|
||||
private static native void nglExtractComponentEXT(int res, int src, int num, long function_pointer);
|
||||
|
||||
public static int glGenSymbolsEXT(int dataType, int storageType, int range, int components) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenSymbolsEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglGenSymbolsEXT(dataType, storageType, range, components, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsVariantEnabledEXT(int id, int cap, long function_pointer);
|
||||
private static native int nglGenSymbolsEXT(int dataType, int storageType, int range, int components, long function_pointer);
|
||||
|
||||
public static int glBindParameterEXT(int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindParameterEXT_pointer;
|
||||
public static void glSetInvariantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglBindParameterEXT(value, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
private static native int nglBindParameterEXT(int value, long function_pointer);
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static int glBindTextureUnitParameterEXT(int unit, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTextureUnitParameterEXT_pointer;
|
||||
public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglBindTextureUnitParameterEXT(unit, value, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
private static native int nglBindTextureUnitParameterEXT(int unit, int value, long function_pointer);
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static int glBindTexGenParameterEXT(int unit, int coord, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTexGenParameterEXT_pointer;
|
||||
public static void glVariantEXT(int id, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantbvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglBindTexGenParameterEXT(unit, coord, value, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantbvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native int nglBindTexGenParameterEXT(int unit, int coord, int value, long function_pointer);
|
||||
private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static int glBindMaterialParameterEXT(int face, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindMaterialParameterEXT_pointer;
|
||||
public static void glVariantEXT(int id, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantsvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglBindMaterialParameterEXT(face, value, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantsvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native int nglBindMaterialParameterEXT(int face, int value, long function_pointer);
|
||||
private static native void nglVariantsvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static int glBindLightParameterEXT(int light, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindLightParameterEXT_pointer;
|
||||
public static void glVariantEXT(int id, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglBindLightParameterEXT(light, value, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantivEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native int nglBindLightParameterEXT(int light, int value, long function_pointer);
|
||||
private static native void nglVariantivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glDisableVariantClientStateEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDisableVariantClientStateEXT_pointer;
|
||||
public static void glVariantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantfvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDisableVariantClientStateEXT(id, function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantfvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDisableVariantClientStateEXT(int id, long function_pointer);
|
||||
private static native void nglVariantfvEXT(int id, FloatBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glEnableVariantClientStateEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEnableVariantClientStateEXT_pointer;
|
||||
public static void glVariantuEXT(int id, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantubvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEnableVariantClientStateEXT(id, function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantubvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglEnableVariantClientStateEXT(int id, long function_pointer);
|
||||
private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantuEXT(int id, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantusvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantusvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantusvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantuEXT(int id, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantuivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantuivEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantuivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer;
|
||||
|
|
@ -305,204 +364,145 @@ public final class EXTVertexShader {
|
|||
}
|
||||
private static native void nglVariantPointerEXTBO(int id, int type, int stride, int pAddr_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glVariantuEXT(int id, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantuivEXT_pointer;
|
||||
public static void glEnableVariantClientStateEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEnableVariantClientStateEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantuivEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
nglEnableVariantClientStateEXT(id, function_pointer);
|
||||
}
|
||||
private static native void nglVariantuivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
private static native void nglEnableVariantClientStateEXT(int id, long function_pointer);
|
||||
|
||||
public static void glVariantuEXT(int id, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantusvEXT_pointer;
|
||||
public static void glDisableVariantClientStateEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDisableVariantClientStateEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantusvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
nglDisableVariantClientStateEXT(id, function_pointer);
|
||||
}
|
||||
private static native void nglVariantusvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
private static native void nglDisableVariantClientStateEXT(int id, long function_pointer);
|
||||
|
||||
public static void glVariantuEXT(int id, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantubvEXT_pointer;
|
||||
public static int glBindLightParameterEXT(int light, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindLightParameterEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantubvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantfvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantfvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantfvEXT(int id, FloatBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantEXT(int id, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantivEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantivEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantEXT(int id, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantsvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantsvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantsvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glVariantEXT(int id, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantbvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglVariantbvEXT(id, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glSetInvariantEXT(int id, FloatBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static int glGenSymbolsEXT(int dataType, int storageType, int range, int components) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenSymbolsEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglGenSymbolsEXT(dataType, storageType, range, components, function_pointer);
|
||||
int __result = nglBindLightParameterEXT(light, value, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglGenSymbolsEXT(int dataType, int storageType, int range, int components, long function_pointer);
|
||||
private static native int nglBindLightParameterEXT(int light, int value, long function_pointer);
|
||||
|
||||
public static void glExtractComponentEXT(int res, int src, int num) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glExtractComponentEXT_pointer;
|
||||
public static int glBindMaterialParameterEXT(int face, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindMaterialParameterEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglExtractComponentEXT(res, src, num, function_pointer);
|
||||
}
|
||||
private static native void nglExtractComponentEXT(int res, int src, int num, long function_pointer);
|
||||
|
||||
public static void glInsertComponentEXT(int res, int src, int num) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glInsertComponentEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInsertComponentEXT(res, src, num, function_pointer);
|
||||
}
|
||||
private static native void nglInsertComponentEXT(int res, int src, int num, long function_pointer);
|
||||
|
||||
public static void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glWriteMaskEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWriteMaskEXT(res, in, outX, outY, outZ, outW, function_pointer);
|
||||
}
|
||||
private static native void nglWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer);
|
||||
|
||||
public static void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSwizzleEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSwizzleEXT(res, in, outX, outY, outZ, outW, function_pointer);
|
||||
}
|
||||
private static native void nglSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer);
|
||||
|
||||
public static void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp3EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglShaderOp3EXT(op, res, arg1, arg2, arg3, function_pointer);
|
||||
}
|
||||
private static native void nglShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3, long function_pointer);
|
||||
|
||||
public static void glShaderOp2EXT(int op, int res, int arg1, int arg2) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp2EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglShaderOp2EXT(op, res, arg1, arg2, function_pointer);
|
||||
}
|
||||
private static native void nglShaderOp2EXT(int op, int res, int arg1, int arg2, long function_pointer);
|
||||
|
||||
public static void glShaderOp1EXT(int op, int res, int arg1) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp1EXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglShaderOp1EXT(op, res, arg1, function_pointer);
|
||||
}
|
||||
private static native void nglShaderOp1EXT(int op, int res, int arg1, long function_pointer);
|
||||
|
||||
public static void glDeleteVertexShaderEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDeleteVertexShaderEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDeleteVertexShaderEXT(id, function_pointer);
|
||||
}
|
||||
private static native void nglDeleteVertexShaderEXT(int id, long function_pointer);
|
||||
|
||||
public static int glGenVertexShadersEXT(int range) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenVertexShadersEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglGenVertexShadersEXT(range, function_pointer);
|
||||
int __result = nglBindMaterialParameterEXT(face, value, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglGenVertexShadersEXT(int range, long function_pointer);
|
||||
private static native int nglBindMaterialParameterEXT(int face, int value, long function_pointer);
|
||||
|
||||
public static void glBindVertexShaderEXT(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindVertexShaderEXT_pointer;
|
||||
public static int glBindTexGenParameterEXT(int unit, int coord, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTexGenParameterEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindVertexShaderEXT(id, function_pointer);
|
||||
int __result = nglBindTexGenParameterEXT(unit, coord, value, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglBindVertexShaderEXT(int id, long function_pointer);
|
||||
private static native int nglBindTexGenParameterEXT(int unit, int coord, int value, long function_pointer);
|
||||
|
||||
public static void glEndVertexShaderEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEndVertexShaderEXT_pointer;
|
||||
public static int glBindTextureUnitParameterEXT(int unit, int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTextureUnitParameterEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndVertexShaderEXT(function_pointer);
|
||||
int __result = nglBindTextureUnitParameterEXT(unit, value, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglEndVertexShaderEXT(long function_pointer);
|
||||
private static native int nglBindTextureUnitParameterEXT(int unit, int value, long function_pointer);
|
||||
|
||||
public static void glBeginVertexShaderEXT() {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBeginVertexShaderEXT_pointer;
|
||||
public static int glBindParameterEXT(int value) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindParameterEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginVertexShaderEXT(function_pointer);
|
||||
int __result = nglBindParameterEXT(value, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglBeginVertexShaderEXT(long function_pointer);
|
||||
private static native int nglBindParameterEXT(int value, long function_pointer);
|
||||
|
||||
public static boolean glIsVariantEnabledEXT(int id, int cap) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glIsVariantEnabledEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsVariantEnabledEXT(id, cap, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsVariantEnabledEXT(int id, int cap, long function_pointer);
|
||||
|
||||
public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantBooleanvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetVariantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantIntegervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantFloatvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetVariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glGetVariantPointerEXT(int id, int value, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantPointervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVariantPointervEXT(id, value, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetVariantPointervEXT(int id, int value, int result_size, long function_pointer);
|
||||
|
||||
public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantBooleanvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantIntegervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantFloatvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetInvariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantBooleanvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantIntegervEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantIntegervEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer);
|
||||
|
||||
public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pbData) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantFloatvEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(pbData, 4);
|
||||
nglGetLocalConstantFloatvEXT(id, value, pbData, pbData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetLocalConstantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,24 +7,31 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class EXTVertexWeighting {
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850f;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850e;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850d;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850c;
|
||||
public static final int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850b;
|
||||
public static final int GL_MODELVIEW1_EXT = 0x850a;
|
||||
public static final int GL_MODELVIEW0_EXT = 0x1700;
|
||||
public static final int GL_VERTEX_WEIGHTING_EXT = 0x8509;
|
||||
public static final int GL_MODELVIEW1_MATRIX_EXT = 0x8506;
|
||||
public static final int GL_MODELVIEW0_MATRIX_EXT = 0xba6;
|
||||
public static final int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502;
|
||||
public static final int GL_MODELVIEW0_STACK_DEPTH_EXT = 0xba3;
|
||||
public static final int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502;
|
||||
public static final int GL_MODELVIEW0_MATRIX_EXT = 0xba6;
|
||||
public static final int GL_MODELVIEW1_MATRIX_EXT = 0x8506;
|
||||
public static final int GL_VERTEX_WEIGHTING_EXT = 0x8509;
|
||||
public static final int GL_MODELVIEW0_EXT = 0x1700;
|
||||
public static final int GL_MODELVIEW1_EXT = 0x850a;
|
||||
public static final int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850b;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850c;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850d;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850e;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850f;
|
||||
public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510;
|
||||
|
||||
private EXTVertexWeighting() {
|
||||
}
|
||||
|
||||
|
||||
public static void glVertexWeightfEXT(float weight) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexWeightfEXT(weight, function_pointer);
|
||||
}
|
||||
private static native void nglVertexWeightfEXT(float weight, long function_pointer);
|
||||
|
||||
public static void glVertexWeightPointerEXT(int size, int stride, FloatBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightPointerEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -41,11 +48,4 @@ public final class EXTVertexWeighting {
|
|||
nglVertexWeightPointerEXTBO(size, type, stride, pPointer_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglVertexWeightPointerEXTBO(int size, int type, int stride, int pPointer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glVertexWeightfEXT(float weight) {
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightfEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexWeightfEXT(weight, function_pointer);
|
||||
}
|
||||
private static native void nglVertexWeightfEXT(float weight, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,91 +7,77 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class GL12 {
|
||||
public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846e;
|
||||
public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846d;
|
||||
public static final int GL_MAX_ELEMENTS_INDICES = 0x80e9;
|
||||
public static final int GL_MAX_ELEMENTS_VERTICES = 0x80e8;
|
||||
public static final int GL_TEXTURE_MAX_LEVEL = 0x813d;
|
||||
public static final int GL_TEXTURE_BASE_LEVEL = 0x813c;
|
||||
public static final int GL_TEXTURE_MAX_LOD = 0x813b;
|
||||
public static final int GL_TEXTURE_MIN_LOD = 0x813a;
|
||||
public static final int GL_CLAMP_TO_EDGE = 0x812f;
|
||||
public static final int GL_SEPARATE_SPECULAR_COLOR = 0x81fa;
|
||||
public static final int GL_SINGLE_COLOR = 0x81f9;
|
||||
public static final int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81f8;
|
||||
public static final int GL_RESCALE_NORMAL = 0x803a;
|
||||
public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
|
||||
public static final int GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
|
||||
public static final int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
|
||||
public static final int GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
|
||||
public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
|
||||
public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
|
||||
public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
|
||||
public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
|
||||
public static final int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
|
||||
public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
|
||||
public static final int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
|
||||
public static final int GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
|
||||
public static final int GL_BGRA = 0x80e1;
|
||||
public static final int GL_BGR = 0x80e0;
|
||||
public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
|
||||
public static final int GL_TEXTURE_WRAP_R = 0x8072;
|
||||
public static final int GL_TEXTURE_DEPTH = 0x8071;
|
||||
public static final int GL_PROXY_TEXTURE_3D = 0x8070;
|
||||
public static final int GL_TEXTURE_3D = 0x806f;
|
||||
public static final int GL_UNPACK_IMAGE_HEIGHT = 0x806e;
|
||||
public static final int GL_UNPACK_SKIP_IMAGES = 0x806d;
|
||||
public static final int GL_PACK_IMAGE_HEIGHT = 0x806c;
|
||||
public static final int GL_PACK_SKIP_IMAGES = 0x806b;
|
||||
public static final int GL_TABLE_TOO_LARGE = 0x8031;
|
||||
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_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_RESCALE_NORMAL = 0x803a;
|
||||
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_CLAMP_TO_EDGE = 0x812f;
|
||||
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_MAX_ELEMENTS_VERTICES = 0x80e8;
|
||||
public static final int GL_MAX_ELEMENTS_INDICES = 0x80e9;
|
||||
public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846d;
|
||||
public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846e;
|
||||
|
||||
private GL12() {
|
||||
}
|
||||
|
||||
|
||||
public static void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glCopyTexSubImage3D_pointer;
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height, function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height, long function_pointer);
|
||||
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position(), function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
private static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices, int indices_position, long function_pointer);
|
||||
public static void glDrawRangeElements(int mode, int start, int end, int count, int type, int indices_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
GLChecks.ensureElementVBOenabled();
|
||||
nglDrawRangeElementsBO(mode, start, end, count, type, indices_buffer_offset, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
private static native void nglDrawRangeElementsBO(int mode, int start, int end, int count, int type, int indices_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer pixels) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
|
||||
|
|
@ -134,33 +120,47 @@ public final class GL12 {
|
|||
}
|
||||
private static native void nglTexImage3DBO(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices, int indices_position, long function_pointer);
|
||||
public static void glDrawRangeElements(int mode, int start, int end, int count, int type, int indices_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureElementVBOenabled();
|
||||
nglDrawRangeElementsBO(mode, start, end, count, type, indices_buffer_offset, function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglDrawRangeElementsBO(int mode, int start, int end, int count, int type, int indices_buffer_offset, long function_pointer);
|
||||
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_position, long function_pointer);
|
||||
public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) {
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glCopyTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height, function_pointer);
|
||||
}
|
||||
private static native void nglCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,372 +7,120 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class GL13 {
|
||||
public static final int GL_CLAMP_TO_BORDER = 0x812d;
|
||||
public static final int GL_DOT3_RGBA = 0x86af;
|
||||
public static final int GL_DOT3_RGB = 0x86ae;
|
||||
public static final int GL_PREVIOUS = 0x8578;
|
||||
public static final int GL_PRIMARY_COLOR = 0x8577;
|
||||
public static final int GL_CONSTANT = 0x8576;
|
||||
public static final int GL_SUBTRACT = 0x84e7;
|
||||
public static final int GL_INTERPOLATE = 0x8575;
|
||||
public static final int GL_ADD_SIGNED = 0x8574;
|
||||
public static final int GL_RGB_SCALE = 0x8573;
|
||||
public static final int GL_OPERAND2_ALPHA = 0x859a;
|
||||
public static final int GL_OPERAND1_ALPHA = 0x8599;
|
||||
public static final int GL_OPERAND0_ALPHA = 0x8598;
|
||||
public static final int GL_OPERAND2_RGB = 0x8592;
|
||||
public static final int GL_OPERAND1_RGB = 0x8591;
|
||||
public static final int GL_OPERAND0_RGB = 0x8590;
|
||||
public static final int GL_SOURCE2_ALPHA = 0x858a;
|
||||
public static final int GL_SOURCE1_ALPHA = 0x8589;
|
||||
public static final int GL_SOURCE0_ALPHA = 0x8588;
|
||||
public static final int GL_SOURCE2_RGB = 0x8582;
|
||||
public static final int GL_SOURCE1_RGB = 0x8581;
|
||||
public static final int GL_SOURCE0_RGB = 0x8580;
|
||||
public static final int GL_COMBINE_ALPHA = 0x8572;
|
||||
public static final int GL_COMBINE_RGB = 0x8571;
|
||||
public static final int GL_COMBINE = 0x8570;
|
||||
public static final int GL_TRANSPOSE_COLOR_MATRIX = 0x84e6;
|
||||
public static final int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84e5;
|
||||
public static final int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84e4;
|
||||
public static final int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84e3;
|
||||
public static final int GL_MULTISAMPLE_BIT = 0x20000000;
|
||||
public static final int GL_SAMPLE_COVERAGE_INVERT = 0x80ab;
|
||||
public static final int GL_SAMPLE_COVERAGE_VALUE = 0x80aa;
|
||||
public static final int GL_SAMPLES = 0x80a9;
|
||||
public static final int GL_SAMPLE_BUFFERS = 0x80a8;
|
||||
public static final int GL_SAMPLE_COVERAGE = 0x80a0;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809f;
|
||||
public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809e;
|
||||
public static final int GL_MULTISAMPLE = 0x809d;
|
||||
public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86a3;
|
||||
public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86a2;
|
||||
public static final int GL_TEXTURE_COMPRESSED = 0x86a1;
|
||||
public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86a0;
|
||||
public static final int GL_TEXTURE_COMPRESSION_HINT = 0x84ef;
|
||||
public static final int GL_COMPRESSED_RGBA = 0x84ee;
|
||||
public static final int GL_COMPRESSED_RGB = 0x84ed;
|
||||
public static final int GL_COMPRESSED_INTENSITY = 0x84ec;
|
||||
public static final int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84eb;
|
||||
public static final int GL_COMPRESSED_LUMINANCE = 0x84ea;
|
||||
public static final int GL_COMPRESSED_ALPHA = 0x84e9;
|
||||
public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851c;
|
||||
public static final int GL_PROXY_TEXTURE_CUBE_MAP = 0x851b;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851a;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
|
||||
public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
|
||||
public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514;
|
||||
public static final int GL_TEXTURE_CUBE_MAP = 0x8513;
|
||||
public static final int GL_REFLECTION_MAP = 0x8512;
|
||||
public static final int GL_NORMAL_MAP = 0x8511;
|
||||
public static final int GL_MAX_TEXTURE_UNITS = 0x84e2;
|
||||
public static final int GL_CLIENT_ACTIVE_TEXTURE = 0x84e1;
|
||||
public static final int GL_ACTIVE_TEXTURE = 0x84e0;
|
||||
public static final int GL_TEXTURE31 = 0x84df;
|
||||
public static final int GL_TEXTURE30 = 0x84de;
|
||||
public static final int GL_TEXTURE29 = 0x84dd;
|
||||
public static final int GL_TEXTURE28 = 0x84dc;
|
||||
public static final int GL_TEXTURE27 = 0x84db;
|
||||
public static final int GL_TEXTURE26 = 0x84da;
|
||||
public static final int GL_TEXTURE25 = 0x84d9;
|
||||
public static final int GL_TEXTURE24 = 0x84d8;
|
||||
public static final int GL_TEXTURE23 = 0x84d7;
|
||||
public static final int GL_TEXTURE22 = 0x84d6;
|
||||
public static final int GL_TEXTURE21 = 0x84d5;
|
||||
public static final int GL_TEXTURE20 = 0x84d4;
|
||||
public static final int GL_TEXTURE19 = 0x84d3;
|
||||
public static final int GL_TEXTURE18 = 0x84d2;
|
||||
public static final int GL_TEXTURE17 = 0x84d1;
|
||||
public static final int GL_TEXTURE16 = 0x84d0;
|
||||
public static final int GL_TEXTURE15 = 0x84cf;
|
||||
public static final int GL_TEXTURE14 = 0x84ce;
|
||||
public static final int GL_TEXTURE13 = 0x84cd;
|
||||
public static final int GL_TEXTURE12 = 0x84cc;
|
||||
public static final int GL_TEXTURE11 = 0x84cb;
|
||||
public static final int GL_TEXTURE10 = 0x84ca;
|
||||
public static final int GL_TEXTURE9 = 0x84c9;
|
||||
public static final int GL_TEXTURE8 = 0x84c8;
|
||||
public static final int GL_TEXTURE7 = 0x84c7;
|
||||
public static final int GL_TEXTURE6 = 0x84c6;
|
||||
public static final int GL_TEXTURE5 = 0x84c5;
|
||||
public static final int GL_TEXTURE4 = 0x84c4;
|
||||
public static final int GL_TEXTURE3 = 0x84c3;
|
||||
public static final int GL_TEXTURE2 = 0x84c2;
|
||||
public static final int GL_TEXTURE1 = 0x84c1;
|
||||
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;
|
||||
|
||||
private GL13() {
|
||||
}
|
||||
|
||||
|
||||
public static void glSampleCoverage(float value, boolean invert) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glSampleCoverage_pointer;
|
||||
public static void glActiveTexture(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glActiveTexture_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSampleCoverage(value, invert, function_pointer);
|
||||
nglActiveTexture(texture, function_pointer);
|
||||
}
|
||||
private static native void nglSampleCoverage(float value, boolean invert, long function_pointer);
|
||||
private static native void nglActiveTexture(int texture, long function_pointer);
|
||||
|
||||
public static void glMultTransposeMatrix(FloatBuffer m) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultTransposeMatrixf_pointer;
|
||||
public static void glClientActiveTexture(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glClientActiveTexture_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(m, 16);
|
||||
nglMultTransposeMatrixf(m, m.position(), function_pointer);
|
||||
nglClientActiveTexture(texture, function_pointer);
|
||||
}
|
||||
private static native void nglMultTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
||||
|
||||
public static void glLoadTransposeMatrix(FloatBuffer m) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glLoadTransposeMatrixf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(m, 16);
|
||||
nglLoadTransposeMatrixf(m, m.position(), function_pointer);
|
||||
}
|
||||
private static native void nglLoadTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4f(int target, float s, float t, float r, float q) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord4f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4f(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4f(int target, float s, float t, float r, float q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3f(int target, float s, float t, float r) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord3f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3f(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3f(int target, float s, float t, float r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2f(int target, float s, float t) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord2f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2f(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2f(int target, float s, float t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1f(int target, float s) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord1f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1f(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1f(int target, float s, long function_pointer);
|
||||
|
||||
public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position(), function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, IntBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, ShortBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImage(int target, int lod, Buffer img, int img_position, long function_pointer);
|
||||
public static void glGetCompressedTexImage(int target, int lod, int img_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOenabled();
|
||||
nglGetCompressedTexImageBO(target, lod, img_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageBO(int target, int lod, int img_buffer_offset, long function_pointer);
|
||||
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage2DBO(target, level, xoffset, yoffset, width, height, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, Buffer data, int data_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage1DBO(target, level, xoffset, width, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage3DBO(target, level, internalformat, width, height, depth, border, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage3DBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data, int data_position, long function_pointer);
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage2DBO(target, level, internalformat, width, height, border, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
private static native void nglClientActiveTexture(int texture, long function_pointer);
|
||||
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer;
|
||||
|
|
@ -411,17 +159,269 @@ public final class GL13 {
|
|||
}
|
||||
private static native void nglCompressedTexImage1DBO(int target, int level, int internalformat, int width, int border, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glClientActiveTexture(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glClientActiveTexture_pointer;
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglClientActiveTexture(texture, function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
private static native void nglClientActiveTexture(int texture, long function_pointer);
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data, int data_position, long function_pointer);
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage2DBO(target, level, internalformat, width, height, border, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glActiveTexture(int texture) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glActiveTexture_pointer;
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglActiveTexture(texture, function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
private static native void nglActiveTexture(int texture, long function_pointer);
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexImage3DBO(target, level, internalformat, width, height, depth, border, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage3DBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, Buffer data, int data_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage1DBO(target, level, xoffset, width, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage2DBO(target, level, xoffset, yoffset, width, height, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
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_position, long function_pointer);
|
||||
public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureUnpackPBOenabled();
|
||||
nglCompressedTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position(), function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, IntBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, ShortBuffer img) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImage(int target, int lod, Buffer img, int img_position, long function_pointer);
|
||||
public static void glGetCompressedTexImage(int target, int lod, int img_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensurePackPBOenabled();
|
||||
nglGetCompressedTexImageBO(target, lod, img_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglGetCompressedTexImageBO(int target, int lod, int img_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1f(int target, float s) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord1f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1f(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1f(int target, float s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2f(int target, float s, float t) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord2f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2f(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2f(int target, float s, float t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3f(int target, float s, float t, float r) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord3f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3f(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3f(int target, float s, float t, float r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4f(int target, float s, float t, float r, float q) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord4f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4f(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4f(int target, float s, float t, float r, float q, long function_pointer);
|
||||
|
||||
public static void glLoadTransposeMatrix(FloatBuffer m) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glLoadTransposeMatrixf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(m, 16);
|
||||
nglLoadTransposeMatrixf(m, m.position(), function_pointer);
|
||||
}
|
||||
private static native void nglLoadTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
||||
|
||||
public static void glMultTransposeMatrix(FloatBuffer m) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glMultTransposeMatrixf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(m, 16);
|
||||
nglMultTransposeMatrixf(m, m.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMultTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer);
|
||||
|
||||
public static void glSampleCoverage(float value, boolean invert) {
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glSampleCoverage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSampleCoverage(value, invert, function_pointer);
|
||||
}
|
||||
private static native void nglSampleCoverage(float value, boolean invert, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,84 +7,150 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class GL14 {
|
||||
public static final int GL_GL_MIRRORED_REPEAT = 0x8370;
|
||||
public static final int GL_MAX_TEXTURE_LOD_BIAS = 0x84fd;
|
||||
public static final int GL_TEXTURE_LOD_BIAS = 0x8501;
|
||||
public static final int GL_TEXTURE_FILTER_CONTROL = 0x8500;
|
||||
public static final int GL_DECR_WRAP = 0x8508;
|
||||
public static final int GL_INCR_WRAP = 0x8507;
|
||||
public static final int GL_BLEND_SRC_ALPHA = 0x80cb;
|
||||
public static final int GL_BLEND_DST_ALPHA = 0x80ca;
|
||||
public static final int GL_BLEND_SRC_RGB = 0x80c9;
|
||||
public static final int GL_BLEND_DST_RGB = 0x80c8;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY = 0x845e;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845d;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845c;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845b;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845a;
|
||||
public static final int GL_CURRENT_SECONDARY_COLOR = 0x8459;
|
||||
public static final int GL_COLOR_SUM = 0x8458;
|
||||
public static final int GL_POINT_DISTANCE_ATTENUATION = 0x8129;
|
||||
public static final int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128;
|
||||
public static final int GL_POINT_SIZE_MAX = 0x8127;
|
||||
public static final int GL_POINT_SIZE_MIN = 0x8126;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY = 0x8457;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454;
|
||||
public static final int GL_CURRENT_FOG_COORDINATE = 0x8453;
|
||||
public static final int GL_FRAGMENT_DEPTH = 0x8452;
|
||||
public static final int GL_FOG_COORDINATE = 0x8451;
|
||||
public static final int GL_FOG_COORDINATE_SOURCE = 0x8450;
|
||||
public static final int GL_COMPARE_R_TO_TEXTURE = 0x884e;
|
||||
public static final int GL_TEXTURE_COMPARE_FUNC = 0x884d;
|
||||
public static final int GL_TEXTURE_COMPARE_MODE = 0x884c;
|
||||
public static final int GL_DEPTH_TEXTURE_MODE = 0x884b;
|
||||
public static final int GL_TEXTURE_DEPTH_SIZE = 0x884a;
|
||||
public static final int GL_DEPTH_COMPONENT32 = 0x81a7;
|
||||
public static final int GL_DEPTH_COMPONENT24 = 0x81a6;
|
||||
public static final int GL_DEPTH_COMPONENT16 = 0x81a5;
|
||||
public static final int GL_GENERATE_MIPMAP_HINT = 0x8192;
|
||||
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;
|
||||
|
||||
private GL14() {
|
||||
}
|
||||
|
||||
|
||||
public static void glWindowPos3i(int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3i_pointer;
|
||||
public static void glBlendEquation(int mode) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendEquation_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3i(x, y, z, function_pointer);
|
||||
nglBlendEquation(mode, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3i(int x, int y, int z, long function_pointer);
|
||||
private static native void nglBlendEquation(int mode, long function_pointer);
|
||||
|
||||
public static void glWindowPos3f(float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3f_pointer;
|
||||
public static void glBlendColor(float red, float green, float blue, float alpha) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendColor_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos3f(x, y, z, function_pointer);
|
||||
nglBlendColor(red, green, blue, alpha, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos3f(float x, float y, float z, long function_pointer);
|
||||
private static native void nglBlendColor(float red, float green, float blue, float alpha, long function_pointer);
|
||||
|
||||
public static void glWindowPos2i(int x, int y) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2i_pointer;
|
||||
public static void glFogCoordf(float coord) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos2i(x, y, function_pointer);
|
||||
nglFogCoordf(coord, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos2i(int x, int y, long function_pointer);
|
||||
private static native void nglFogCoordf(float coord, long function_pointer);
|
||||
|
||||
public static void glWindowPos2f(float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2f_pointer;
|
||||
public static void glFogCoordPointer(int stride, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWindowPos2f(x, y, function_pointer);
|
||||
GLChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
GLChecks.getReferences().GL14_glFogCoordPointer_data = data;
|
||||
nglFogCoordPointer(GL11.GL_FLOAT, stride, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglWindowPos2f(float x, float y, long function_pointer);
|
||||
private static native void nglFogCoordPointer(int type, int stride, Buffer data, int data_position, long function_pointer);
|
||||
public static void glFogCoordPointer(int type, int stride, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureArrayVBOenabled();
|
||||
nglFogCoordPointerBO(type, stride, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordPointerBO(int type, int stride, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendFuncSeparate_pointer;
|
||||
public static void glMultiDrawArrays(int mode, IntBuffer piFirst, IntBuffer piCount) {
|
||||
if (piFirst.remaining() != piCount.remaining()) {
|
||||
throw new IllegalArgumentException("piFirst.remaining() != piCount.remaining()");
|
||||
}
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glMultiDrawArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha, function_pointer);
|
||||
BufferChecks.checkDirect(piFirst);
|
||||
BufferChecks.checkDirect(piCount);
|
||||
nglMultiDrawArrays(mode, piFirst, piFirst.position(), piCount, piCount.position(), (piFirst.remaining()), function_pointer);
|
||||
}
|
||||
private static native void nglBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha, long function_pointer);
|
||||
private static native void nglMultiDrawArrays(int mode, IntBuffer piFirst, int piFirst_position, IntBuffer piCount, int piCount_position, int primcount, long function_pointer);
|
||||
|
||||
public static void glPointParameteri(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameteri_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameteri(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteri(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glPointParameterf(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameterf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterf(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterf(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glPointParameter(int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameteriv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglPointParameteriv(pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteriv(int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glPointParameter(int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameterfv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglPointParameterfv(pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfv(int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3b(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3b_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3b(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3b(byte red, byte green, byte blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3f(float red, float green, float blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3f(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3f(float red, float green, float blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3ub(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3ub_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3ub(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3ub(byte red, byte green, byte blue, long function_pointer);
|
||||
|
||||
public static void glSecondaryColorPointer(int size, int stride, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColorPointer_pointer;
|
||||
|
|
@ -109,104 +175,38 @@ public final class GL14 {
|
|||
}
|
||||
private static native void nglSecondaryColorPointerBO(int size, int type, int stride, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3ub(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3ub_pointer;
|
||||
public static void glBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendFuncSeparate_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3ub(red, green, blue, function_pointer);
|
||||
nglBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3ub(byte red, byte green, byte blue, long function_pointer);
|
||||
private static native void nglBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3f(float red, float green, float blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3f_pointer;
|
||||
public static void glWindowPos2f(float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3f(red, green, blue, function_pointer);
|
||||
nglWindowPos2f(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3f(float red, float green, float blue, long function_pointer);
|
||||
private static native void nglWindowPos2f(float x, float y, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3b(byte red, byte green, byte blue) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3b_pointer;
|
||||
public static void glWindowPos2i(int x, int y) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2i_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3b(red, green, blue, function_pointer);
|
||||
nglWindowPos2i(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3b(byte red, byte green, byte blue, long function_pointer);
|
||||
private static native void nglWindowPos2i(int x, int y, long function_pointer);
|
||||
|
||||
public static void glPointParameter(int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameterfv_pointer;
|
||||
public static void glWindowPos3f(float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3f_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglPointParameterfv(pname, params, params.position(), function_pointer);
|
||||
nglWindowPos3f(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterfv(int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglWindowPos3f(float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glPointParameter(int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameteriv_pointer;
|
||||
public static void glWindowPos3i(int x, int y, int z) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3i_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglPointParameteriv(pname, params, params.position(), function_pointer);
|
||||
nglWindowPos3i(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteriv(int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glPointParameterf(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameterf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameterf(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterf(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glPointParameteri(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glPointParameteri_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameteri(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteri(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glMultiDrawArrays(int mode, IntBuffer piFirst, IntBuffer piCount) {
|
||||
if (piFirst.remaining() != piCount.remaining()) {
|
||||
throw new IllegalArgumentException("piFirst.remaining() != piCount.remaining()");
|
||||
}
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glMultiDrawArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(piFirst);
|
||||
BufferChecks.checkDirect(piCount);
|
||||
nglMultiDrawArrays(mode, piFirst, piFirst.position(), piCount, piCount.position(), (piFirst.remaining()), function_pointer);
|
||||
}
|
||||
private static native void nglMultiDrawArrays(int mode, IntBuffer piFirst, int piFirst_position, IntBuffer piCount, int piCount_position, int primcount, long function_pointer);
|
||||
|
||||
public static void glFogCoordPointer(int stride, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
GLChecks.getReferences().GL14_glFogCoordPointer_data = data;
|
||||
nglFogCoordPointer(GL11.GL_FLOAT, stride, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordPointer(int type, int stride, Buffer data, int data_position, long function_pointer);
|
||||
public static void glFogCoordPointer(int type, int stride, int data_buffer_offset) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
GLChecks.ensureArrayVBOenabled();
|
||||
nglFogCoordPointerBO(type, stride, data_buffer_offset, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordPointerBO(int type, int stride, int data_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glFogCoordf(float coord) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glFogCoordf_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFogCoordf(coord, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordf(float coord, long function_pointer);
|
||||
|
||||
public static void glBlendColor(float red, float green, float blue, float alpha) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendColor_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBlendColor(red, green, blue, alpha, function_pointer);
|
||||
}
|
||||
private static native void nglBlendColor(float red, float green, float blue, float alpha, long function_pointer);
|
||||
|
||||
public static void glBlendEquation(int mode) {
|
||||
long function_pointer = GLContext.getCapabilities().GL14_glBlendEquation_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBlendEquation(mode, function_pointer);
|
||||
}
|
||||
private static native void nglBlendEquation(int mode, long function_pointer);
|
||||
private static native void nglWindowPos3i(int x, int y, int z, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,207 +7,79 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class GL15 {
|
||||
public static final int GL_QUERY_RESULT_AVAILABLE = 0x8867;
|
||||
public static final int GL_QUERY_RESULT = 0x8866;
|
||||
public static final int GL_CURRENT_QUERY = 0x8865;
|
||||
public static final int GL_QUERY_COUNTER_BITS = 0x8864;
|
||||
public static final int GL_SAMPLES_PASSED = 0x8914;
|
||||
public static final int GL_BUFFER_MAP_POINTER = 0x88bd;
|
||||
public static final int GL_BUFFER_MAPPED = 0x88bc;
|
||||
public static final int GL_BUFFER_ACCESS = 0x88bb;
|
||||
public static final int GL_BUFFER_USAGE = 0x8765;
|
||||
public static final int GL_BUFFER_SIZE = 0x8764;
|
||||
public static final int GL_READ_WRITE = 0x88ba;
|
||||
public static final int GL_WRITE_ONLY = 0x88b9;
|
||||
public static final int GL_READ_ONLY = 0x88b8;
|
||||
public static final int GL_DYNAMIC_COPY = 0x88ea;
|
||||
public static final int GL_DYNAMIC_READ = 0x88e9;
|
||||
public static final int GL_DYNAMIC_DRAW = 0x88e8;
|
||||
public static final int GL_STATIC_COPY = 0x88e6;
|
||||
public static final int GL_STATIC_READ = 0x88e5;
|
||||
public static final int GL_STATIC_DRAW = 0x88e4;
|
||||
public static final int GL_STREAM_COPY = 0x88e2;
|
||||
public static final int GL_STREAM_READ = 0x88e1;
|
||||
public static final int GL_STREAM_DRAW = 0x88e0;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889f;
|
||||
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889e;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889d;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889c;
|
||||
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889b;
|
||||
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889a;
|
||||
public static final int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899;
|
||||
public static final int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898;
|
||||
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897;
|
||||
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
|
||||
public static final int GL_ARRAY_BUFFER_BINDING = 0x8894;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER = 0x8893;
|
||||
public static final int GL_ARRAY_BUFFER = 0x8892;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER = 0x8893;
|
||||
public static final int GL_ARRAY_BUFFER_BINDING = 0x8894;
|
||||
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
|
||||
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896;
|
||||
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897;
|
||||
public static final int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898;
|
||||
public static final int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899;
|
||||
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889a;
|
||||
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889b;
|
||||
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889c;
|
||||
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889d;
|
||||
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889e;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889f;
|
||||
public static final int GL_STREAM_DRAW = 0x88e0;
|
||||
public static final int GL_STREAM_READ = 0x88e1;
|
||||
public static final int GL_STREAM_COPY = 0x88e2;
|
||||
public static final int GL_STATIC_DRAW = 0x88e4;
|
||||
public static final int GL_STATIC_READ = 0x88e5;
|
||||
public static final int GL_STATIC_COPY = 0x88e6;
|
||||
public static final int GL_DYNAMIC_DRAW = 0x88e8;
|
||||
public static final int GL_DYNAMIC_READ = 0x88e9;
|
||||
public static final int GL_DYNAMIC_COPY = 0x88ea;
|
||||
public static final int GL_READ_ONLY = 0x88b8;
|
||||
public static final int GL_WRITE_ONLY = 0x88b9;
|
||||
public static final int GL_READ_WRITE = 0x88ba;
|
||||
public static final int GL_BUFFER_SIZE = 0x8764;
|
||||
public static final int GL_BUFFER_USAGE = 0x8765;
|
||||
public static final int GL_BUFFER_ACCESS = 0x88bb;
|
||||
public static final int GL_BUFFER_MAPPED = 0x88bc;
|
||||
public static final int GL_BUFFER_MAP_POINTER = 0x88bd;
|
||||
public static final int GL_SAMPLES_PASSED = 0x8914;
|
||||
public static final int GL_QUERY_COUNTER_BITS = 0x8864;
|
||||
public static final int GL_CURRENT_QUERY = 0x8865;
|
||||
public static final int GL_QUERY_RESULT = 0x8866;
|
||||
public static final int GL_QUERY_RESULT_AVAILABLE = 0x8867;
|
||||
|
||||
private GL15() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetQueryObjectu(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectuiv_pointer;
|
||||
public static void glBindBuffer(int target, int buffer) {
|
||||
StateTracker.bindBuffer(target, buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBindBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectuiv(id, pname, params, params.position(), function_pointer);
|
||||
nglBindBuffer(target, buffer, function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectuiv(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglBindBuffer(int target, int buffer, long function_pointer);
|
||||
|
||||
public static void glGetQueryObject(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectiv_pointer;
|
||||
public static void glDeleteBuffers(IntBuffer buffers) {
|
||||
StateTracker.deleteBuffers(buffers);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glDeleteBuffers_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectiv(id, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglDeleteBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectiv(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglDeleteBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
|
||||
public static void glGetQuery(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryiv_pointer;
|
||||
public static void glGenBuffers(IntBuffer buffers) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGenBuffers_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryiv(target, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglGenBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryiv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglGenBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
|
||||
public static void glEndQuery(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glEndQuery_pointer;
|
||||
public static boolean glIsBuffer(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glIsBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndQuery(target, function_pointer);
|
||||
}
|
||||
private static native void nglEndQuery(int target, long function_pointer);
|
||||
|
||||
public static void glBeginQuery(int target, int id) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBeginQuery_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginQuery(target, id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginQuery(int target, int id, long function_pointer);
|
||||
|
||||
public static boolean glIsQuery(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glIsQuery_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsQuery(id, function_pointer);
|
||||
boolean __result = nglIsBuffer(buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsQuery(int id, long function_pointer);
|
||||
|
||||
public static void glDeleteQueries(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glDeleteQueries_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglDeleteQueries((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteQueries(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static void glGenQueries(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGenQueries_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglGenQueries((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenQueries(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glGetBufferPointer(int target, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferPointerv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetBufferPointerv(target, pname, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetBufferPointerv(int target, int pname, int result_size, long function_pointer);
|
||||
|
||||
public static void glGetBufferParameter(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferParameteriv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetBufferParameteriv(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static boolean glUnmapBuffer(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glUnmapBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglUnmapBuffer(target, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglUnmapBuffer(int target, long function_pointer);
|
||||
|
||||
/**
|
||||
* glMapBuffer maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null, in which case a new
|
||||
* ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null, it will be returned if it points to
|
||||
* the same mapped memory, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like
|
||||
* this:
|
||||
* <p/>
|
||||
* ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., ..., null); ... // Another map on the same buffer
|
||||
* mapped_buffer = glMapBuffer(..., ..., ..., mapped_buffer);
|
||||
* @param result_size The size of the buffer area.
|
||||
* @param old_buffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and no
|
||||
* new buffer will be created. In that case, size is ignored.
|
||||
* @return A ByteBuffer representing the mapped buffer memory.
|
||||
*/
|
||||
public static java.nio.ByteBuffer glMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glMapBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (old_buffer != null)
|
||||
BufferChecks.checkDirect(old_buffer);
|
||||
java.nio.ByteBuffer __result = nglMapBuffer(target, access, result_size, old_buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
|
||||
|
||||
public static void glGetBufferSubData(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferSubData(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glBufferSubData(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubData(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
private static native boolean nglIsBuffer(int buffer, long function_pointer);
|
||||
|
||||
public static void glBufferData(int target, int size, int usage) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
|
|
@ -240,36 +112,164 @@ public final class GL15 {
|
|||
}
|
||||
private static native void nglBufferData(int target, int size, Buffer data, int data_position, int usage, long function_pointer);
|
||||
|
||||
public static boolean glIsBuffer(int buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glIsBuffer_pointer;
|
||||
public static void glBufferSubData(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsBuffer(buffer, function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubData(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glGetBufferSubData(int target, int offset, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, IntBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(data);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglGetBufferSubData(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
/**
|
||||
* glMapBuffer maps a gl vertex buffer buffer to a ByteBuffer. The oldBuffer argument can be null, in which case a new
|
||||
* ByteBuffer will be created, pointing to the returned memory. If oldBuffer is non-null, it will be returned if it points to
|
||||
* the same mapped memory, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like
|
||||
* this:
|
||||
* <p/>
|
||||
* ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., ..., null); ... // Another map on the same buffer
|
||||
* mapped_buffer = glMapBuffer(..., ..., ..., mapped_buffer);
|
||||
* @param result_size The size of the buffer area.
|
||||
* @param old_buffer A ByteBuffer. If this argument points to the same address as the new mapping, it will be returned and no
|
||||
* new buffer will be created. In that case, size is ignored.
|
||||
* @return A ByteBuffer representing the mapped buffer memory.
|
||||
*/
|
||||
public static java.nio.ByteBuffer glMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glMapBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
if (old_buffer != null)
|
||||
BufferChecks.checkDirect(old_buffer);
|
||||
java.nio.ByteBuffer __result = nglMapBuffer(target, access, result_size, old_buffer, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsBuffer(int buffer, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer);
|
||||
|
||||
public static void glGenBuffers(IntBuffer buffers) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGenBuffers_pointer;
|
||||
public static boolean glUnmapBuffer(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glUnmapBuffer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglGenBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
boolean __result = nglUnmapBuffer(target, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglGenBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
private static native boolean nglUnmapBuffer(int target, long function_pointer);
|
||||
|
||||
public static void glDeleteBuffers(IntBuffer buffers) {
|
||||
StateTracker.deleteBuffers(buffers);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glDeleteBuffers_pointer;
|
||||
public static void glGetBufferParameter(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferParameteriv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(buffers);
|
||||
nglDeleteBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetBufferParameteriv(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer);
|
||||
private static native void nglGetBufferParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glBindBuffer(int target, int buffer) {
|
||||
StateTracker.bindBuffer(target, buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBindBuffer_pointer;
|
||||
public static java.nio.ByteBuffer glGetBufferPointer(int target, int pname, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferPointerv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindBuffer(target, buffer, function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetBufferPointerv(target, pname, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglBindBuffer(int target, int buffer, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglGetBufferPointerv(int target, int pname, int result_size, long function_pointer);
|
||||
|
||||
public static void glGenQueries(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGenQueries_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglGenQueries((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenQueries(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static void glDeleteQueries(IntBuffer ids) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glDeleteQueries_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(ids);
|
||||
nglDeleteQueries((ids.remaining()), ids, ids.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteQueries(int n, IntBuffer ids, int ids_position, long function_pointer);
|
||||
|
||||
public static boolean glIsQuery(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glIsQuery_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsQuery(id, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsQuery(int id, long function_pointer);
|
||||
|
||||
public static void glBeginQuery(int target, int id) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBeginQuery_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginQuery(target, id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginQuery(int target, int id, long function_pointer);
|
||||
|
||||
public static void glEndQuery(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glEndQuery_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndQuery(target, function_pointer);
|
||||
}
|
||||
private static native void nglEndQuery(int target, long function_pointer);
|
||||
|
||||
public static void glGetQuery(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryiv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryiv(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryiv(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryObject(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectiv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectiv(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectiv(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetQueryObjectu(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectuiv_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetQueryObjectuiv(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetQueryObjectuiv(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,16 +7,16 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class HPOcclusionTest {
|
||||
/**
|
||||
* Accepted by the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and
|
||||
* GetDoublev :
|
||||
*/
|
||||
public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
|
||||
/**
|
||||
* Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by
|
||||
* the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev :
|
||||
*/
|
||||
public static final int GL_OCCLUSION_TEST_HP = 0x8165;
|
||||
/**
|
||||
* Accepted by the <pname> of GetBooleanv, GetIntegerv, GetFloatv, and
|
||||
* GetDoublev :
|
||||
*/
|
||||
public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
|
||||
|
||||
private HPOcclusionTest() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,10 @@ final class MouseEventQueue extends EventQueue implements MouseListener, MouseMo
|
|||
|
||||
private void handleButton(MouseEvent e) {
|
||||
byte button;
|
||||
switch ( e.getButton() ) {
|
||||
switch (e.getButton()) {
|
||||
case MouseEvent.NOBUTTON:
|
||||
// Nothing to do, so return
|
||||
return;
|
||||
case MouseEvent.BUTTON1:
|
||||
// Emulate right click if ctrl is down
|
||||
if (!e.isControlDown())
|
||||
|
|
@ -175,7 +178,7 @@ final class MouseEventQueue extends EventQueue implements MouseListener, MouseMo
|
|||
throw new IllegalArgumentException("Not a valid button: " + e.getButton());
|
||||
}
|
||||
byte state;
|
||||
switch ( e.getID() ) {
|
||||
switch (e.getID()) {
|
||||
case MouseEvent.MOUSE_PRESSED:
|
||||
state = 1;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVCopyDepthToColor {
|
||||
public static final int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886f;
|
||||
public static final int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886e;
|
||||
public static final int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886f;
|
||||
|
||||
private NVCopyDepthToColor() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,89 +7,42 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVEvaluators {
|
||||
public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86d7;
|
||||
public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86d6;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86d5;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86d4;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86d3;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86d2;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86d1;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86d0;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86cf;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86ce;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86cd;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86cc;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86cb;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86ca;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86c9;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86c8;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86c7;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86c6;
|
||||
public static final int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86c5;
|
||||
public static final int GL_MAP_ATTRIB_V_ORDER_NV = 0x86c4;
|
||||
public static final int GL_MAP_ATTRIB_U_ORDER_NV = 0x86c3;
|
||||
public static final int GL_MAP_TESSELLATION_NV = 0x86c2;
|
||||
public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86c1;
|
||||
public static final int GL_EVAL_2D_NV = 0x86c0;
|
||||
public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86c1;
|
||||
public static final int GL_MAP_TESSELLATION_NV = 0x86c2;
|
||||
public static final int GL_MAP_ATTRIB_U_ORDER_NV = 0x86c3;
|
||||
public static final int GL_MAP_ATTRIB_V_ORDER_NV = 0x86c4;
|
||||
public static final int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86c5;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86c6;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86c7;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86c8;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86c9;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86ca;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86cb;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86cc;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86cd;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86ce;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86cf;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86d0;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86d1;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86d2;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86d3;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86d4;
|
||||
public static final int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86d5;
|
||||
public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86d6;
|
||||
public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86d7;
|
||||
|
||||
private NVEvaluators() {
|
||||
}
|
||||
|
||||
|
||||
public static void glEvalMapsNV(int target, int mode) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glEvalMapsNV_pointer;
|
||||
public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapControlPointsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEvalMapsNV(target, mode, function_pointer);
|
||||
BufferChecks.checkDirect(pPoints);
|
||||
nglGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints, pPoints.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglEvalMapsNV(int target, int mode, long function_pointer);
|
||||
|
||||
public static void glGetMapAttribParameterNV(int target, int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapAttribParameterivNV(target, index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapAttribParameterivNV(int target, int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapAttribParameterNV(int target, int index, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapAttribParameterfvNV(target, index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapAttribParameterfvNV(int target, int index, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapParameterNV(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapParameterivNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapParameterNV(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapParameterfvNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glMapParameterNV(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglMapParameterivNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glMapParameterNV(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglMapParameterfvNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, Buffer pPoints, int pPoints_position, long function_pointer);
|
||||
|
||||
public static void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, FloatBuffer pPoints) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapControlPointsNV_pointer;
|
||||
|
|
@ -99,11 +52,58 @@ public final class NVEvaluators {
|
|||
}
|
||||
private static native void nglMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, Buffer pPoints, int pPoints_position, long function_pointer);
|
||||
|
||||
public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapControlPointsNV_pointer;
|
||||
public static void glMapParameterNV(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPoints);
|
||||
nglGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints, pPoints.position() << 2, function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglMapParameterfvNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, Buffer pPoints, int pPoints_position, long function_pointer);
|
||||
private static native void nglMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glMapParameterNV(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglMapParameterivNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapParameterNV(int target, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapParameterfvNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapParameterNV(int target, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapParameterivNV(target, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapAttribParameterNV(int target, int index, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapAttribParameterfvNV(target, index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapAttribParameterfvNV(int target, int index, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetMapAttribParameterNV(int target, int index, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetMapAttribParameterivNV(target, index, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetMapAttribParameterivNV(int target, int index, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glEvalMapsNV(int target, int mode) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_evaluators_glEvalMapsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEvalMapsNV(target, mode, function_pointer);
|
||||
}
|
||||
private static native void nglEvalMapsNV(int target, int mode, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,51 +7,21 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVFence {
|
||||
public static final int GL_FENCE_CONDITION_NV = 0x84f4;
|
||||
public static final int GL_FENCE_STATUS_NV = 0x84f3;
|
||||
public static final int GL_ALL_COMPLETED_NV = 0x84f2;
|
||||
public static final int GL_FENCE_STATUS_NV = 0x84f3;
|
||||
public static final int GL_FENCE_CONDITION_NV = 0x84f4;
|
||||
|
||||
private NVFence() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetFenceivNV(int fence, int pname, IntBuffer piParams) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glGetFenceivNV_pointer;
|
||||
public static void glGenFencesNV(IntBuffer piFences) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glGenFencesNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(piParams, 4);
|
||||
nglGetFenceivNV(fence, pname, piParams, piParams.position(), function_pointer);
|
||||
BufferChecks.checkDirect(piFences);
|
||||
nglGenFencesNV((piFences.remaining()), piFences, piFences.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFenceivNV(int fence, int pname, IntBuffer piParams, int piParams_position, long function_pointer);
|
||||
|
||||
public static boolean glIsFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glIsFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsFenceNV(fence, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static void glFinishFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glFinishFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFinishFenceNV(fence, function_pointer);
|
||||
}
|
||||
private static native void nglFinishFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static boolean glTestFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glTestFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglTestFenceNV(fence, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglTestFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static void glSetFenceNV(int fence, int condition) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glSetFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSetFenceNV(fence, condition, function_pointer);
|
||||
}
|
||||
private static native void nglSetFenceNV(int fence, int condition, long function_pointer);
|
||||
private static native void nglGenFencesNV(int n, IntBuffer piFences, int piFences_position, long function_pointer);
|
||||
|
||||
public static void glDeleteFencesNV(IntBuffer piFences) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glDeleteFencesNV_pointer;
|
||||
|
|
@ -61,11 +31,41 @@ public final class NVFence {
|
|||
}
|
||||
private static native void nglDeleteFencesNV(int n, IntBuffer piFences, int piFences_position, long function_pointer);
|
||||
|
||||
public static void glGenFencesNV(IntBuffer piFences) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glGenFencesNV_pointer;
|
||||
public static void glSetFenceNV(int fence, int condition) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glSetFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(piFences);
|
||||
nglGenFencesNV((piFences.remaining()), piFences, piFences.position(), function_pointer);
|
||||
nglSetFenceNV(fence, condition, function_pointer);
|
||||
}
|
||||
private static native void nglGenFencesNV(int n, IntBuffer piFences, int piFences_position, long function_pointer);
|
||||
private static native void nglSetFenceNV(int fence, int condition, long function_pointer);
|
||||
|
||||
public static boolean glTestFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glTestFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglTestFenceNV(fence, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglTestFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static void glFinishFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glFinishFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFinishFenceNV(fence, function_pointer);
|
||||
}
|
||||
private static native void nglFinishFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static boolean glIsFenceNV(int fence) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glIsFenceNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsFenceNV(fence, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsFenceNV(int fence, long function_pointer);
|
||||
|
||||
public static void glGetFenceivNV(int fence, int pname, IntBuffer piParams) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fence_glGetFenceivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(piParams, 4);
|
||||
nglGetFenceivNV(fence, pname, piParams, piParams.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFenceivNV(int fence, int pname, IntBuffer piParams, int piParams_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,21 +7,21 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVFloatBuffer {
|
||||
public static final int GL_FLOAT_RGBA_MODE_NV = 0x888e;
|
||||
public static final int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888d;
|
||||
public static final int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888c;
|
||||
public static final int GL_FLOAT_RGBA32_NV = 0x888b;
|
||||
public static final int GL_FLOAT_RGBA16_NV = 0x888a;
|
||||
public static final int GL_FLOAT_RGB32_NV = 0x8889;
|
||||
public static final int GL_FLOAT_RGB16_NV = 0x8888;
|
||||
public static final int GL_FLOAT_RG32_NV = 0x8887;
|
||||
public static final int GL_FLOAT_RG16_NV = 0x8886;
|
||||
public static final int GL_FLOAT_R32_NV = 0x8885;
|
||||
public static final int GL_FLOAT_R16_NV = 0x8884;
|
||||
public static final int GL_FLOAT_RGBA_NV = 0x8883;
|
||||
public static final int GL_FLOAT_RGB_NV = 0x8882;
|
||||
public static final int GL_FLOAT_RG_NV = 0x8881;
|
||||
public static final int GL_FLOAT_R_NV = 0x8880;
|
||||
public static final int GL_FLOAT_RG_NV = 0x8881;
|
||||
public static final int GL_FLOAT_RGB_NV = 0x8882;
|
||||
public static final int GL_FLOAT_RGBA_NV = 0x8883;
|
||||
public static final int GL_FLOAT_R16_NV = 0x8884;
|
||||
public static final int GL_FLOAT_R32_NV = 0x8885;
|
||||
public static final int GL_FLOAT_RG16_NV = 0x8886;
|
||||
public static final int GL_FLOAT_RG32_NV = 0x8887;
|
||||
public static final int GL_FLOAT_RGB16_NV = 0x8888;
|
||||
public static final int GL_FLOAT_RGB32_NV = 0x8889;
|
||||
public static final int GL_FLOAT_RGBA16_NV = 0x888a;
|
||||
public static final int GL_FLOAT_RGBA32_NV = 0x888b;
|
||||
public static final int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888c;
|
||||
public static final int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888d;
|
||||
public static final int GL_FLOAT_RGBA_MODE_NV = 0x888e;
|
||||
|
||||
private NVFloatBuffer() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVFogDistance {
|
||||
public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855c;
|
||||
public static final int GL_EYE_RADIAL_NV = 0x855b;
|
||||
public static final int GL_FOG_DISTANCE_MODE_NV = 0x855a;
|
||||
public static final int GL_EYE_RADIAL_NV = 0x855b;
|
||||
public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855c;
|
||||
|
||||
private NVFogDistance() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,16 +7,24 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVFragmentProgram extends NVProgram {
|
||||
public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868;
|
||||
public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_NV = 0x8871;
|
||||
public static final int GL_FRAGMENT_PROGRAM_NV = 0x8870;
|
||||
public static final int GL_MAX_TEXTURE_COORDS_NV = 0x8871;
|
||||
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872;
|
||||
public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873;
|
||||
public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868;
|
||||
|
||||
private NVFragmentProgram() {
|
||||
}
|
||||
|
||||
|
||||
public static void glProgramNamedParameter4fNV(int id, ByteBuffer name, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fragment_program_glProgramNamedParameter4fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(name);
|
||||
nglProgramNamedParameter4fNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramNamedParameter4fNV(int id, int length, ByteBuffer name, int name_position, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glGetProgramNamedParameterNV(int id, ByteBuffer name, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fragment_program_glGetProgramNamedParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -25,12 +33,4 @@ public final class NVFragmentProgram extends NVProgram {
|
|||
nglGetProgramNamedParameterfvNV(id, (name.remaining()), name, name.position(), params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramNamedParameterfvNV(int id, int length, ByteBuffer name, int name_position, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glProgramNamedParameter4fNV(int id, ByteBuffer name, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_fragment_program_glProgramNamedParameter4fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(name);
|
||||
nglProgramNamedParameter4fNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglProgramNamedParameter4fNV(int id, int length, ByteBuffer name, int name_position, float x, float y, float z, float w, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVFragmentProgram2 {
|
||||
public static final int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88f8;
|
||||
public static final int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88f7;
|
||||
public static final int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88f6;
|
||||
public static final int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88f5;
|
||||
public static final int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88f4;
|
||||
public static final int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88f5;
|
||||
public static final int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88f6;
|
||||
public static final int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88f7;
|
||||
public static final int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88f8;
|
||||
|
||||
private NVFragmentProgram2() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,29 +13,145 @@ public final class NVHalfFloat {
|
|||
}
|
||||
|
||||
|
||||
public static void glVertexAttribs4NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs4hvNV_pointer;
|
||||
public static void glVertex2hNV(short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs4hvNV(index, (attribs.remaining()) >> 2, attribs, attribs.position(), function_pointer);
|
||||
nglVertex2hNV(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs4hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
private static native void nglVertex2hNV(short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs3NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs3hvNV_pointer;
|
||||
public static void glVertex3hNV(short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs3hvNV(index, (attribs.remaining()) / 3, attribs, attribs.position(), function_pointer);
|
||||
nglVertex3hNV(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs3hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
private static native void nglVertex3hNV(short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs2NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs2hvNV_pointer;
|
||||
public static void glVertex4hNV(short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs2hvNV(index, (attribs.remaining()) >> 1, attribs, attribs.position(), function_pointer);
|
||||
nglVertex4hNV(x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs2hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
private static native void nglVertex4hNV(short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glNormal3hNV(short nx, short ny, short nz) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glNormal3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormal3hNV(nx, ny, nz, function_pointer);
|
||||
}
|
||||
private static native void nglNormal3hNV(short nx, short ny, short nz, long function_pointer);
|
||||
|
||||
public static void glColor3hNV(short red, short green, short blue) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glColor3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColor3hNV(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglColor3hNV(short red, short green, short blue, long function_pointer);
|
||||
|
||||
public static void glColor4hNV(short red, short green, short blue, short alpha) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glColor4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColor4hNV(red, green, blue, alpha, function_pointer);
|
||||
}
|
||||
private static native void nglColor4hNV(short red, short green, short blue, short alpha, long function_pointer);
|
||||
|
||||
public static void glTexCoord1hNV(short s) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord1hNV(s, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord1hNV(short s, long function_pointer);
|
||||
|
||||
public static void glTexCoord2hNV(short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord2hNV(s, t, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord2hNV(short s, short t, long function_pointer);
|
||||
|
||||
public static void glTexCoord3hNV(short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord3hNV(s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord3hNV(short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glTexCoord4hNV(short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord4hNV(s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord4hNV(short s, short t, short r, short q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1hNV(int target, short s) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1hNV(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1hNV(int target, short s, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2hNV(int target, short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2hNV(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2hNV(int target, short s, short t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3hNV(int target, short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3hNV(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3hNV(int target, short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4hNV(int target, short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4hNV(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4hNV(int target, short s, short t, short r, short q, long function_pointer);
|
||||
|
||||
public static void glFogCoordhNV(short fog) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glFogCoordhNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFogCoordhNV(fog, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordhNV(short fog, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3hNV(short red, short green, short blue) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glSecondaryColor3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3hNV(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3hNV(short red, short green, short blue, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1hNV(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1hNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1hNV(int index, short x, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2hNV(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2hNV(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2hNV(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3hNV(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3hNV(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3hNV(int index, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4hNV(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4hNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4hNV(int index, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs1NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs1hvNV_pointer;
|
||||
|
|
@ -45,143 +161,27 @@ public final class NVHalfFloat {
|
|||
}
|
||||
private static native void nglVertexAttribs1hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4hNV(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib4hNV_pointer;
|
||||
public static void glVertexAttribs2NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs2hvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4hNV(index, x, y, z, w, function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs2hvNV(index, (attribs.remaining()) >> 1, attribs, attribs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4hNV(int index, short x, short y, short z, short w, long function_pointer);
|
||||
private static native void nglVertexAttribs2hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3hNV(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib3hNV_pointer;
|
||||
public static void glVertexAttribs3NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs3hvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3hNV(index, x, y, z, function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs3hvNV(index, (attribs.remaining()) / 3, attribs, attribs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3hNV(int index, short x, short y, short z, long function_pointer);
|
||||
private static native void nglVertexAttribs3hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2hNV(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib2hNV_pointer;
|
||||
public static void glVertexAttribs4NV(int index, ShortBuffer attribs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs4hvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2hNV(index, x, y, function_pointer);
|
||||
BufferChecks.checkDirect(attribs);
|
||||
nglVertexAttribs4hvNV(index, (attribs.remaining()) >> 2, attribs, attribs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2hNV(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1hNV(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1hNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1hNV(int index, short x, long function_pointer);
|
||||
|
||||
public static void glSecondaryColor3hNV(short red, short green, short blue) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glSecondaryColor3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSecondaryColor3hNV(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglSecondaryColor3hNV(short red, short green, short blue, long function_pointer);
|
||||
|
||||
public static void glFogCoordhNV(short fog) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glFogCoordhNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFogCoordhNV(fog, function_pointer);
|
||||
}
|
||||
private static native void nglFogCoordhNV(short fog, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord4hNV(int target, short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord4hNV(target, s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord4hNV(int target, short s, short t, short r, short q, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord3hNV(int target, short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord3hNV(target, s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord3hNV(int target, short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord2hNV(int target, short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord2hNV(target, s, t, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord2hNV(int target, short s, short t, long function_pointer);
|
||||
|
||||
public static void glMultiTexCoord1hNV(int target, short s) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMultiTexCoord1hNV(target, s, function_pointer);
|
||||
}
|
||||
private static native void nglMultiTexCoord1hNV(int target, short s, long function_pointer);
|
||||
|
||||
public static void glTexCoord4hNV(short s, short t, short r, short q) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord4hNV(s, t, r, q, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord4hNV(short s, short t, short r, short q, long function_pointer);
|
||||
|
||||
public static void glTexCoord3hNV(short s, short t, short r) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord3hNV(s, t, r, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord3hNV(short s, short t, short r, long function_pointer);
|
||||
|
||||
public static void glTexCoord2hNV(short s, short t) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord2hNV(s, t, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord2hNV(short s, short t, long function_pointer);
|
||||
|
||||
public static void glTexCoord1hNV(short s) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord1hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexCoord1hNV(s, function_pointer);
|
||||
}
|
||||
private static native void nglTexCoord1hNV(short s, long function_pointer);
|
||||
|
||||
public static void glColor4hNV(short red, short green, short blue, short alpha) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glColor4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColor4hNV(red, green, blue, alpha, function_pointer);
|
||||
}
|
||||
private static native void nglColor4hNV(short red, short green, short blue, short alpha, long function_pointer);
|
||||
|
||||
public static void glColor3hNV(short red, short green, short blue) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glColor3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColor3hNV(red, green, blue, function_pointer);
|
||||
}
|
||||
private static native void nglColor3hNV(short red, short green, short blue, long function_pointer);
|
||||
|
||||
public static void glNormal3hNV(short nx, short ny, short nz) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glNormal3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormal3hNV(nx, ny, nz, function_pointer);
|
||||
}
|
||||
private static native void nglNormal3hNV(short nx, short ny, short nz, long function_pointer);
|
||||
|
||||
public static void glVertex4hNV(short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex4hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertex4hNV(x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertex4hNV(short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glVertex3hNV(short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex3hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertex3hNV(x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertex3hNV(short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertex2hNV(short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex2hNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertex2hNV(x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertex2hNV(short x, short y, long function_pointer);
|
||||
private static native void nglVertexAttribs4hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVLightMaxExponent {
|
||||
public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8505;
|
||||
public static final int GL_MAX_SHININESS_NV = 0x8504;
|
||||
public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8505;
|
||||
|
||||
private NVLightMaxExponent() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,54 +7,24 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVOcclusionQuery {
|
||||
public static final int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867;
|
||||
public static final int GL_PIXEL_COUNT_NV = 0x8866;
|
||||
public static final int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865;
|
||||
public static final int GL_PIXEL_COUNTER_BITS_NV = 0x8864;
|
||||
public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
|
||||
public static final int GL_OCCLUSION_TEST_HP = 0x8165;
|
||||
public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
|
||||
public static final int GL_PIXEL_COUNTER_BITS_NV = 0x8864;
|
||||
public static final int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865;
|
||||
public static final int GL_PIXEL_COUNT_NV = 0x8866;
|
||||
public static final int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867;
|
||||
|
||||
private NVOcclusionQuery() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetOcclusionQueryNV(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryivNV_pointer;
|
||||
public static void glGenOcclusionQueriesNV(IntBuffer piIDs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGenOcclusionQueriesNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetOcclusionQueryivNV(id, pname, params, params.position(), function_pointer);
|
||||
BufferChecks.checkDirect(piIDs);
|
||||
nglGenOcclusionQueriesNV((piIDs.remaining()), piIDs, piIDs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetOcclusionQueryivNV(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetOcclusionQueryuNV(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryuivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetOcclusionQueryuivNV(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetOcclusionQueryuivNV(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glEndOcclusionQueryNV() {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glEndOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndOcclusionQueryNV(function_pointer);
|
||||
}
|
||||
private static native void nglEndOcclusionQueryNV(long function_pointer);
|
||||
|
||||
public static void glBeginOcclusionQueryNV(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glBeginOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginOcclusionQueryNV(id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginOcclusionQueryNV(int id, long function_pointer);
|
||||
|
||||
public static boolean glIsOcclusionQueryNV(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glIsOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsOcclusionQueryNV(id, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsOcclusionQueryNV(int id, long function_pointer);
|
||||
private static native void nglGenOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_position, long function_pointer);
|
||||
|
||||
public static void glDeleteOcclusionQueriesNV(IntBuffer piIDs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glDeleteOcclusionQueriesNV_pointer;
|
||||
|
|
@ -64,11 +34,41 @@ public final class NVOcclusionQuery {
|
|||
}
|
||||
private static native void nglDeleteOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_position, long function_pointer);
|
||||
|
||||
public static void glGenOcclusionQueriesNV(IntBuffer piIDs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGenOcclusionQueriesNV_pointer;
|
||||
public static boolean glIsOcclusionQueryNV(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glIsOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(piIDs);
|
||||
nglGenOcclusionQueriesNV((piIDs.remaining()), piIDs, piIDs.position(), function_pointer);
|
||||
boolean __result = nglIsOcclusionQueryNV(id, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglGenOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_position, long function_pointer);
|
||||
private static native boolean nglIsOcclusionQueryNV(int id, long function_pointer);
|
||||
|
||||
public static void glBeginOcclusionQueryNV(int id) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glBeginOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBeginOcclusionQueryNV(id, function_pointer);
|
||||
}
|
||||
private static native void nglBeginOcclusionQueryNV(int id, long function_pointer);
|
||||
|
||||
public static void glEndOcclusionQueryNV() {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glEndOcclusionQueryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglEndOcclusionQueryNV(function_pointer);
|
||||
}
|
||||
private static native void nglEndOcclusionQueryNV(long function_pointer);
|
||||
|
||||
public static void glGetOcclusionQueryuNV(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryuivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetOcclusionQueryuivNV(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetOcclusionQueryuivNV(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetOcclusionQueryNV(int id, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetOcclusionQueryivNV(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetOcclusionQueryivNV(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVPackedDepthStencil {
|
||||
public static final int GL_UNSIGNED_INT_24_8_NV = 0x84fa;
|
||||
public static final int GL_DEPTH_STENCIL_NV = 0x84f9;
|
||||
public static final int GL_UNSIGNED_INT_24_8_NV = 0x84fa;
|
||||
|
||||
private NVPackedDepthStencil() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,24 +7,17 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVPixelDataRange {
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887d;
|
||||
public static final int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887c;
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887b;
|
||||
public static final int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887a;
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879;
|
||||
public static final int GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878;
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879;
|
||||
public static final int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887a;
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887b;
|
||||
public static final int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887c;
|
||||
public static final int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887d;
|
||||
|
||||
private NVPixelDataRange() {
|
||||
}
|
||||
|
||||
|
||||
public static void glFlushPixelDataRangeNV(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glFlushPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFlushPixelDataRangeNV(target, function_pointer);
|
||||
}
|
||||
private static native void nglFlushPixelDataRangeNV(int target, long function_pointer);
|
||||
|
||||
public static void glPixelDataRangeNV(int target, ByteBuffer data) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -50,4 +43,11 @@ public final class NVPixelDataRange {
|
|||
nglPixelDataRangeNV(target, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglPixelDataRangeNV(int target, int length, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glFlushPixelDataRangeNV(int target) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glFlushPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFlushPixelDataRangeNV(target, function_pointer);
|
||||
}
|
||||
private static native void nglFlushPixelDataRangeNV(int target, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,21 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVPointSprite {
|
||||
public static final int GL_POINT_SPRITE_R_MODE_NV = 0x8863;
|
||||
public static final int GL_COORD_REPLACE_NV = 0x8862;
|
||||
public static final int GL_POINT_SPRITE_NV = 0x8861;
|
||||
public static final int GL_COORD_REPLACE_NV = 0x8862;
|
||||
public static final int GL_POINT_SPRITE_R_MODE_NV = 0x8863;
|
||||
|
||||
private NVPointSprite() {
|
||||
}
|
||||
|
||||
|
||||
public static void glPointParameteriNV(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_point_sprite_glPointParameteriNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameteriNV(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteriNV(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glPointParameterNV(int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_point_sprite_glPointParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -22,11 +29,4 @@ public final class NVPointSprite {
|
|||
nglPointParameterivNV(pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglPointParameterivNV(int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glPointParameteriNV(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_point_sprite_glPointParameteriNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPointParameteriNV(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglPointParameteriNV(int pname, int param, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,24 +7,24 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVPrimitiveRestart {
|
||||
public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559;
|
||||
public static final int GL_PRIMITIVE_RESTART_NV = 0x8558;
|
||||
public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559;
|
||||
|
||||
private NVPrimitiveRestart() {
|
||||
}
|
||||
|
||||
|
||||
public static void glPrimitiveRestartIndexNV(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_primitive_restart_glPrimitiveRestartIndexNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPrimitiveRestartIndexNV(index, function_pointer);
|
||||
}
|
||||
private static native void nglPrimitiveRestartIndexNV(int index, long function_pointer);
|
||||
|
||||
public static void glPrimitiveRestartNV() {
|
||||
long function_pointer = GLContext.getCapabilities().NV_primitive_restart_glPrimitiveRestartNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPrimitiveRestartNV(function_pointer);
|
||||
}
|
||||
private static native void nglPrimitiveRestartNV(long function_pointer);
|
||||
|
||||
public static void glPrimitiveRestartIndexNV(int index) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_primitive_restart_glPrimitiveRestartIndexNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPrimitiveRestartIndexNV(index, function_pointer);
|
||||
}
|
||||
private static native void nglPrimitiveRestartIndexNV(int index, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,21 +7,68 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public class NVProgram {
|
||||
public static final int GL_PROGRAM_ERROR_STRING_NV = 0x8874;
|
||||
public static final int GL_PROGRAM_ERROR_POSITION_NV = 0x864b;
|
||||
public static final int GL_PROGRAM_STRING_NV = 0x8628;
|
||||
public static final int GL_PROGRAM_RESIDENT_NV = 0x8647;
|
||||
public static final int GL_PROGRAM_LENGTH_NV = 0x8627;
|
||||
public static final int GL_PROGRAM_TARGET_NV = 0x8646;
|
||||
public static final int GL_PROGRAM_LENGTH_NV = 0x8627;
|
||||
public static final int GL_PROGRAM_RESIDENT_NV = 0x8647;
|
||||
public static final int GL_PROGRAM_STRING_NV = 0x8628;
|
||||
public static final int GL_PROGRAM_ERROR_POSITION_NV = 0x864b;
|
||||
public static final int GL_PROGRAM_ERROR_STRING_NV = 0x8874;
|
||||
|
||||
|
||||
public static void glRequestResidentProgramsNV(IntBuffer programIDs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glRequestResidentProgramsNV_pointer;
|
||||
public static void glLoadProgramNV(int target, int programID, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glLoadProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programIDs);
|
||||
nglRequestResidentProgramsNV((programIDs.remaining()), programIDs, programIDs.position(), function_pointer);
|
||||
BufferChecks.checkDirect(string);
|
||||
nglLoadProgramNV(target, programID, (string.remaining()), string, string.position(), function_pointer);
|
||||
}
|
||||
private static native void nglRequestResidentProgramsNV(int n, IntBuffer programIDs, int programIDs_position, long function_pointer);
|
||||
private static native void nglLoadProgramNV(int target, int programID, int length, Buffer string, int string_position, long function_pointer);
|
||||
|
||||
public static void glBindProgramNV(int target, int programID) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glBindProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindProgramNV(target, programID, function_pointer);
|
||||
}
|
||||
private static native void nglBindProgramNV(int target, int programID, long function_pointer);
|
||||
|
||||
public static void glDeleteProgramsNV(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glDeleteProgramsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglDeleteProgramsNV((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glGenProgramsNV(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGenProgramsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglGenProgramsNV((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramNV(int programID, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetProgramivNV(programID, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramivNV(int programID, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramStringNV(int programID, int parameterName, ByteBuffer paramString) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramStringNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(paramString);
|
||||
nglGetProgramStringNV(programID, parameterName, paramString, paramString.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramStringNV(int programID, int parameterName, Buffer paramString, int paramString_position, long function_pointer);
|
||||
|
||||
public static boolean glIsProgramNV(int programID) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glIsProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsProgramNV(programID, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native boolean nglIsProgramNV(int programID, long function_pointer);
|
||||
|
||||
public static boolean glAreProgramsResidentNV(IntBuffer programIDs, ByteBuffer programResidences) {
|
||||
if (programIDs.remaining() != programResidences.remaining())
|
||||
|
|
@ -35,58 +82,11 @@ public class NVProgram {
|
|||
}
|
||||
private static native boolean nglAreProgramsResidentNV(int n, IntBuffer programIDs, int programIDs_position, ByteBuffer programResidences, int programResidences_position, long function_pointer);
|
||||
|
||||
public static boolean glIsProgramNV(int programID) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glIsProgramNV_pointer;
|
||||
public static void glRequestResidentProgramsNV(IntBuffer programIDs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glRequestResidentProgramsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
boolean __result = nglIsProgramNV(programID, function_pointer);
|
||||
return __result;
|
||||
BufferChecks.checkDirect(programIDs);
|
||||
nglRequestResidentProgramsNV((programIDs.remaining()), programIDs, programIDs.position(), function_pointer);
|
||||
}
|
||||
private static native boolean nglIsProgramNV(int programID, long function_pointer);
|
||||
|
||||
public static void glGetProgramStringNV(int programID, int parameterName, ByteBuffer paramString) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramStringNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(paramString);
|
||||
nglGetProgramStringNV(programID, parameterName, paramString, paramString.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramStringNV(int programID, int parameterName, Buffer paramString, int paramString_position, long function_pointer);
|
||||
|
||||
public static void glGetProgramNV(int programID, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetProgramivNV(programID, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramivNV(int programID, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGenProgramsNV(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glGenProgramsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglGenProgramsNV((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGenProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glDeleteProgramsNV(IntBuffer programs) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glDeleteProgramsNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(programs);
|
||||
nglDeleteProgramsNV((programs.remaining()), programs, programs.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDeleteProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer);
|
||||
|
||||
public static void glBindProgramNV(int target, int programID) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glBindProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBindProgramNV(target, programID, function_pointer);
|
||||
}
|
||||
private static native void nglBindProgramNV(int target, int programID, long function_pointer);
|
||||
|
||||
public static void glLoadProgramNV(int target, int programID, ByteBuffer string) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_program_glLoadProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(string);
|
||||
nglLoadProgramNV(target, programID, (string.remaining()), string, string.position(), function_pointer);
|
||||
}
|
||||
private static native void nglLoadProgramNV(int target, int programID, int length, Buffer string, int string_position, long function_pointer);
|
||||
private static native void nglRequestResidentProgramsNV(int n, IntBuffer programIDs, int programIDs_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,145 +7,68 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVRegisterCombiners {
|
||||
public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854d;
|
||||
public static final int GL_COLOR_SUM_CLAMP_NV = 0x854f;
|
||||
public static final int GL_NUM_GENERAL_COMBINERS_NV = 0x854e;
|
||||
public static final int GL_COMBINER_SUM_OUTPUT_NV = 0x854c;
|
||||
public static final int GL_COMBINER_CD_OUTPUT_NV = 0x854b;
|
||||
public static final int GL_COMBINER_AB_OUTPUT_NV = 0x854a;
|
||||
public static final int GL_COMBINER_BIAS_NV = 0x8549;
|
||||
public static final int GL_COMBINER_SCALE_NV = 0x8548;
|
||||
public static final int GL_COMBINER_MUX_SUM_NV = 0x8547;
|
||||
public static final int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546;
|
||||
public static final int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545;
|
||||
public static final int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544;
|
||||
public static final int GL_COMBINER_MAPPING_NV = 0x8543;
|
||||
public static final int GL_COMBINER_INPUT_NV = 0x8542;
|
||||
public static final int GL_DISCARD_NV = 0x8530;
|
||||
public static final int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541;
|
||||
public static final int GL_SCALE_BY_ONE_HALF_NV = 0x8540;
|
||||
public static final int GL_SCALE_BY_FOUR_NV = 0x853f;
|
||||
public static final int GL_SCALE_BY_TWO_NV = 0x853e;
|
||||
public static final int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532;
|
||||
public static final int GL_E_TIMES_F_NV = 0x8531;
|
||||
public static final int GL_SIGNED_NEGATE_NV = 0x853d;
|
||||
public static final int GL_SIGNED_IDENTITY_NV = 0x853c;
|
||||
public static final int GL_HALF_BIAS_NEGATE_NV = 0x853b;
|
||||
public static final int GL_HALF_BIAS_NORMAL_NV = 0x853a;
|
||||
public static final int GL_EXPAND_NEGATE_NV = 0x8539;
|
||||
public static final int GL_EXPAND_NORMAL_NV = 0x8538;
|
||||
public static final int GL_UNSIGNED_INVERT_NV = 0x8537;
|
||||
public static final int GL_UNSIGNED_IDENTITY_NV = 0x8536;
|
||||
public static final int GL_SPARE1_NV = 0x852f;
|
||||
public static final int GL_SPARE0_NV = 0x852e;
|
||||
public static final int GL_SECONDARY_COLOR_NV = 0x852d;
|
||||
public static final int GL_PRIMARY_COLOR_NV = 0x852c;
|
||||
public static final int GL_CONSTANT_COLOR1_NV = 0x852b;
|
||||
public static final int GL_CONSTANT_COLOR0_NV = 0x852a;
|
||||
public static final int GL_VARIABLE_G_NV = 0x8529;
|
||||
public static final int GL_VARIABLE_F_NV = 0x8528;
|
||||
public static final int GL_VARIABLE_E_NV = 0x8527;
|
||||
public static final int GL_VARIABLE_D_NV = 0x8526;
|
||||
public static final int GL_VARIABLE_C_NV = 0x8525;
|
||||
public static final int GL_VARIABLE_B_NV = 0x8524;
|
||||
public static final int GL_VARIABLE_A_NV = 0x8523;
|
||||
public static final int GL_COMBINER7_NV = 0x8557;
|
||||
public static final int GL_COMBINER6_NV = 0x8556;
|
||||
public static final int GL_COMBINER5_NV = 0x8555;
|
||||
public static final int GL_COMBINER4_NV = 0x8554;
|
||||
public static final int GL_COMBINER3_NV = 0x8553;
|
||||
public static final int GL_COMBINER2_NV = 0x8552;
|
||||
public static final int GL_COMBINER1_NV = 0x8551;
|
||||
public static final int GL_COMBINER0_NV = 0x8550;
|
||||
public static final int GL_REGISTER_COMBINERS_NV = 0x8522;
|
||||
public static final int GL_COMBINER0_NV = 0x8550;
|
||||
public static final int GL_COMBINER1_NV = 0x8551;
|
||||
public static final int GL_COMBINER2_NV = 0x8552;
|
||||
public static final int GL_COMBINER3_NV = 0x8553;
|
||||
public static final int GL_COMBINER4_NV = 0x8554;
|
||||
public static final int GL_COMBINER5_NV = 0x8555;
|
||||
public static final int GL_COMBINER6_NV = 0x8556;
|
||||
public static final int GL_COMBINER7_NV = 0x8557;
|
||||
public static final int GL_VARIABLE_A_NV = 0x8523;
|
||||
public static final int GL_VARIABLE_B_NV = 0x8524;
|
||||
public static final int GL_VARIABLE_C_NV = 0x8525;
|
||||
public static final int GL_VARIABLE_D_NV = 0x8526;
|
||||
public static final int GL_VARIABLE_E_NV = 0x8527;
|
||||
public static final int GL_VARIABLE_F_NV = 0x8528;
|
||||
public static final int GL_VARIABLE_G_NV = 0x8529;
|
||||
public static final int GL_CONSTANT_COLOR0_NV = 0x852a;
|
||||
public static final int GL_CONSTANT_COLOR1_NV = 0x852b;
|
||||
public static final int GL_PRIMARY_COLOR_NV = 0x852c;
|
||||
public static final int GL_SECONDARY_COLOR_NV = 0x852d;
|
||||
public static final int GL_SPARE0_NV = 0x852e;
|
||||
public static final int GL_SPARE1_NV = 0x852f;
|
||||
public static final int GL_UNSIGNED_IDENTITY_NV = 0x8536;
|
||||
public static final int GL_UNSIGNED_INVERT_NV = 0x8537;
|
||||
public static final int GL_EXPAND_NORMAL_NV = 0x8538;
|
||||
public static final int GL_EXPAND_NEGATE_NV = 0x8539;
|
||||
public static final int GL_HALF_BIAS_NORMAL_NV = 0x853a;
|
||||
public static final int GL_HALF_BIAS_NEGATE_NV = 0x853b;
|
||||
public static final int GL_SIGNED_IDENTITY_NV = 0x853c;
|
||||
public static final int GL_SIGNED_NEGATE_NV = 0x853d;
|
||||
public static final int GL_E_TIMES_F_NV = 0x8531;
|
||||
public static final int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532;
|
||||
public static final int GL_SCALE_BY_TWO_NV = 0x853e;
|
||||
public static final int GL_SCALE_BY_FOUR_NV = 0x853f;
|
||||
public static final int GL_SCALE_BY_ONE_HALF_NV = 0x8540;
|
||||
public static final int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541;
|
||||
public static final int GL_DISCARD_NV = 0x8530;
|
||||
public static final int GL_COMBINER_INPUT_NV = 0x8542;
|
||||
public static final int GL_COMBINER_MAPPING_NV = 0x8543;
|
||||
public static final int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544;
|
||||
public static final int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545;
|
||||
public static final int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546;
|
||||
public static final int GL_COMBINER_MUX_SUM_NV = 0x8547;
|
||||
public static final int GL_COMBINER_SCALE_NV = 0x8548;
|
||||
public static final int GL_COMBINER_BIAS_NV = 0x8549;
|
||||
public static final int GL_COMBINER_AB_OUTPUT_NV = 0x854a;
|
||||
public static final int GL_COMBINER_CD_OUTPUT_NV = 0x854b;
|
||||
public static final int GL_COMBINER_SUM_OUTPUT_NV = 0x854c;
|
||||
public static final int GL_NUM_GENERAL_COMBINERS_NV = 0x854e;
|
||||
public static final int GL_COLOR_SUM_CLAMP_NV = 0x854f;
|
||||
public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854d;
|
||||
|
||||
private NVRegisterCombiners() {
|
||||
}
|
||||
|
||||
|
||||
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterivNV_pointer;
|
||||
public static void glCombinerParameterfNV(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterfNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFinalCombinerInputParameterivNV(variable, pname, params, params.position(), function_pointer);
|
||||
nglCombinerParameterfNV(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglGetFinalCombinerInputParameterivNV(int variable, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFinalCombinerInputParameterfvNV(variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFinalCombinerInputParameterfvNV(int variable, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerOutputParameterivNV(stage, portion, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerOutputParameterivNV(int stage, int portion, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerOutputParameterfvNV(stage, portion, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerOutputParameterfvNV(int stage, int portion, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerInputParameterivNV(stage, portion, variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerInputParameterfvNV(stage, portion, variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glFinalCombinerInputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFinalCombinerInputNV(variable, input, mapping, componentUsage, function_pointer);
|
||||
}
|
||||
private static native void nglFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage, long function_pointer);
|
||||
|
||||
public static void glCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerOutputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum, long function_pointer);
|
||||
|
||||
public static void glCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerInputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerInputNV(stage, portion, variable, input, mapping, componentUsage, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage, long function_pointer);
|
||||
|
||||
public static void glCombinerParameterNV(int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglCombinerParameterivNV(pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCombinerParameterivNV(int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glCombinerParameteriNV(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameteriNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerParameteriNV(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerParameteriNV(int pname, int param, long function_pointer);
|
||||
private static native void nglCombinerParameterfNV(int pname, float param, long function_pointer);
|
||||
|
||||
public static void glCombinerParameterNV(int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterfvNV_pointer;
|
||||
|
|
@ -155,10 +78,87 @@ public final class NVRegisterCombiners {
|
|||
}
|
||||
private static native void nglCombinerParameterfvNV(int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glCombinerParameterfNV(int pname, float param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterfNV_pointer;
|
||||
public static void glCombinerParameteriNV(int pname, int param) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameteriNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerParameterfNV(pname, param, function_pointer);
|
||||
nglCombinerParameteriNV(pname, param, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerParameterfNV(int pname, float param, long function_pointer);
|
||||
private static native void nglCombinerParameteriNV(int pname, int param, long function_pointer);
|
||||
|
||||
public static void glCombinerParameterNV(int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglCombinerParameterivNV(pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCombinerParameterivNV(int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerInputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerInputNV(stage, portion, variable, input, mapping, componentUsage, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage, long function_pointer);
|
||||
|
||||
public static void glCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerOutputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum, function_pointer);
|
||||
}
|
||||
private static native void nglCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum, long function_pointer);
|
||||
|
||||
public static void glFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glFinalCombinerInputNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFinalCombinerInputNV(variable, input, mapping, componentUsage, function_pointer);
|
||||
}
|
||||
private static native void nglFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage, long function_pointer);
|
||||
|
||||
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerInputParameterfvNV(stage, portion, variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerInputParameterivNV(stage, portion, variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerOutputParameterfvNV(stage, portion, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerOutputParameterfvNV(int stage, int portion, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerOutputParameterivNV(stage, portion, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerOutputParameterivNV(int stage, int portion, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFinalCombinerInputParameterfvNV(variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFinalCombinerInputParameterfvNV(int variable, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetFinalCombinerInputParameterNV(int variable, int pname, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetFinalCombinerInputParameterivNV(variable, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetFinalCombinerInputParameterivNV(int variable, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,14 +13,6 @@ public final class NVRegisterCombiners2 {
|
|||
}
|
||||
|
||||
|
||||
public static void glGetCombinerStageParameterNV(int stage, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerStageParameterfvNV(stage, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerStageParameterfvNV(int stage, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glCombinerStageParameterNV(int stage, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners2_glCombinerStageParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
@ -28,4 +20,12 @@ public final class NVRegisterCombiners2 {
|
|||
nglCombinerStageParameterfvNV(stage, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCombinerStageParameterfvNV(int stage, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetCombinerStageParameterNV(int stage, int pname, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetCombinerStageParameterfvNV(stage, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetCombinerStageParameterfvNV(int stage, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTexgenReflection {
|
||||
public static final int GL_REFLECTION_MAP_NV = 0x8512;
|
||||
public static final int GL_NORMAL_MAP_NV = 0x8511;
|
||||
public static final int GL_REFLECTION_MAP_NV = 0x8512;
|
||||
|
||||
private NVTexgenReflection() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureCompressionVTC {
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83f3;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83f2;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1;
|
||||
public static final int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83f0;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83f2;
|
||||
public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83f3;
|
||||
|
||||
private NVTextureCompressionVTC() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureEnvCombine4 {
|
||||
public static final int GL_OPERAND3_ALPHA_NV = 0x859b;
|
||||
public static final int GL_OPERAND3_RGB_NV = 0x8593;
|
||||
public static final int GL_SOURCE3_ALPHA_NV = 0x858b;
|
||||
public static final int GL_SOURCE3_RGB_NV = 0x8583;
|
||||
public static final int GL_COMBINE4_NV = 0x8503;
|
||||
public static final int GL_SOURCE3_RGB_NV = 0x8583;
|
||||
public static final int GL_SOURCE3_ALPHA_NV = 0x858b;
|
||||
public static final int GL_OPERAND3_RGB_NV = 0x8593;
|
||||
public static final int GL_OPERAND3_ALPHA_NV = 0x859b;
|
||||
|
||||
private NVTextureEnvCombine4() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureRectangle {
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84f8;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84f7;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84f6;
|
||||
public static final int GL_TEXTURE_RECTANGLE_NV = 0x84f5;
|
||||
public static final int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84f6;
|
||||
public static final int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84f7;
|
||||
public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84f8;
|
||||
|
||||
private NVTextureRectangle() {
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue