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() {
|
||||
}
|
||||
|
|
|
@ -7,76 +7,76 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureShader {
|
||||
public static final int GL_TEXTURE_MAG_SIZE_NV = 0x871f;
|
||||
public static final int GL_TEXTURE_DT_SIZE_NV = 0x871e;
|
||||
public static final int GL_TEXTURE_DS_SIZE_NV = 0x871d;
|
||||
public static final int GL_TEXTURE_LO_SIZE_NV = 0x871c;
|
||||
public static final int GL_TEXTURE_HI_SIZE_NV = 0x871b;
|
||||
public static final int GL_TEXTURE_BORDER_VALUES_NV = 0x871a;
|
||||
public static final int GL_VIBRANCE_BIAS_NV = 0x8719;
|
||||
public static final int GL_MAGNITUDE_BIAS_NV = 0x8718;
|
||||
public static final int GL_DT_BIAS_NV = 0x8717;
|
||||
public static final int GL_DS_BIAS_NV = 0x8716;
|
||||
public static final int GL_LO_BIAS_NV = 0x8715;
|
||||
public static final int GL_HI_BIAS_NV = 0x8714;
|
||||
public static final int GL_VIBRANCE_SCALE_NV = 0x8713;
|
||||
public static final int GL_MAGNITUDE_SCALE_NV = 0x8712;
|
||||
public static final int GL_DT_SCALE_NV = 0x8711;
|
||||
public static final int GL_DS_SCALE_NV = 0x8710;
|
||||
public static final int GL_LO_SCALE_NV = 0x870f;
|
||||
public static final int GL_HI_SCALE_NV = 0x870e;
|
||||
public static final int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870b;
|
||||
public static final int GL_DSDT_MAG_INTENSITY_NV = 0x86dc;
|
||||
public static final int GL_DSDT8_MAG8_NV = 0x870a;
|
||||
public static final int GL_DSDT8_NV = 0x8709;
|
||||
public static final int GL_SIGNED_HILO16_NV = 0x86fa;
|
||||
public static final int GL_SIGNED_HILO_NV = 0x86f9;
|
||||
public static final int GL_HILO16_NV = 0x86f8;
|
||||
public static final int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870d;
|
||||
public static final int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870c;
|
||||
public static final int GL_SIGNED_INTENSITY8_NV = 0x8708;
|
||||
public static final int GL_SIGNED_INTENSITY_NV = 0x8707;
|
||||
public static final int GL_SIGNED_ALPHA8_NV = 0x8706;
|
||||
public static final int GL_SIGNED_ALPHA_NV = 0x8705;
|
||||
public static final int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
|
||||
public static final int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
|
||||
public static final int GL_SIGNED_LUMINANCE8_NV = 0x8702;
|
||||
public static final int GL_SIGNED_LUMINANCE_NV = 0x8701;
|
||||
public static final int GL_SIGNED_RGB8_NV = 0x86ff;
|
||||
public static final int GL_SIGNED_RGB_NV = 0x86fe;
|
||||
public static final int GL_SIGNED_RGBA8_NV = 0x86fc;
|
||||
public static final int GL_SIGNED_RGBA_NV = 0x86fb;
|
||||
public static final int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86db;
|
||||
public static final int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86da;
|
||||
public static final int GL_DSDT_MAG_VIB_NV = 0x86f7;
|
||||
public static final int GL_DSDT_MAG_NV = 0x86f6;
|
||||
public static final int GL_DSDT_NV = 0x86f5;
|
||||
public static final int GL_HILO_NV = 0x86f4;
|
||||
public static final int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86f3;
|
||||
public static final int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86f2;
|
||||
public static final int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86f1;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86f0;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864e;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86ee;
|
||||
public static final int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ed;
|
||||
public static final int GL_DOT_PRODUCT_NV = 0x86ec;
|
||||
public static final int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86ea;
|
||||
public static final int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86e9;
|
||||
public static final int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864d;
|
||||
public static final int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864c;
|
||||
public static final int GL_OFFSET_TEXTURE_2D_NV = 0x86e8;
|
||||
public static final int GL_CULL_FRAGMENT_NV = 0x86e7;
|
||||
public static final int GL_PASS_THROUGH_NV = 0x86e6;
|
||||
public static final int GL_SHADER_CONSISTENT_NV = 0x86dd;
|
||||
public static final int GL_CONST_EYE_NV = 0x86e5;
|
||||
public static final int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86e4;
|
||||
public static final int GL_OFFSET_TEXTURE_BIAS_NV = 0x86e3;
|
||||
public static final int GL_OFFSET_TEXTURE_SCALE_NV = 0x86e2;
|
||||
public static final int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86e1;
|
||||
public static final int GL_CULL_MODES_NV = 0x86e0;
|
||||
public static final int GL_SHADER_OPERATION_NV = 0x86df;
|
||||
public static final int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86d9;
|
||||
public static final int GL_TEXTURE_SHADER_NV = 0x86de;
|
||||
public static final int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86d9;
|
||||
public static final int GL_SHADER_OPERATION_NV = 0x86df;
|
||||
public static final int GL_CULL_MODES_NV = 0x86e0;
|
||||
public static final int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86e1;
|
||||
public static final int GL_OFFSET_TEXTURE_SCALE_NV = 0x86e2;
|
||||
public static final int GL_OFFSET_TEXTURE_BIAS_NV = 0x86e3;
|
||||
public static final int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86e4;
|
||||
public static final int GL_CONST_EYE_NV = 0x86e5;
|
||||
public static final int GL_SHADER_CONSISTENT_NV = 0x86dd;
|
||||
public static final int GL_PASS_THROUGH_NV = 0x86e6;
|
||||
public static final int GL_CULL_FRAGMENT_NV = 0x86e7;
|
||||
public static final int GL_OFFSET_TEXTURE_2D_NV = 0x86e8;
|
||||
public static final int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864c;
|
||||
public static final int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864d;
|
||||
public static final int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86e9;
|
||||
public static final int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86ea;
|
||||
public static final int GL_DOT_PRODUCT_NV = 0x86ec;
|
||||
public static final int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ed;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86ee;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864e;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86f0;
|
||||
public static final int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86f1;
|
||||
public static final int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86f2;
|
||||
public static final int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86f3;
|
||||
public static final int GL_HILO_NV = 0x86f4;
|
||||
public static final int GL_DSDT_NV = 0x86f5;
|
||||
public static final int GL_DSDT_MAG_NV = 0x86f6;
|
||||
public static final int GL_DSDT_MAG_VIB_NV = 0x86f7;
|
||||
public static final int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86da;
|
||||
public static final int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86db;
|
||||
public static final int GL_SIGNED_RGBA_NV = 0x86fb;
|
||||
public static final int GL_SIGNED_RGBA8_NV = 0x86fc;
|
||||
public static final int GL_SIGNED_RGB_NV = 0x86fe;
|
||||
public static final int GL_SIGNED_RGB8_NV = 0x86ff;
|
||||
public static final int GL_SIGNED_LUMINANCE_NV = 0x8701;
|
||||
public static final int GL_SIGNED_LUMINANCE8_NV = 0x8702;
|
||||
public static final int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
|
||||
public static final int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
|
||||
public static final int GL_SIGNED_ALPHA_NV = 0x8705;
|
||||
public static final int GL_SIGNED_ALPHA8_NV = 0x8706;
|
||||
public static final int GL_SIGNED_INTENSITY_NV = 0x8707;
|
||||
public static final int GL_SIGNED_INTENSITY8_NV = 0x8708;
|
||||
public static final int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870c;
|
||||
public static final int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870d;
|
||||
public static final int GL_HILO16_NV = 0x86f8;
|
||||
public static final int GL_SIGNED_HILO_NV = 0x86f9;
|
||||
public static final int GL_SIGNED_HILO16_NV = 0x86fa;
|
||||
public static final int GL_DSDT8_NV = 0x8709;
|
||||
public static final int GL_DSDT8_MAG8_NV = 0x870a;
|
||||
public static final int GL_DSDT_MAG_INTENSITY_NV = 0x86dc;
|
||||
public static final int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870b;
|
||||
public static final int GL_HI_SCALE_NV = 0x870e;
|
||||
public static final int GL_LO_SCALE_NV = 0x870f;
|
||||
public static final int GL_DS_SCALE_NV = 0x8710;
|
||||
public static final int GL_DT_SCALE_NV = 0x8711;
|
||||
public static final int GL_MAGNITUDE_SCALE_NV = 0x8712;
|
||||
public static final int GL_VIBRANCE_SCALE_NV = 0x8713;
|
||||
public static final int GL_HI_BIAS_NV = 0x8714;
|
||||
public static final int GL_LO_BIAS_NV = 0x8715;
|
||||
public static final int GL_DS_BIAS_NV = 0x8716;
|
||||
public static final int GL_DT_BIAS_NV = 0x8717;
|
||||
public static final int GL_MAGNITUDE_BIAS_NV = 0x8718;
|
||||
public static final int GL_VIBRANCE_BIAS_NV = 0x8719;
|
||||
public static final int GL_TEXTURE_BORDER_VALUES_NV = 0x871a;
|
||||
public static final int GL_TEXTURE_HI_SIZE_NV = 0x871b;
|
||||
public static final int GL_TEXTURE_LO_SIZE_NV = 0x871c;
|
||||
public static final int GL_TEXTURE_DS_SIZE_NV = 0x871d;
|
||||
public static final int GL_TEXTURE_DT_SIZE_NV = 0x871e;
|
||||
public static final int GL_TEXTURE_MAG_SIZE_NV = 0x871f;
|
||||
|
||||
private NVTextureShader() {
|
||||
}
|
||||
|
|
|
@ -7,34 +7,34 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureShader2 {
|
||||
public static final int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870b;
|
||||
public static final int GL_DSDT_MAG_INTENSITY_NV = 0x86dc;
|
||||
public static final int GL_DSDT8_MAG8_NV = 0x870a;
|
||||
public static final int GL_DSDT8_NV = 0x8709;
|
||||
public static final int GL_SIGNED_HILO16_NV = 0x86fa;
|
||||
public static final int GL_SIGNED_HILO_NV = 0x86f9;
|
||||
public static final int GL_HILO16_NV = 0x86f8;
|
||||
public static final int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870d;
|
||||
public static final int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870c;
|
||||
public static final int GL_SIGNED_INTENSITY8_NV = 0x8708;
|
||||
public static final int GL_SIGNED_INTENSITY_NV = 0x8707;
|
||||
public static final int GL_SIGNED_ALPHA8_NV = 0x8706;
|
||||
public static final int GL_SIGNED_ALPHA_NV = 0x8705;
|
||||
public static final int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
|
||||
public static final int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
|
||||
public static final int GL_SIGNED_LUMINANCE8_NV = 0x8702;
|
||||
public static final int GL_SIGNED_LUMINANCE_NV = 0x8701;
|
||||
public static final int GL_SIGNED_RGB8_NV = 0x86ff;
|
||||
public static final int GL_SIGNED_RGB_NV = 0x86fe;
|
||||
public static final int GL_SIGNED_RGBA8_NV = 0x86fc;
|
||||
public static final int GL_SIGNED_RGBA_NV = 0x86fb;
|
||||
public static final int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86db;
|
||||
public static final int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86da;
|
||||
public static final int GL_DSDT_MAG_VIB_NV = 0x86f7;
|
||||
public static final int GL_DSDT_MAG_NV = 0x86f6;
|
||||
public static final int GL_DSDT_NV = 0x86f5;
|
||||
public static final int GL_HILO_NV = 0x86f4;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_3D_NV = 0x86ef;
|
||||
public static final int GL_HILO_NV = 0x86f4;
|
||||
public static final int GL_DSDT_NV = 0x86f5;
|
||||
public static final int GL_DSDT_MAG_NV = 0x86f6;
|
||||
public static final int GL_DSDT_MAG_VIB_NV = 0x86f7;
|
||||
public static final int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86da;
|
||||
public static final int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86db;
|
||||
public static final int GL_SIGNED_RGBA_NV = 0x86fb;
|
||||
public static final int GL_SIGNED_RGBA8_NV = 0x86fc;
|
||||
public static final int GL_SIGNED_RGB_NV = 0x86fe;
|
||||
public static final int GL_SIGNED_RGB8_NV = 0x86ff;
|
||||
public static final int GL_SIGNED_LUMINANCE_NV = 0x8701;
|
||||
public static final int GL_SIGNED_LUMINANCE8_NV = 0x8702;
|
||||
public static final int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703;
|
||||
public static final int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704;
|
||||
public static final int GL_SIGNED_ALPHA_NV = 0x8705;
|
||||
public static final int GL_SIGNED_ALPHA8_NV = 0x8706;
|
||||
public static final int GL_SIGNED_INTENSITY_NV = 0x8707;
|
||||
public static final int GL_SIGNED_INTENSITY8_NV = 0x8708;
|
||||
public static final int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870c;
|
||||
public static final int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870d;
|
||||
public static final int GL_HILO16_NV = 0x86f8;
|
||||
public static final int GL_SIGNED_HILO_NV = 0x86f9;
|
||||
public static final int GL_SIGNED_HILO16_NV = 0x86fa;
|
||||
public static final int GL_DSDT8_NV = 0x8709;
|
||||
public static final int GL_DSDT8_MAG8_NV = 0x870a;
|
||||
public static final int GL_DSDT_MAG_INTENSITY_NV = 0x86dc;
|
||||
public static final int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870b;
|
||||
|
||||
private NVTextureShader2() {
|
||||
}
|
||||
|
|
|
@ -7,23 +7,23 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVTextureShader3 {
|
||||
public static final int GL_FORCE_BLUE_TO_ONE_NV = 0x8860;
|
||||
public static final int GL_SIGNED_HILO8_NV = 0x885f;
|
||||
public static final int GL_HILO8_NV = 0x885e;
|
||||
public static final int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885d;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885c;
|
||||
public static final int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885b;
|
||||
public static final int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885a;
|
||||
public static final int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859;
|
||||
public static final int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858;
|
||||
public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857;
|
||||
public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856;
|
||||
public static final int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855;
|
||||
public static final int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852;
|
||||
public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853;
|
||||
public static final int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854;
|
||||
public static final int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855;
|
||||
public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856;
|
||||
public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857;
|
||||
public static final int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858;
|
||||
public static final int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859;
|
||||
public static final int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885a;
|
||||
public static final int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885b;
|
||||
public static final int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885c;
|
||||
public static final int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885d;
|
||||
public static final int GL_HILO8_NV = 0x885e;
|
||||
public static final int GL_SIGNED_HILO8_NV = 0x885f;
|
||||
public static final int GL_FORCE_BLUE_TO_ONE_NV = 0x8860;
|
||||
|
||||
private NVTextureShader3() {
|
||||
}
|
||||
|
|
|
@ -7,39 +7,16 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVVertexArrayRange {
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521;
|
||||
public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851f;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851e;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_NV = 0x851d;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851e;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851f;
|
||||
public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520;
|
||||
public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521;
|
||||
|
||||
private NVVertexArrayRange() {
|
||||
}
|
||||
|
||||
|
||||
public static void glFreeMemoryNV(ByteBuffer pointer) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFreeMemoryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pointer);
|
||||
nglFreeMemoryNV(pointer, pointer.position(), function_pointer);
|
||||
}
|
||||
private static native void nglFreeMemoryNV(Buffer pointer, int pointer_position, long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glAllocateMemoryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglAllocateMemoryNV(size, readFrequency, writeFrequency, priority, size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority, int result_size, long function_pointer);
|
||||
|
||||
public static void glFlushVertexArrayRangeNV() {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFlushVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFlushVertexArrayRangeNV(function_pointer);
|
||||
}
|
||||
private static native void nglFlushVertexArrayRangeNV(long function_pointer);
|
||||
|
||||
public static void glVertexArrayRangeNV(ByteBuffer pPointer) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
@ -65,4 +42,27 @@ public final class NVVertexArrayRange {
|
|||
nglVertexArrayRangeNV((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglVertexArrayRangeNV(int size, Buffer pPointer, int pPointer_position, long function_pointer);
|
||||
|
||||
public static void glFlushVertexArrayRangeNV() {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFlushVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglFlushVertexArrayRangeNV(function_pointer);
|
||||
}
|
||||
private static native void nglFlushVertexArrayRangeNV(long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glAllocateMemoryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglAllocateMemoryNV(size, readFrequency, writeFrequency, priority, size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority, int result_size, long function_pointer);
|
||||
|
||||
public static void glFreeMemoryNV(ByteBuffer pointer) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFreeMemoryNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pointer);
|
||||
nglFreeMemoryNV(pointer, pointer.position(), function_pointer);
|
||||
}
|
||||
private static native void nglFreeMemoryNV(Buffer pointer, int pointer_position, long function_pointer);
|
||||
}
|
||||
|
|
|
@ -7,215 +7,158 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVVertexProgram extends NVProgram {
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867f;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867e;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867d;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867c;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867b;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867a;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866f;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866e;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866d;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866c;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866b;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866a;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865f;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865e;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865d;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865c;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865b;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865a;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650;
|
||||
public static final int GL_INVERSE_TRANSPOSE_NV = 0x862d;
|
||||
public static final int GL_TRANSPOSE_NV = 0x862c;
|
||||
public static final int GL_INVERSE_NV = 0x862b;
|
||||
public static final int GL_IDENTITY_NV = 0x862a;
|
||||
public static final int GL_MATRIX7_NV = 0x8637;
|
||||
public static final int GL_MATRIX6_NV = 0x8636;
|
||||
public static final int GL_MATRIX5_NV = 0x8635;
|
||||
public static final int GL_MATRIX4_NV = 0x8634;
|
||||
public static final int GL_MATRIX3_NV = 0x8633;
|
||||
public static final int GL_MATRIX2_NV = 0x8632;
|
||||
public static final int GL_MATRIX1_NV = 0x8631;
|
||||
public static final int GL_MATRIX0_NV = 0x8630;
|
||||
public static final int GL_MODELVIEW_PROJECTION_NV = 0x8629;
|
||||
public static final int GL_VERTEX_PROGRAM_BINDING_NV = 0x864a;
|
||||
public static final int GL_CURRENT_MATRIX_NV = 0x8641;
|
||||
public static final int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640;
|
||||
public static final int GL_MAX_TRACK_MATRICES_NV = 0x862f;
|
||||
public static final int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862e;
|
||||
public static final int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649;
|
||||
public static final int GL_TRACK_MATRIX_NV = 0x8648;
|
||||
public static final int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645;
|
||||
public static final int GL_PROGRAM_PARAMETER_NV = 0x8644;
|
||||
public static final int GL_CURRENT_ATTRIB_NV = 0x8626;
|
||||
public static final int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625;
|
||||
public static final int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624;
|
||||
public static final int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623;
|
||||
public static final int GL_VERTEX_STATE_PROGRAM_NV = 0x8621;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642;
|
||||
public static final int GL_VERTEX_PROGRAM_NV = 0x8620;
|
||||
public static final int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642;
|
||||
public static final int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643;
|
||||
public static final int GL_VERTEX_STATE_PROGRAM_NV = 0x8621;
|
||||
public static final int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623;
|
||||
public static final int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624;
|
||||
public static final int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625;
|
||||
public static final int GL_CURRENT_ATTRIB_NV = 0x8626;
|
||||
public static final int GL_PROGRAM_PARAMETER_NV = 0x8644;
|
||||
public static final int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645;
|
||||
public static final int GL_TRACK_MATRIX_NV = 0x8648;
|
||||
public static final int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649;
|
||||
public static final int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862e;
|
||||
public static final int GL_MAX_TRACK_MATRICES_NV = 0x862f;
|
||||
public static final int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640;
|
||||
public static final int GL_CURRENT_MATRIX_NV = 0x8641;
|
||||
public static final int GL_VERTEX_PROGRAM_BINDING_NV = 0x864a;
|
||||
public static final int GL_MODELVIEW_PROJECTION_NV = 0x8629;
|
||||
public static final int GL_MATRIX0_NV = 0x8630;
|
||||
public static final int GL_MATRIX1_NV = 0x8631;
|
||||
public static final int GL_MATRIX2_NV = 0x8632;
|
||||
public static final int GL_MATRIX3_NV = 0x8633;
|
||||
public static final int GL_MATRIX4_NV = 0x8634;
|
||||
public static final int GL_MATRIX5_NV = 0x8635;
|
||||
public static final int GL_MATRIX6_NV = 0x8636;
|
||||
public static final int GL_MATRIX7_NV = 0x8637;
|
||||
public static final int GL_IDENTITY_NV = 0x862a;
|
||||
public static final int GL_INVERSE_NV = 0x862b;
|
||||
public static final int GL_TRANSPOSE_NV = 0x862c;
|
||||
public static final int GL_INVERSE_TRANSPOSE_NV = 0x862d;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865a;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865b;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865c;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865d;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865e;
|
||||
public static final int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865f;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866a;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866b;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866c;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866d;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866e;
|
||||
public static final int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866f;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867a;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867b;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867c;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867d;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867e;
|
||||
public static final int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867f;
|
||||
|
||||
private NVVertexProgram() {
|
||||
}
|
||||
|
||||
|
||||
public static void glVertexAttribs4NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4fvNV_pointer;
|
||||
public static void glExecuteProgramNV(int target, int id, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glExecuteProgramNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs4fvNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglExecuteProgramNV(target, id, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglExecuteProgramNV(int target, int id, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs4NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4svNV_pointer;
|
||||
public static void glGetProgramParameterNV(int target, int index, int parameterName, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetProgramParameterfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs4svNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramParameterfvNV(target, index, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglGetProgramParameterfvNV(int target, int index, int parameterName, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs3NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3fvNV_pointer;
|
||||
public static void glGetTrackMatrixNV(int target, int address, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetTrackMatrixivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs3fvNV(index, (v.remaining()) / 3, v, v.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetTrackMatrixivNV(target, address, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglGetTrackMatrixivNV(int target, int address, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs3NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3svNV_pointer;
|
||||
public static void glGetVertexAttribNV(int index, int parameterName, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribfvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs3svNV(index, (v.remaining()) / 3, v, v.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribfvNV(index, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglGetVertexAttribfvNV(int index, int parameterName, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs2NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2fvNV_pointer;
|
||||
public static void glGetVertexAttribNV(int index, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribivNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs2fvNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribivNV(index, parameterName, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglGetVertexAttribivNV(int index, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs2NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2svNV_pointer;
|
||||
public static java.nio.ByteBuffer glGetVertexAttribPointerNV(int index, int parameterName, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribPointervNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs2svNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVertexAttribPointervNV(index, parameterName, result_size, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
private static native java.nio.ByteBuffer nglGetVertexAttribPointervNV(int index, int parameterName, int result_size, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs1NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1fvNV_pointer;
|
||||
public static void glProgramParameter4fNV(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameter4fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs1fvNV(index, (v.remaining()), v, v.position(), function_pointer);
|
||||
nglProgramParameter4fNV(target, index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglProgramParameter4fNV(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs1NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1svNV_pointer;
|
||||
public static void glProgramParameters4NV(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameters4fvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs1svNV(index, (v.remaining()), v, v.position(), function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglProgramParameters4fvNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
private static native void nglProgramParameters4fvNV(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4ubNV_pointer;
|
||||
public static void glTrackMatrixNV(int target, int address, int matrix, int transform) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glTrackMatrixNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4ubNV(index, x, y, z, w, function_pointer);
|
||||
nglTrackMatrixNV(target, address, matrix, transform, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4fNV(int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4fNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4fNV(int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib4sNV(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib4sNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib4sNV(int index, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3fNV(int index, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3fNV(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3fNV(int index, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib3sNV(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib3sNV(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib3sNV(int index, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2fNV(int index, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2fNV(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2fNV(int index, float x, float y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib2sNV(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib2sNV(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib2sNV(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1fNV(int index, float x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1fNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1fNV(int index, float x, long function_pointer);
|
||||
|
||||
public static void glVertexAttrib1sNV(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttrib1sNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttrib1sNV(int index, short x, long function_pointer);
|
||||
private static native void nglTrackMatrixNV(int target, int address, int matrix, int transform, long function_pointer);
|
||||
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, FloatBuffer buffer) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer;
|
||||
|
@ -258,73 +201,130 @@ public final class NVVertexProgram extends NVProgram {
|
|||
}
|
||||
private static native void nglVertexAttribPointerNVBO(int index, int size, int type, int stride, int buffer_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glTrackMatrixNV(int target, int address, int matrix, int transform) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glTrackMatrixNV_pointer;
|
||||
public static void glVertexAttrib1sNV(int index, short x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTrackMatrixNV(target, address, matrix, transform, function_pointer);
|
||||
nglVertexAttrib1sNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglTrackMatrixNV(int target, int address, int matrix, int transform, long function_pointer);
|
||||
private static native void nglVertexAttrib1sNV(int index, short x, long function_pointer);
|
||||
|
||||
public static void glProgramParameters4NV(int target, int index, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameters4fvNV_pointer;
|
||||
public static void glVertexAttrib1fNV(int index, float x) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglProgramParameters4fvNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer);
|
||||
nglVertexAttrib1fNV(index, x, function_pointer);
|
||||
}
|
||||
private static native void nglProgramParameters4fvNV(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib1fNV(int index, float x, long function_pointer);
|
||||
|
||||
public static void glProgramParameter4fNV(int target, int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameter4fNV_pointer;
|
||||
public static void glVertexAttrib2sNV(int index, short x, short y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglProgramParameter4fNV(target, index, x, y, z, w, function_pointer);
|
||||
nglVertexAttrib2sNV(index, x, y, function_pointer);
|
||||
}
|
||||
private static native void nglProgramParameter4fNV(int target, int index, float x, float y, float z, float w, long function_pointer);
|
||||
private static native void nglVertexAttrib2sNV(int index, short x, short y, long function_pointer);
|
||||
|
||||
public static java.nio.ByteBuffer glGetVertexAttribPointerNV(int index, int parameterName, int result_size) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribPointervNV_pointer;
|
||||
public static void glVertexAttrib2fNV(int index, float x, float y) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
java.nio.ByteBuffer __result = nglGetVertexAttribPointervNV(index, parameterName, result_size, function_pointer);
|
||||
return __result;
|
||||
nglVertexAttrib2fNV(index, x, y, function_pointer);
|
||||
}
|
||||
private static native java.nio.ByteBuffer nglGetVertexAttribPointervNV(int index, int parameterName, int result_size, long function_pointer);
|
||||
private static native void nglVertexAttrib2fNV(int index, float x, float y, long function_pointer);
|
||||
|
||||
public static void glGetVertexAttribNV(int index, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribivNV_pointer;
|
||||
public static void glVertexAttrib3sNV(int index, short x, short y, short z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribivNV(index, parameterName, params, params.position(), function_pointer);
|
||||
nglVertexAttrib3sNV(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglGetVertexAttribivNV(int index, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib3sNV(int index, short x, short y, short z, long function_pointer);
|
||||
|
||||
public static void glGetVertexAttribNV(int index, int parameterName, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribfvNV_pointer;
|
||||
public static void glVertexAttrib3fNV(int index, float x, float y, float z) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVertexAttribfvNV(index, parameterName, params, params.position(), function_pointer);
|
||||
nglVertexAttrib3fNV(index, x, y, z, function_pointer);
|
||||
}
|
||||
private static native void nglGetVertexAttribfvNV(int index, int parameterName, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib3fNV(int index, float x, float y, float z, long function_pointer);
|
||||
|
||||
public static void glGetTrackMatrixNV(int target, int address, int parameterName, IntBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetTrackMatrixivNV_pointer;
|
||||
public static void glVertexAttrib4sNV(int index, short x, short y, short z, short w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4sNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetTrackMatrixivNV(target, address, parameterName, params, params.position(), function_pointer);
|
||||
nglVertexAttrib4sNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglGetTrackMatrixivNV(int target, int address, int parameterName, IntBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib4sNV(int index, short x, short y, short z, short w, long function_pointer);
|
||||
|
||||
public static void glGetProgramParameterNV(int target, int index, int parameterName, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetProgramParameterfvNV_pointer;
|
||||
public static void glVertexAttrib4fNV(int index, float x, float y, float z, float w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4fNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetProgramParameterfvNV(target, index, parameterName, params, params.position(), function_pointer);
|
||||
nglVertexAttrib4fNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglGetProgramParameterfvNV(int target, int index, int parameterName, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib4fNV(int index, float x, float y, float z, float w, long function_pointer);
|
||||
|
||||
public static void glExecuteProgramNV(int target, int id, FloatBuffer params) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glExecuteProgramNV_pointer;
|
||||
public static void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4ubNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglExecuteProgramNV(target, id, params, params.position(), function_pointer);
|
||||
nglVertexAttrib4ubNV(index, x, y, z, w, function_pointer);
|
||||
}
|
||||
private static native void nglExecuteProgramNV(int target, int id, FloatBuffer params, int params_position, long function_pointer);
|
||||
private static native void nglVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs1NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1svNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs1svNV(index, (v.remaining()), v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs1NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1fvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs1fvNV(index, (v.remaining()), v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs2NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2svNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs2svNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs2NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2fvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs2fvNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs3NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3svNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs3svNV(index, (v.remaining()) / 3, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs3NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3fvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs3fvNV(index, (v.remaining()) / 3, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs4NV(int index, ShortBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4svNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs4svNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer);
|
||||
|
||||
public static void glVertexAttribs4NV(int index, FloatBuffer v) {
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4fvNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(v);
|
||||
nglVertexAttribs4fvNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer);
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.lwjgl.BufferChecks;
|
|||
import java.nio.*;
|
||||
|
||||
public final class NVVertexProgram2Option {
|
||||
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;
|
||||
|
||||
private NVVertexProgram2Option() {
|
||||
}
|
||||
|
|
|
@ -11,12 +11,12 @@ class References {
|
|||
java.nio.Buffer EXT_secondary_color_glSecondaryColorPointerEXT_pPointer;
|
||||
java.nio.Buffer EXT_vertex_shader_glVariantPointerEXT_pAddr;
|
||||
java.nio.Buffer EXT_vertex_weighting_glVertexWeightPointerEXT_pPointer;
|
||||
java.nio.Buffer GL11_glTexCoordPointer_pointer;
|
||||
java.nio.Buffer GL11_glVertexPointer_pointer;
|
||||
java.nio.IntBuffer GL11_glSelectBuffer_buffer;
|
||||
java.nio.Buffer GL11_glNormalPointer_pointer;
|
||||
java.nio.Buffer GL11_glEdgeFlagPointer_pointer;
|
||||
java.nio.Buffer GL11_glColorPointer_pointer;
|
||||
java.nio.Buffer GL11_glEdgeFlagPointer_pointer;
|
||||
java.nio.Buffer GL11_glNormalPointer_pointer;
|
||||
java.nio.IntBuffer GL11_glSelectBuffer_buffer;
|
||||
java.nio.Buffer GL11_glVertexPointer_pointer;
|
||||
java.nio.Buffer GL11_glTexCoordPointer_pointer;
|
||||
java.nio.Buffer GL14_glFogCoordPointer_data;
|
||||
java.nio.Buffer GL20_glVertexAttribPointer_buffer;
|
||||
java.nio.Buffer NV_vertex_program_glVertexAttribPointerNV_buffer;
|
||||
|
@ -30,12 +30,12 @@ class References {
|
|||
this.EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = references.EXT_secondary_color_glSecondaryColorPointerEXT_pPointer;
|
||||
this.EXT_vertex_shader_glVariantPointerEXT_pAddr = references.EXT_vertex_shader_glVariantPointerEXT_pAddr;
|
||||
this.EXT_vertex_weighting_glVertexWeightPointerEXT_pPointer = references.EXT_vertex_weighting_glVertexWeightPointerEXT_pPointer;
|
||||
this.GL11_glTexCoordPointer_pointer = references.GL11_glTexCoordPointer_pointer;
|
||||
this.GL11_glVertexPointer_pointer = references.GL11_glVertexPointer_pointer;
|
||||
this.GL11_glSelectBuffer_buffer = references.GL11_glSelectBuffer_buffer;
|
||||
this.GL11_glNormalPointer_pointer = references.GL11_glNormalPointer_pointer;
|
||||
this.GL11_glEdgeFlagPointer_pointer = references.GL11_glEdgeFlagPointer_pointer;
|
||||
this.GL11_glColorPointer_pointer = references.GL11_glColorPointer_pointer;
|
||||
this.GL11_glEdgeFlagPointer_pointer = references.GL11_glEdgeFlagPointer_pointer;
|
||||
this.GL11_glNormalPointer_pointer = references.GL11_glNormalPointer_pointer;
|
||||
this.GL11_glSelectBuffer_buffer = references.GL11_glSelectBuffer_buffer;
|
||||
this.GL11_glVertexPointer_pointer = references.GL11_glVertexPointer_pointer;
|
||||
this.GL11_glTexCoordPointer_pointer = references.GL11_glTexCoordPointer_pointer;
|
||||
this.GL14_glFogCoordPointer_data = references.GL14_glFogCoordPointer_data;
|
||||
this.GL20_glVertexAttribPointer_buffer = references.GL20_glVertexAttribPointer_buffer;
|
||||
this.NV_vertex_program_glVertexAttribPointerNV_buffer = references.NV_vertex_program_glVertexAttribPointerNV_buffer;
|
||||
|
|
|
@ -3,71 +3,21 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetBufferPointervARBPROC) (GLenum target, GLenum pname, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glGetBufferParameterivARBPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef GLboolean (APIENTRY *glUnmapBufferARBPROC) (GLenum target);
|
||||
typedef GLvoid * (APIENTRY *glMapBufferARBPROC) (GLenum target, GLenum access);
|
||||
typedef void (APIENTRY *glGetBufferSubDataARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid * data);
|
||||
typedef void (APIENTRY *glBufferSubDataARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
|
||||
typedef void (APIENTRY *glBufferDataARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
|
||||
typedef GLboolean (APIENTRY *glIsBufferARBPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glGenBuffersARBPROC) (GLint n, GLuint * buffers);
|
||||
typedef void (APIENTRY *glDeleteBuffersARBPROC) (GLsizei n, const GLuint * buffers);
|
||||
typedef void (APIENTRY *glBindBufferARBPROC) (GLenum target, GLuint buffer);
|
||||
typedef void (APIENTRY *glDeleteBuffersARBPROC) (GLsizei n, const GLuint * buffers);
|
||||
typedef void (APIENTRY *glGenBuffersARBPROC) (GLint n, GLuint * buffers);
|
||||
typedef GLboolean (APIENTRY *glIsBufferARBPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glBufferDataARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
|
||||
typedef void (APIENTRY *glBufferSubDataARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
|
||||
typedef void (APIENTRY *glGetBufferSubDataARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid * data);
|
||||
typedef GLvoid * (APIENTRY *glMapBufferARBPROC) (GLenum target, GLenum access);
|
||||
typedef GLboolean (APIENTRY *glUnmapBufferARBPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetBufferParameterivARBPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetBufferPointervARBPROC) (GLenum target, GLenum pname, GLvoid ** pointer);
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferPointervARB(JNIEnv *env, jclass clazz, jint target, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetBufferPointervARBPROC glGetBufferPointervARB = (glGetBufferPointervARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetBufferPointervARB(target, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferParameterivARB(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetBufferParameterivARBPROC glGetBufferParameterivARB = (glGetBufferParameterivARBPROC)((intptr_t)function_pointer);
|
||||
glGetBufferParameterivARB(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglUnmapBufferARB(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glUnmapBufferARBPROC glUnmapBufferARB = (glUnmapBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glUnmapBufferARB(target);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglMapBufferARB(JNIEnv *env, jclass clazz, jint target, jint access, jint result_size, jobject old_buffer, jlong function_pointer) {
|
||||
glMapBufferARBPROC glMapBufferARB = (glMapBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result = glMapBufferARB(target, access);
|
||||
return safeNewBufferCached(env, __result, result_size, old_buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferSubDataARB(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetBufferSubDataARBPROC glGetBufferSubDataARB = (glGetBufferSubDataARBPROC)((intptr_t)function_pointer);
|
||||
glGetBufferSubDataARB(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBufferSubDataARB(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glBufferSubDataARBPROC glBufferSubDataARB = (glBufferSubDataARBPROC)((intptr_t)function_pointer);
|
||||
glBufferSubDataARB(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBufferDataARB(JNIEnv *env, jclass clazz, jint target, jint size, jobject data, jint data_position, jint usage, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, data)) + data_position));
|
||||
glBufferDataARBPROC glBufferDataARB = (glBufferDataARBPROC)((intptr_t)function_pointer);
|
||||
glBufferDataARB(target, size, data_address, usage);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglIsBufferARB(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsBufferARBPROC glIsBufferARB = (glIsBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsBufferARB(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGenBuffersARB(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
GLuint *buffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glGenBuffersARBPROC glGenBuffersARB = (glGenBuffersARBPROC)((intptr_t)function_pointer);
|
||||
glGenBuffersARB(n, buffers_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBindBufferARB(JNIEnv *env, jclass clazz, jint target, jint buffer, jlong function_pointer) {
|
||||
glBindBufferARBPROC glBindBufferARB = (glBindBufferARBPROC)((intptr_t)function_pointer);
|
||||
glBindBufferARB(target, buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglDeleteBuffersARB(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
|
@ -76,8 +26,58 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglDeleteBuffersARB
|
|||
glDeleteBuffersARB(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBindBufferARB(JNIEnv *env, jclass clazz, jint target, jint buffer, jlong function_pointer) {
|
||||
glBindBufferARBPROC glBindBufferARB = (glBindBufferARBPROC)((intptr_t)function_pointer);
|
||||
glBindBufferARB(target, buffer);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGenBuffersARB(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
GLuint *buffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glGenBuffersARBPROC glGenBuffersARB = (glGenBuffersARBPROC)((intptr_t)function_pointer);
|
||||
glGenBuffersARB(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglIsBufferARB(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsBufferARBPROC glIsBufferARB = (glIsBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsBufferARB(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBufferDataARB(JNIEnv *env, jclass clazz, jint target, jint size, jobject data, jint data_position, jint usage, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, data)) + data_position));
|
||||
glBufferDataARBPROC glBufferDataARB = (glBufferDataARBPROC)((intptr_t)function_pointer);
|
||||
glBufferDataARB(target, size, data_address, usage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglBufferSubDataARB(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glBufferSubDataARBPROC glBufferSubDataARB = (glBufferSubDataARBPROC)((intptr_t)function_pointer);
|
||||
glBufferSubDataARB(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferSubDataARB(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetBufferSubDataARBPROC glGetBufferSubDataARB = (glGetBufferSubDataARBPROC)((intptr_t)function_pointer);
|
||||
glGetBufferSubDataARB(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglMapBufferARB(JNIEnv *env, jclass clazz, jint target, jint access, jint result_size, jobject old_buffer, jlong function_pointer) {
|
||||
glMapBufferARBPROC glMapBufferARB = (glMapBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result = glMapBufferARB(target, access);
|
||||
return safeNewBufferCached(env, __result, result_size, old_buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglUnmapBufferARB(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glUnmapBufferARBPROC glUnmapBufferARB = (glUnmapBufferARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glUnmapBufferARB(target);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferParameterivARB(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetBufferParameterivARBPROC glGetBufferParameterivARB = (glGetBufferParameterivARBPROC)((intptr_t)function_pointer);
|
||||
glGetBufferParameterivARB(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBBufferObject_nglGetBufferPointervARB(JNIEnv *env, jclass clazz, jint target, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetBufferPointervARBPROC glGetBufferPointervARB = (glGetBufferPointervARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetBufferPointervARB(target, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,40 +3,276 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetSeparableFilterPROC) (GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
|
||||
typedef void (APIENTRY *glSeparableFilter2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
|
||||
typedef void (APIENTRY *glGetConvolutionParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetConvolutionParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetConvolutionFilterPROC) (GLenum target, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glCopyConvolutionFilter2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRY *glCopyConvolutionFilter1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glConvolutionParameterivPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glConvolutionParameteriPROC) (GLenum target, GLenum pname, GLint params);
|
||||
typedef void (APIENTRY *glConvolutionParameterfvPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glConvolutionParameterfPROC) (GLenum target, GLenum pname, GLfloat params);
|
||||
typedef void (APIENTRY *glConvolutionFilter2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glConvolutionFilter1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glGetMinmaxParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetMinmaxParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetMinmaxPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid * values);
|
||||
typedef void (APIENTRY *glResetMinmaxPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glMinmaxPROC) (GLenum target, GLenum internalformat, GLboolean sink);
|
||||
typedef void (APIENTRY *glGetHistogramParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetHistogramParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetHistogramPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
|
||||
typedef void (APIENTRY *glResetHistogramPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glHistogramPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
|
||||
typedef void (APIENTRY *glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
typedef void (APIENTRY *glBlendEquationPROC) (GLenum mode);
|
||||
typedef void (APIENTRY *glGetColorTableParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetColorTableParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetColorTablePROC) (GLenum target, GLenum format, GLenum type, GLvoid * data);
|
||||
typedef void (APIENTRY *glCopyColorTablePROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glCopyColorSubTablePROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glColorTableParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glColorTableParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glColorSubTablePROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glColorTablePROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glColorSubTablePROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glColorTableParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glColorTableParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glCopyColorSubTablePROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glCopyColorTablePROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glGetColorTablePROC) (GLenum target, GLenum format, GLenum type, GLvoid * data);
|
||||
typedef void (APIENTRY *glGetColorTableParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetColorTableParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glBlendEquationPROC) (GLenum mode);
|
||||
typedef void (APIENTRY *glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
typedef void (APIENTRY *glHistogramPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
|
||||
typedef void (APIENTRY *glResetHistogramPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetHistogramPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values);
|
||||
typedef void (APIENTRY *glGetHistogramParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetHistogramParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glMinmaxPROC) (GLenum target, GLenum internalformat, GLboolean sink);
|
||||
typedef void (APIENTRY *glResetMinmaxPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetMinmaxPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid * values);
|
||||
typedef void (APIENTRY *glGetMinmaxParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetMinmaxParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glConvolutionFilter1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glConvolutionFilter2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glConvolutionParameterfPROC) (GLenum target, GLenum pname, GLfloat params);
|
||||
typedef void (APIENTRY *glConvolutionParameterfvPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glConvolutionParameteriPROC) (GLenum target, GLenum pname, GLint params);
|
||||
typedef void (APIENTRY *glConvolutionParameterivPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glCopyConvolutionFilter1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
|
||||
typedef void (APIENTRY *glCopyConvolutionFilter2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRY *glGetConvolutionFilterPROC) (GLenum target, GLenum format, GLenum type, GLvoid * image);
|
||||
typedef void (APIENTRY *glGetConvolutionParameterfvPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetConvolutionParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glSeparableFilter2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column);
|
||||
typedef void (APIENTRY *glGetSeparableFilterPROC) (GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorTablePROC glColorTable = (glColorTablePROC)((intptr_t)function_pointer);
|
||||
glColorTable(target, internalFormat, width, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableBO(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glColorTablePROC glColorTable = (glColorTablePROC)((intptr_t)function_pointer);
|
||||
glColorTable(target, internalFormat, width, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable(JNIEnv *env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorSubTablePROC glColorSubTable = (glColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glColorSubTable(target, start, count, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTableBO(JNIEnv *env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glColorSubTablePROC glColorSubTable = (glColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glColorSubTable(target, start, count, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glColorTableParameterivPROC glColorTableParameteriv = (glColorTableParameterivPROC)((intptr_t)function_pointer);
|
||||
glColorTableParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glColorTableParameterfvPROC glColorTableParameterfv = (glColorTableParameterfvPROC)((intptr_t)function_pointer);
|
||||
glColorTableParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyColorSubTable(JNIEnv *env, jclass clazz, jint target, jint start, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyColorSubTablePROC glCopyColorSubTable = (glCopyColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glCopyColorSubTable(target, start, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyColorTable(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyColorTablePROC glCopyColorTable = (glCopyColorTablePROC)((intptr_t)function_pointer);
|
||||
glCopyColorTable(target, internalformat, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetColorTablePROC glGetColorTable = (glGetColorTablePROC)((intptr_t)function_pointer);
|
||||
glGetColorTable(target, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterivPROC glGetColorTableParameteriv = (glGetColorTableParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterfvPROC glGetColorTableParameterfv = (glGetColorTableParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglBlendEquation(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) {
|
||||
glBlendEquationPROC glBlendEquation = (glBlendEquationPROC)((intptr_t)function_pointer);
|
||||
glBlendEquation(mode);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglBlendColor(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) {
|
||||
glBlendColorPROC glBlendColor = (glBlendColorPROC)((intptr_t)function_pointer);
|
||||
glBlendColor(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglHistogram(JNIEnv *env, jclass clazz, jint target, jint width, jint internalformat, jboolean sink, jlong function_pointer) {
|
||||
glHistogramPROC glHistogram = (glHistogramPROC)((intptr_t)function_pointer);
|
||||
glHistogram(target, width, internalformat, sink);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglResetHistogram(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glResetHistogramPROC glResetHistogram = (glResetHistogramPROC)((intptr_t)function_pointer);
|
||||
glResetHistogram(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, values)) + values_position));
|
||||
glGetHistogramPROC glGetHistogram = (glGetHistogramPROC)((intptr_t)function_pointer);
|
||||
glGetHistogram(target, reset, format, type, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramBO(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jint values_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)offsetToPointer(values_buffer_offset));
|
||||
glGetHistogramPROC glGetHistogram = (glGetHistogramPROC)((intptr_t)function_pointer);
|
||||
glGetHistogram(target, reset, format, type, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetHistogramParameterfvPROC glGetHistogramParameterfv = (glGetHistogramParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetHistogramParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetHistogramParameterivPROC glGetHistogramParameteriv = (glGetHistogramParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetHistogramParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglMinmax(JNIEnv *env, jclass clazz, jint target, jint internalformat, jboolean sink, jlong function_pointer) {
|
||||
glMinmaxPROC glMinmax = (glMinmaxPROC)((intptr_t)function_pointer);
|
||||
glMinmax(target, internalformat, sink);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglResetMinmax(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glResetMinmaxPROC glResetMinmax = (glResetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glResetMinmax(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint types, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, values)) + values_position));
|
||||
glGetMinmaxPROC glGetMinmax = (glGetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glGetMinmax(target, reset, format, types, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxBO(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint types, jint values_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)offsetToPointer(values_buffer_offset));
|
||||
glGetMinmaxPROC glGetMinmax = (glGetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glGetMinmax(target, reset, format, types, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMinmaxParameterfvPROC glGetMinmaxParameterfv = (glGetMinmaxParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetMinmaxParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMinmaxParameterivPROC glGetMinmaxParameteriv = (glGetMinmaxParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetMinmaxParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glConvolutionFilter1DPROC glConvolutionFilter1D = (glConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter1D(target, internalformat, width, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glConvolutionFilter1DPROC glConvolutionFilter1D = (glConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter1D(target, internalformat, width, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glConvolutionFilter2DPROC glConvolutionFilter2D = (glConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter2D(target, internalformat, width, height, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glConvolutionFilter2DPROC glConvolutionFilter2D = (glConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter2D(target, internalformat, width, height, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterf(JNIEnv *env, jclass clazz, jint target, jint pname, jfloat params, jlong function_pointer) {
|
||||
glConvolutionParameterfPROC glConvolutionParameterf = (glConvolutionParameterfPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameterf(target, pname, params);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glConvolutionParameterfvPROC glConvolutionParameterfv = (glConvolutionParameterfvPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteri(JNIEnv *env, jclass clazz, jint target, jint pname, jint params, jlong function_pointer) {
|
||||
glConvolutionParameteriPROC glConvolutionParameteri = (glConvolutionParameteriPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameteri(target, pname, params);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glConvolutionParameterivPROC glConvolutionParameteriv = (glConvolutionParameterivPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyConvolutionFilter1D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyConvolutionFilter1DPROC glCopyConvolutionFilter1D = (glCopyConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glCopyConvolutionFilter1D(target, internalformat, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyConvolutionFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jint height, jlong function_pointer) {
|
||||
glCopyConvolutionFilter2DPROC glCopyConvolutionFilter2D = (glCopyConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glCopyConvolutionFilter2D(target, internalformat, x, y, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glGetConvolutionFilterPROC glGetConvolutionFilter = (glGetConvolutionFilterPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionFilter(target, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilterBO(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glGetConvolutionFilterPROC glGetConvolutionFilter = (glGetConvolutionFilterPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionFilter(target, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetConvolutionParameterfvPROC glGetConvolutionParameterfv = (glGetConvolutionParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetConvolutionParameterivPROC glGetConvolutionParameteriv = (glGetConvolutionParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject row, jint row_position, jobject column, jint column_position, jlong function_pointer) {
|
||||
const GLvoid *row_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, row)) + row_position));
|
||||
const GLvoid *column_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, column)) + column_position));
|
||||
glSeparableFilter2DPROC glSeparableFilter2D = (glSeparableFilter2DPROC)((intptr_t)function_pointer);
|
||||
glSeparableFilter2D(target, internalformat, width, height, format, type, row_address, column_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint row_buffer_offset, jint column_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *row_address = ((const GLvoid *)offsetToPointer(row_buffer_offset));
|
||||
const GLvoid *column_address = ((const GLvoid *)offsetToPointer(column_buffer_offset));
|
||||
glSeparableFilter2DPROC glSeparableFilter2D = (glSeparableFilter2DPROC)((intptr_t)function_pointer);
|
||||
glSeparableFilter2D(target, internalformat, width, height, format, type, row_address, column_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilter(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject row, jint row_position, jobject column, jint column_position, jobject span, jint span_position, jlong function_pointer) {
|
||||
GLvoid *row_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, row)) + row_position));
|
||||
|
@ -54,239 +290,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilterBO(
|
|||
glGetSeparableFilter(target, format, type, row_address, column_address, span_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject row, jint row_position, jobject column, jint column_position, jlong function_pointer) {
|
||||
const GLvoid *row_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, row)) + row_position));
|
||||
const GLvoid *column_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, column)) + column_position));
|
||||
glSeparableFilter2DPROC glSeparableFilter2D = (glSeparableFilter2DPROC)((intptr_t)function_pointer);
|
||||
glSeparableFilter2D(target, internalformat, width, height, format, type, row_address, column_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint row_buffer_offset, jint column_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *row_address = ((const GLvoid *)offsetToPointer(row_buffer_offset));
|
||||
const GLvoid *column_address = ((const GLvoid *)offsetToPointer(column_buffer_offset));
|
||||
glSeparableFilter2DPROC glSeparableFilter2D = (glSeparableFilter2DPROC)((intptr_t)function_pointer);
|
||||
glSeparableFilter2D(target, internalformat, width, height, format, type, row_address, column_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetConvolutionParameterivPROC glGetConvolutionParameteriv = (glGetConvolutionParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetConvolutionParameterfvPROC glGetConvolutionParameterfv = (glGetConvolutionParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glGetConvolutionFilterPROC glGetConvolutionFilter = (glGetConvolutionFilterPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionFilter(target, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilterBO(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glGetConvolutionFilterPROC glGetConvolutionFilter = (glGetConvolutionFilterPROC)((intptr_t)function_pointer);
|
||||
glGetConvolutionFilter(target, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyConvolutionFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jint height, jlong function_pointer) {
|
||||
glCopyConvolutionFilter2DPROC glCopyConvolutionFilter2D = (glCopyConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glCopyConvolutionFilter2D(target, internalformat, x, y, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyConvolutionFilter1D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyConvolutionFilter1DPROC glCopyConvolutionFilter1D = (glCopyConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glCopyConvolutionFilter1D(target, internalformat, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glConvolutionParameterivPROC glConvolutionParameteriv = (glConvolutionParameterivPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteri(JNIEnv *env, jclass clazz, jint target, jint pname, jint params, jlong function_pointer) {
|
||||
glConvolutionParameteriPROC glConvolutionParameteri = (glConvolutionParameteriPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameteri(target, pname, params);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glConvolutionParameterfvPROC glConvolutionParameterfv = (glConvolutionParameterfvPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterf(JNIEnv *env, jclass clazz, jint target, jint pname, jfloat params, jlong function_pointer) {
|
||||
glConvolutionParameterfPROC glConvolutionParameterf = (glConvolutionParameterfPROC)((intptr_t)function_pointer);
|
||||
glConvolutionParameterf(target, pname, params);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glConvolutionFilter2DPROC glConvolutionFilter2D = (glConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter2D(target, internalformat, width, height, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glConvolutionFilter2DPROC glConvolutionFilter2D = (glConvolutionFilter2DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter2D(target, internalformat, width, height, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jobject image, jint image_position, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, image)) + image_position));
|
||||
glConvolutionFilter1DPROC glConvolutionFilter1D = (glConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter1D(target, internalformat, width, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1DBO(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jint image_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *image_address = ((GLvoid *)offsetToPointer(image_buffer_offset));
|
||||
glConvolutionFilter1DPROC glConvolutionFilter1D = (glConvolutionFilter1DPROC)((intptr_t)function_pointer);
|
||||
glConvolutionFilter1D(target, internalformat, width, format, type, image_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMinmaxParameterivPROC glGetMinmaxParameteriv = (glGetMinmaxParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetMinmaxParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMinmaxParameterfvPROC glGetMinmaxParameterfv = (glGetMinmaxParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetMinmaxParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint types, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, values)) + values_position));
|
||||
glGetMinmaxPROC glGetMinmax = (glGetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glGetMinmax(target, reset, format, types, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxBO(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint types, jint values_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)offsetToPointer(values_buffer_offset));
|
||||
glGetMinmaxPROC glGetMinmax = (glGetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glGetMinmax(target, reset, format, types, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglResetMinmax(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glResetMinmaxPROC glResetMinmax = (glResetMinmaxPROC)((intptr_t)function_pointer);
|
||||
glResetMinmax(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglMinmax(JNIEnv *env, jclass clazz, jint target, jint internalformat, jboolean sink, jlong function_pointer) {
|
||||
glMinmaxPROC glMinmax = (glMinmaxPROC)((intptr_t)function_pointer);
|
||||
glMinmax(target, internalformat, sink);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetHistogramParameterivPROC glGetHistogramParameteriv = (glGetHistogramParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetHistogramParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetHistogramParameterfvPROC glGetHistogramParameterfv = (glGetHistogramParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetHistogramParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, values)) + values_position));
|
||||
glGetHistogramPROC glGetHistogram = (glGetHistogramPROC)((intptr_t)function_pointer);
|
||||
glGetHistogram(target, reset, format, type, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramBO(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jint values_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *values_address = ((GLvoid *)offsetToPointer(values_buffer_offset));
|
||||
glGetHistogramPROC glGetHistogram = (glGetHistogramPROC)((intptr_t)function_pointer);
|
||||
glGetHistogram(target, reset, format, type, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglResetHistogram(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glResetHistogramPROC glResetHistogram = (glResetHistogramPROC)((intptr_t)function_pointer);
|
||||
glResetHistogram(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglHistogram(JNIEnv *env, jclass clazz, jint target, jint width, jint internalformat, jboolean sink, jlong function_pointer) {
|
||||
glHistogramPROC glHistogram = (glHistogramPROC)((intptr_t)function_pointer);
|
||||
glHistogram(target, width, internalformat, sink);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglBlendColor(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) {
|
||||
glBlendColorPROC glBlendColor = (glBlendColorPROC)((intptr_t)function_pointer);
|
||||
glBlendColor(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglBlendEquation(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) {
|
||||
glBlendEquationPROC glBlendEquation = (glBlendEquationPROC)((intptr_t)function_pointer);
|
||||
glBlendEquation(mode);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterfvPROC glGetColorTableParameterfv = (glGetColorTableParameterfvPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterivPROC glGetColorTableParameteriv = (glGetColorTableParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetColorTablePROC glGetColorTable = (glGetColorTablePROC)((intptr_t)function_pointer);
|
||||
glGetColorTable(target, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyColorTable(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyColorTablePROC glCopyColorTable = (glCopyColorTablePROC)((intptr_t)function_pointer);
|
||||
glCopyColorTable(target, internalformat, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglCopyColorSubTable(JNIEnv *env, jclass clazz, jint target, jint start, jint x, jint y, jint width, jlong function_pointer) {
|
||||
glCopyColorSubTablePROC glCopyColorSubTable = (glCopyColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glCopyColorSubTable(target, start, x, y, width);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glColorTableParameterfvPROC glColorTableParameterfv = (glColorTableParameterfvPROC)((intptr_t)function_pointer);
|
||||
glColorTableParameterfv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glColorTableParameterivPROC glColorTableParameteriv = (glColorTableParameterivPROC)((intptr_t)function_pointer);
|
||||
glColorTableParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable(JNIEnv *env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorSubTablePROC glColorSubTable = (glColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glColorSubTable(target, start, count, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTableBO(JNIEnv *env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glColorSubTablePROC glColorSubTable = (glColorSubTablePROC)((intptr_t)function_pointer);
|
||||
glColorSubTable(target, start, count, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorTablePROC glColorTable = (glColorTablePROC)((intptr_t)function_pointer);
|
||||
glColorTable(target, internalFormat, width, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableBO(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glColorTablePROC glColorTable = (glColorTablePROC)((intptr_t)function_pointer);
|
||||
glColorTable(target, internalFormat, width, format, type, data_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,28 +3,15 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glMatrixIndexuivARBPROC) (GLint size, GLuint * pIndices);
|
||||
typedef void (APIENTRY *glMatrixIndexusvARBPROC) (GLint size, GLushort * pIndices);
|
||||
typedef void (APIENTRY *glMatrixIndexubvARBPROC) (GLint size, GLubyte * pIndices);
|
||||
typedef void (APIENTRY *glMatrixIndexPointerARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glCurrentPaletteMatrixARBPROC) (GLint index);
|
||||
typedef void (APIENTRY *glMatrixIndexPointerARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glMatrixIndexubvARBPROC) (GLint size, GLubyte * pIndices);
|
||||
typedef void (APIENTRY *glMatrixIndexusvARBPROC) (GLint size, GLushort * pIndices);
|
||||
typedef void (APIENTRY *glMatrixIndexuivARBPROC) (GLint size, GLuint * pIndices);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLuint *pIndices_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexuivARBPROC glMatrixIndexuivARB = (glMatrixIndexuivARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexuivARB(size, pIndices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLushort *pIndices_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexusvARBPROC glMatrixIndexusvARB = (glMatrixIndexusvARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexusvARB(size, pIndices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLubyte *pIndices_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexubvARBPROC glMatrixIndexubvARB = (glMatrixIndexubvARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexubvARB(size, pIndices_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglCurrentPaletteMatrixARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glCurrentPaletteMatrixARBPROC glCurrentPaletteMatrixARB = (glCurrentPaletteMatrixARBPROC)((intptr_t)function_pointer);
|
||||
glCurrentPaletteMatrixARB(index);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
|
@ -39,8 +26,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPoin
|
|||
glMatrixIndexPointerARB(size, type, stride, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglCurrentPaletteMatrixARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glCurrentPaletteMatrixARBPROC glCurrentPaletteMatrixARB = (glCurrentPaletteMatrixARBPROC)((intptr_t)function_pointer);
|
||||
glCurrentPaletteMatrixARB(index);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLubyte *pIndices_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexubvARBPROC glMatrixIndexubvARB = (glMatrixIndexubvARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexubvARB(size, pIndices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLushort *pIndices_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexusvARBPROC glMatrixIndexusvARB = (glMatrixIndexusvARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexusvARB(size, pIndices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB(JNIEnv *env, jclass clazz, jint size, jobject pIndices, jint pIndices_position, jlong function_pointer) {
|
||||
GLuint *pIndices_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pIndices)) + pIndices_position;
|
||||
glMatrixIndexuivARBPROC glMatrixIndexuivARB = (glMatrixIndexuivARBPROC)((intptr_t)function_pointer);
|
||||
glMatrixIndexuivARB(size, pIndices_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,79 +3,24 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glMultiTexCoord4sARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
|
||||
typedef void (APIENTRY *glMultiTexCoord4iARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
|
||||
typedef void (APIENTRY *glMultiTexCoord4fARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
typedef void (APIENTRY *glMultiTexCoord3sARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
|
||||
typedef void (APIENTRY *glMultiTexCoord3iARBPROC) (GLenum target, GLint s, GLint t, GLint r);
|
||||
typedef void (APIENTRY *glMultiTexCoord3fARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
|
||||
typedef void (APIENTRY *glMultiTexCoord2sARBPROC) (GLenum target, GLshort s, GLshort t);
|
||||
typedef void (APIENTRY *glMultiTexCoord2iARBPROC) (GLenum target, GLint s, GLint t);
|
||||
typedef void (APIENTRY *glMultiTexCoord2fARBPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
typedef void (APIENTRY *glMultiTexCoord1sARBPROC) (GLenum target, GLshort s);
|
||||
typedef void (APIENTRY *glMultiTexCoord1iARBPROC) (GLenum target, GLint s);
|
||||
typedef void (APIENTRY *glMultiTexCoord1fARBPROC) (GLenum target, GLfloat s);
|
||||
typedef void (APIENTRY *glActiveTextureARBPROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glClientActiveTextureARBPROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glActiveTextureARBPROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glMultiTexCoord1fARBPROC) (GLenum target, GLfloat s);
|
||||
typedef void (APIENTRY *glMultiTexCoord1iARBPROC) (GLenum target, GLint s);
|
||||
typedef void (APIENTRY *glMultiTexCoord1sARBPROC) (GLenum target, GLshort s);
|
||||
typedef void (APIENTRY *glMultiTexCoord2fARBPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
typedef void (APIENTRY *glMultiTexCoord2iARBPROC) (GLenum target, GLint s, GLint t);
|
||||
typedef void (APIENTRY *glMultiTexCoord2sARBPROC) (GLenum target, GLshort s, GLshort t);
|
||||
typedef void (APIENTRY *glMultiTexCoord3fARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
|
||||
typedef void (APIENTRY *glMultiTexCoord3iARBPROC) (GLenum target, GLint s, GLint t, GLint r);
|
||||
typedef void (APIENTRY *glMultiTexCoord3sARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
|
||||
typedef void (APIENTRY *glMultiTexCoord4fARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
typedef void (APIENTRY *glMultiTexCoord4iARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
|
||||
typedef void (APIENTRY *glMultiTexCoord4sARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glMultiTexCoord4sARBPROC glMultiTexCoord4sARB = (glMultiTexCoord4sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4sARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r, jint q, jlong function_pointer) {
|
||||
glMultiTexCoord4iARBPROC glMultiTexCoord4iARB = (glMultiTexCoord4iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4iARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q, jlong function_pointer) {
|
||||
glMultiTexCoord4fARBPROC glMultiTexCoord4fARB = (glMultiTexCoord4fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4fARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glMultiTexCoord3sARBPROC glMultiTexCoord3sARB = (glMultiTexCoord3sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3sARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r, jlong function_pointer) {
|
||||
glMultiTexCoord3iARBPROC glMultiTexCoord3iARB = (glMultiTexCoord3iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3iARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jlong function_pointer) {
|
||||
glMultiTexCoord3fARBPROC glMultiTexCoord3fARB = (glMultiTexCoord3fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3fARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jlong function_pointer) {
|
||||
glMultiTexCoord2sARBPROC glMultiTexCoord2sARB = (glMultiTexCoord2sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2sARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jlong function_pointer) {
|
||||
glMultiTexCoord2iARBPROC glMultiTexCoord2iARB = (glMultiTexCoord2iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2iARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jlong function_pointer) {
|
||||
glMultiTexCoord2fARBPROC glMultiTexCoord2fARB = (glMultiTexCoord2fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2fARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jlong function_pointer) {
|
||||
glMultiTexCoord1sARBPROC glMultiTexCoord1sARB = (glMultiTexCoord1sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1sARB(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1iARB(JNIEnv *env, jclass clazz, jint target, jint s, jlong function_pointer) {
|
||||
glMultiTexCoord1iARBPROC glMultiTexCoord1iARB = (glMultiTexCoord1iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1iARB(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jlong function_pointer) {
|
||||
glMultiTexCoord1fARBPROC glMultiTexCoord1fARB = (glMultiTexCoord1fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1fARB(target, s);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglClientActiveTextureARB(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glClientActiveTextureARBPROC glClientActiveTextureARB = (glClientActiveTextureARBPROC)((intptr_t)function_pointer);
|
||||
glClientActiveTextureARB(texture);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglActiveTextureARB(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
|
@ -83,8 +28,63 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglActiveTextureARB
|
|||
glActiveTextureARB(texture);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglClientActiveTextureARB(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glClientActiveTextureARBPROC glClientActiveTextureARB = (glClientActiveTextureARBPROC)((intptr_t)function_pointer);
|
||||
glClientActiveTextureARB(texture);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jlong function_pointer) {
|
||||
glMultiTexCoord1fARBPROC glMultiTexCoord1fARB = (glMultiTexCoord1fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1fARB(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1iARB(JNIEnv *env, jclass clazz, jint target, jint s, jlong function_pointer) {
|
||||
glMultiTexCoord1iARBPROC glMultiTexCoord1iARB = (glMultiTexCoord1iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1iARB(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord1sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jlong function_pointer) {
|
||||
glMultiTexCoord1sARBPROC glMultiTexCoord1sARB = (glMultiTexCoord1sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1sARB(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jlong function_pointer) {
|
||||
glMultiTexCoord2fARBPROC glMultiTexCoord2fARB = (glMultiTexCoord2fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2fARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jlong function_pointer) {
|
||||
glMultiTexCoord2iARBPROC glMultiTexCoord2iARB = (glMultiTexCoord2iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2iARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord2sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jlong function_pointer) {
|
||||
glMultiTexCoord2sARBPROC glMultiTexCoord2sARB = (glMultiTexCoord2sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2sARB(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jlong function_pointer) {
|
||||
glMultiTexCoord3fARBPROC glMultiTexCoord3fARB = (glMultiTexCoord3fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3fARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r, jlong function_pointer) {
|
||||
glMultiTexCoord3iARBPROC glMultiTexCoord3iARB = (glMultiTexCoord3iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3iARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord3sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glMultiTexCoord3sARBPROC glMultiTexCoord3sARB = (glMultiTexCoord3sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3sARB(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4fARB(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q, jlong function_pointer) {
|
||||
glMultiTexCoord4fARBPROC glMultiTexCoord4fARB = (glMultiTexCoord4fARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4fARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4iARB(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r, jint q, jlong function_pointer) {
|
||||
glMultiTexCoord4iARBPROC glMultiTexCoord4iARB = (glMultiTexCoord4iARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4iARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_nglMultiTexCoord4sARB(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glMultiTexCoord4sARBPROC glMultiTexCoord4sARB = (glMultiTexCoord4sARBPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4sARB(target, s, t, r, q);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,47 +3,19 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetQueryObjectuivARBPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectivARBPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryivARBPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glEndQueryARBPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glBeginQueryARBPROC) (GLenum target, GLuint id);
|
||||
typedef GLboolean (APIENTRY *glIsQueryARBPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glDeleteQueriesARBPROC) (GLsizei n, GLuint * ids);
|
||||
typedef void (APIENTRY *glGenQueriesARBPROC) (GLsizei n, GLuint * ids);
|
||||
typedef void (APIENTRY *glDeleteQueriesARBPROC) (GLsizei n, GLuint * ids);
|
||||
typedef GLboolean (APIENTRY *glIsQueryARBPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glBeginQueryARBPROC) (GLenum target, GLuint id);
|
||||
typedef void (APIENTRY *glEndQueryARBPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetQueryivARBPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectivARBPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectuivARBPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectuivARBPROC glGetQueryObjectuivARB = (glGetQueryObjectuivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectuivARB(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectivARBPROC glGetQueryObjectivARB = (glGetQueryObjectivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectivARB(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryivARBPROC glGetQueryivARB = (glGetQueryivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryivARB(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglEndQueryARB(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glEndQueryARBPROC glEndQueryARB = (glEndQueryARBPROC)((intptr_t)function_pointer);
|
||||
glEndQueryARB(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglBeginQueryARB(JNIEnv *env, jclass clazz, jint target, jint id, jlong function_pointer) {
|
||||
glBeginQueryARBPROC glBeginQueryARB = (glBeginQueryARBPROC)((intptr_t)function_pointer);
|
||||
glBeginQueryARB(target, id);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglIsQueryARB(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsQueryARBPROC glIsQueryARB = (glIsQueryARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsQueryARB(id);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glGenQueriesARBPROC glGenQueriesARB = (glGenQueriesARBPROC)((intptr_t)function_pointer);
|
||||
glGenQueriesARB(n, ids_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesARB(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
|
@ -52,9 +24,37 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesA
|
|||
glDeleteQueriesARB(n, ids_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glGenQueriesARBPROC glGenQueriesARB = (glGenQueriesARBPROC)((intptr_t)function_pointer);
|
||||
glGenQueriesARB(n, ids_address);
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglIsQueryARB(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsQueryARBPROC glIsQueryARB = (glIsQueryARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsQueryARB(id);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglBeginQueryARB(JNIEnv *env, jclass clazz, jint target, jint id, jlong function_pointer) {
|
||||
glBeginQueryARBPROC glBeginQueryARB = (glBeginQueryARBPROC)((intptr_t)function_pointer);
|
||||
glBeginQueryARB(target, id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglEndQueryARB(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glEndQueryARBPROC glEndQueryARB = (glEndQueryARBPROC)((intptr_t)function_pointer);
|
||||
glEndQueryARB(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryivARBPROC glGetQueryivARB = (glGetQueryivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryivARB(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectivARBPROC glGetQueryObjectivARB = (glGetQueryObjectivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectivARB(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectuivARBPROC glGetQueryObjectuivARB = (glGetQueryObjectuivARBPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectuivARB(id, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glPointParameterfvARBPROC) (GLenum pname, GLfloat * pfParams);
|
||||
typedef void (APIENTRY *glPointParameterfARBPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glPointParameterfvARBPROC) (GLenum pname, GLfloat * pfParams);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfARB(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfARBPROC glPointParameterfARB = (glPointParameterfARBPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfARB(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfvARB(JNIEnv *env, jclass clazz, jint pname, jobject pfParams, jint pfParams_position, jlong function_pointer) {
|
||||
GLfloat *pfParams_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams)) + pfParams_position;
|
||||
|
@ -12,8 +17,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParamete
|
|||
glPointParameterfvARB(pname, pfParams_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfARB(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfARBPROC glPointParameterfARB = (glPointParameterfARBPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfARB(pname, param);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,76 +3,29 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef GLboolean (APIENTRY *glIsProgramARBPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glGetProgramStringARBPROC) (GLenum target, GLenum parameterName, GLvoid * paramString);
|
||||
typedef void (APIENTRY *glGetProgramivARBPROC) (GLenum target, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetProgramLocalParameterfvARBPROC) (GLenum target, GLuint index, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetProgramEnvParameterfvARBPROC) (GLenum target, GLuint index, GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramLocalParameter4fvARBPROC) (GLenum target, GLuint index, const GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramLocalParameter4fARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glProgramEnvParameter4fvARBPROC) (GLenum target, GLuint index, const GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramEnvParameter4fARBPROC) (GLint target, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glGenProgramsARBPROC) (GLsizei n, GLuint * programs);
|
||||
typedef void (APIENTRY *glDeleteProgramsARBPROC) (GLsizei n, const GLuint * programs);
|
||||
typedef void (APIENTRY *glBindProgramARBPROC) (GLenum target, GLuint program);
|
||||
typedef void (APIENTRY *glProgramStringARBPROC) (GLenum target, GLenum format, GLsizei length, const GLvoid * string);
|
||||
typedef void (APIENTRY *glBindProgramARBPROC) (GLenum target, GLuint program);
|
||||
typedef void (APIENTRY *glDeleteProgramsARBPROC) (GLsizei n, const GLuint * programs);
|
||||
typedef void (APIENTRY *glGenProgramsARBPROC) (GLsizei n, GLuint * programs);
|
||||
typedef void (APIENTRY *glProgramEnvParameter4fARBPROC) (GLint target, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glProgramEnvParameter4fvARBPROC) (GLenum target, GLuint index, const GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramLocalParameter4fARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glProgramLocalParameter4fvARBPROC) (GLenum target, GLuint index, const GLfloat * params);
|
||||
typedef void (APIENTRY *glGetProgramEnvParameterfvARBPROC) (GLenum target, GLuint index, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetProgramLocalParameterfvARBPROC) (GLenum target, GLuint index, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetProgramivARBPROC) (GLenum target, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetProgramStringARBPROC) (GLenum target, GLenum parameterName, GLvoid * paramString);
|
||||
typedef GLboolean (APIENTRY *glIsProgramARBPROC) (GLuint program);
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBProgram_nglIsProgramARB(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glIsProgramARBPROC glIsProgramARB = (glIsProgramARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgramARB(program);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB(JNIEnv *env, jclass clazz, jint target, jint format, jint length, jobject string, jint string_position, jlong function_pointer) {
|
||||
const GLvoid *string_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, string)) + string_position));
|
||||
glProgramStringARBPROC glProgramStringARB = (glProgramStringARBPROC)((intptr_t)function_pointer);
|
||||
glProgramStringARB(target, format, length, string_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB(JNIEnv *env, jclass clazz, jint target, jint parameterName, jobject paramString, jint paramString_position, jlong function_pointer) {
|
||||
GLvoid *paramString_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, paramString)) + paramString_position));
|
||||
glGetProgramStringARBPROC glGetProgramStringARB = (glGetProgramStringARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramStringARB(target, parameterName, paramString_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB(JNIEnv *env, jclass clazz, jint target, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivARBPROC glGetProgramivARB = (glGetProgramivARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramivARB(target, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramLocalParameterfvARBPROC glGetProgramLocalParameterfvARB = (glGetProgramLocalParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramLocalParameterfvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramEnvParameterfvARBPROC glGetProgramEnvParameterfvARB = (glGetProgramEnvParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramEnvParameterfvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramLocalParameter4fvARBPROC glProgramLocalParameter4fvARB = (glProgramLocalParameter4fvARBPROC)((intptr_t)function_pointer);
|
||||
glProgramLocalParameter4fvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fARB(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramLocalParameter4fARBPROC glProgramLocalParameter4fARB = (glProgramLocalParameter4fARBPROC)((intptr_t)function_pointer);
|
||||
glProgramLocalParameter4fARB(target, index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramEnvParameter4fvARBPROC glProgramEnvParameter4fvARB = (glProgramEnvParameter4fvARBPROC)((intptr_t)function_pointer);
|
||||
glProgramEnvParameter4fvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fARB(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramEnvParameter4fARBPROC glProgramEnvParameter4fARB = (glProgramEnvParameter4fARBPROC)((intptr_t)function_pointer);
|
||||
glProgramEnvParameter4fARB(target, index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
GLuint *programs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glGenProgramsARBPROC glGenProgramsARB = (glGenProgramsARBPROC)((intptr_t)function_pointer);
|
||||
glGenProgramsARB(n, programs_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglBindProgramARB(JNIEnv *env, jclass clazz, jint target, jint program, jlong function_pointer) {
|
||||
glBindProgramARBPROC glBindProgramARB = (glBindProgramARBPROC)((intptr_t)function_pointer);
|
||||
glBindProgramARB(target, program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
|
@ -81,14 +34,61 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB(JNI
|
|||
glDeleteProgramsARB(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglBindProgramARB(JNIEnv *env, jclass clazz, jint target, jint program, jlong function_pointer) {
|
||||
glBindProgramARBPROC glBindProgramARB = (glBindProgramARBPROC)((intptr_t)function_pointer);
|
||||
glBindProgramARB(target, program);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
GLuint *programs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glGenProgramsARBPROC glGenProgramsARB = (glGenProgramsARBPROC)((intptr_t)function_pointer);
|
||||
glGenProgramsARB(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB(JNIEnv *env, jclass clazz, jint target, jint format, jint length, jobject string, jint string_position, jlong function_pointer) {
|
||||
const GLvoid *string_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, string)) + string_position));
|
||||
glProgramStringARBPROC glProgramStringARB = (glProgramStringARBPROC)((intptr_t)function_pointer);
|
||||
glProgramStringARB(target, format, length, string_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fARB(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramEnvParameter4fARBPROC glProgramEnvParameter4fARB = (glProgramEnvParameter4fARBPROC)((intptr_t)function_pointer);
|
||||
glProgramEnvParameter4fARB(target, index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramEnvParameter4fvARBPROC glProgramEnvParameter4fvARB = (glProgramEnvParameter4fvARBPROC)((intptr_t)function_pointer);
|
||||
glProgramEnvParameter4fvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fARB(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramLocalParameter4fARBPROC glProgramLocalParameter4fARB = (glProgramLocalParameter4fARBPROC)((intptr_t)function_pointer);
|
||||
glProgramLocalParameter4fARB(target, index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramLocalParameter4fvARBPROC glProgramLocalParameter4fvARB = (glProgramLocalParameter4fvARBPROC)((intptr_t)function_pointer);
|
||||
glProgramLocalParameter4fvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramEnvParameterfvARBPROC glGetProgramEnvParameterfvARB = (glGetProgramEnvParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramEnvParameterfvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramLocalParameterfvARBPROC glGetProgramLocalParameterfvARB = (glGetProgramLocalParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramLocalParameterfvARB(target, index, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB(JNIEnv *env, jclass clazz, jint target, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivARBPROC glGetProgramivARB = (glGetProgramivARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramivARB(target, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB(JNIEnv *env, jclass clazz, jint target, jint parameterName, jobject paramString, jint paramString_position, jlong function_pointer) {
|
||||
GLvoid *paramString_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, paramString)) + paramString_position));
|
||||
glGetProgramStringARBPROC glGetProgramStringARB = (glGetProgramStringARBPROC)((intptr_t)function_pointer);
|
||||
glGetProgramStringARB(target, parameterName, paramString_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBProgram_nglIsProgramARB(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glIsProgramARBPROC glIsProgramARB = (glIsProgramARBPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgramARB(program);
|
||||
return __result;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,63 +3,242 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetShaderSourceARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * source);
|
||||
typedef void (APIENTRY *glGetUniformivARBPROC) (GLhandleARB programObj, GLint location, GLint * params);
|
||||
typedef void (APIENTRY *glGetUniformfvARBPROC) (GLhandleARB programObj, GLint location, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetActiveUniformARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
|
||||
typedef GLint (APIENTRY *glGetUniformLocationARBPROC) (GLhandleARB programObj, const GLcharARB * name);
|
||||
typedef void (APIENTRY *glGetAttachedObjectsARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj);
|
||||
typedef void (APIENTRY *glGetInfoLogARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog);
|
||||
typedef void (APIENTRY *glGetObjectParameterivARBPROC) (GLhandleARB obj, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetObjectParameterfvARBPROC) (GLhandleARB obj, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glUniformMatrix4fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix3fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix2fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniform4ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform3ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform2ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform1ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform4fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform3fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform2fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform1fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform4iARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRY *glUniform3iARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRY *glUniform2iARBPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRY *glUniform1iARBPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRY *glUniform4fARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRY *glUniform3fARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRY *glUniform2fARBPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRY *glUniform1fARBPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRY *glValidateProgramARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glUseProgramObjectARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glLinkProgramARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glAttachObjectARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
|
||||
typedef GLhandleARB (APIENTRY *glCreateProgramObjectARBPROC) ();
|
||||
typedef void (APIENTRY *glCompileShaderARBPROC) (GLhandleARB shaderObj);
|
||||
typedef void (APIENTRY *glShaderSourceARBPROC) (GLhandleARB shader, GLsizei count, const GLcharARB ** string, const GLint* length);
|
||||
typedef GLhandleARB (APIENTRY *glCreateShaderObjectARBPROC) (GLenum shaderType);
|
||||
typedef void (APIENTRY *glDetachObjectARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
|
||||
typedef GLhandleARB (APIENTRY *glGetHandleARBPROC) (GLenum pname);
|
||||
typedef void (APIENTRY *glDeleteObjectARBPROC) (GLhandleARB obj);
|
||||
typedef GLhandleARB (APIENTRY *glGetHandleARBPROC) (GLenum pname);
|
||||
typedef void (APIENTRY *glDetachObjectARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
|
||||
typedef GLhandleARB (APIENTRY *glCreateShaderObjectARBPROC) (GLenum shaderType);
|
||||
typedef void (APIENTRY *glShaderSourceARBPROC) (GLhandleARB shader, GLsizei count, const GLcharARB ** string, const GLint* length);
|
||||
typedef void (APIENTRY *glCompileShaderARBPROC) (GLhandleARB shaderObj);
|
||||
typedef GLhandleARB (APIENTRY *glCreateProgramObjectARBPROC) ();
|
||||
typedef void (APIENTRY *glAttachObjectARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
|
||||
typedef void (APIENTRY *glLinkProgramARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glUseProgramObjectARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glValidateProgramARBPROC) (GLhandleARB programObj);
|
||||
typedef void (APIENTRY *glUniform1fARBPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRY *glUniform2fARBPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRY *glUniform3fARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRY *glUniform4fARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRY *glUniform1iARBPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRY *glUniform2iARBPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRY *glUniform3iARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRY *glUniform4iARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRY *glUniform1fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform2fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform3fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform4fvARBPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform1ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform2ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform3ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform4ivARBPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniformMatrix2fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix3fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix4fvARBPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glGetObjectParameterfvARBPROC) (GLhandleARB obj, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetObjectParameterivARBPROC) (GLhandleARB obj, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetInfoLogARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog);
|
||||
typedef void (APIENTRY *glGetAttachedObjectsARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj);
|
||||
typedef GLint (APIENTRY *glGetUniformLocationARBPROC) (GLhandleARB programObj, const GLcharARB * name);
|
||||
typedef void (APIENTRY *glGetActiveUniformARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
|
||||
typedef void (APIENTRY *glGetUniformfvARBPROC) (GLhandleARB programObj, GLint location, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetUniformivARBPROC) (GLhandleARB programObj, GLint location, GLint * params);
|
||||
typedef void (APIENTRY *glGetShaderSourceARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * source);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB(JNIEnv *env, jclass clazz, jint obj, jint maxLength, jobject length, jint length_position, jobject source, jint source_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLcharARB *source_address = ((GLcharARB *)(*env)->GetDirectBufferAddress(env, source)) + source_position;
|
||||
glGetShaderSourceARBPROC glGetShaderSourceARB = (glGetShaderSourceARBPROC)((intptr_t)function_pointer);
|
||||
glGetShaderSourceARB(obj, maxLength, length_address, source_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglDeleteObjectARB(JNIEnv *env, jclass clazz, jint obj, jlong function_pointer) {
|
||||
glDeleteObjectARBPROC glDeleteObjectARB = (glDeleteObjectARBPROC)((intptr_t)function_pointer);
|
||||
glDeleteObjectARB(obj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB(JNIEnv *env, jclass clazz, jint programObj, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformivARBPROC glGetUniformivARB = (glGetUniformivARBPROC)((intptr_t)function_pointer);
|
||||
glGetUniformivARB(programObj, location, params_address);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetHandleARB(JNIEnv *env, jclass clazz, jint pname, jlong function_pointer) {
|
||||
glGetHandleARBPROC glGetHandleARB = (glGetHandleARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glGetHandleARB(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB(JNIEnv *env, jclass clazz, jint programObj, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglDetachObjectARB(JNIEnv *env, jclass clazz, jint containerObj, jint attachedObj, jlong function_pointer) {
|
||||
glDetachObjectARBPROC glDetachObjectARB = (glDetachObjectARBPROC)((intptr_t)function_pointer);
|
||||
glDetachObjectARB(containerObj, attachedObj);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCreateShaderObjectARB(JNIEnv *env, jclass clazz, jint shaderType, jlong function_pointer) {
|
||||
glCreateShaderObjectARBPROC glCreateShaderObjectARB = (glCreateShaderObjectARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glCreateShaderObjectARB(shaderType);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB(JNIEnv *env, jclass clazz, jint shader, jint count, jobject string, jint string_position, jint length, jlong function_pointer) {
|
||||
const GLcharARB *string_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, string)) + string_position;
|
||||
glShaderSourceARBPROC glShaderSourceARB = (glShaderSourceARBPROC)((intptr_t)function_pointer);
|
||||
glShaderSourceARB(shader, count, &string_address, &length);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCompileShaderARB(JNIEnv *env, jclass clazz, jint shaderObj, jlong function_pointer) {
|
||||
glCompileShaderARBPROC glCompileShaderARB = (glCompileShaderARBPROC)((intptr_t)function_pointer);
|
||||
glCompileShaderARB(shaderObj);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCreateProgramObjectARB(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glCreateProgramObjectARBPROC glCreateProgramObjectARB = (glCreateProgramObjectARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glCreateProgramObjectARB();
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglAttachObjectARB(JNIEnv *env, jclass clazz, jint containerObj, jint obj, jlong function_pointer) {
|
||||
glAttachObjectARBPROC glAttachObjectARB = (glAttachObjectARBPROC)((intptr_t)function_pointer);
|
||||
glAttachObjectARB(containerObj, obj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglLinkProgramARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glLinkProgramARBPROC glLinkProgramARB = (glLinkProgramARBPROC)((intptr_t)function_pointer);
|
||||
glLinkProgramARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUseProgramObjectARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glUseProgramObjectARBPROC glUseProgramObjectARB = (glUseProgramObjectARBPROC)((intptr_t)function_pointer);
|
||||
glUseProgramObjectARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglValidateProgramARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glValidateProgramARBPROC glValidateProgramARB = (glValidateProgramARBPROC)((intptr_t)function_pointer);
|
||||
glValidateProgramARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jlong function_pointer) {
|
||||
glUniform1fARBPROC glUniform1fARB = (glUniform1fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1fARB(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jlong function_pointer) {
|
||||
glUniform2fARBPROC glUniform2fARB = (glUniform2fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2fARB(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jlong function_pointer) {
|
||||
glUniform3fARBPROC glUniform3fARB = (glUniform3fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3fARB(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3, jlong function_pointer) {
|
||||
glUniform4fARBPROC glUniform4fARB = (glUniform4fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4fARB(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
|
||||
glUniform1iARBPROC glUniform1iARB = (glUniform1iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1iARB(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
|
||||
glUniform2iARBPROC glUniform2iARB = (glUniform2iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2iARB(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
|
||||
glUniform3iARBPROC glUniform3iARB = (glUniform3iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3iARB(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
|
||||
glUniform4iARBPROC glUniform4iARB = (glUniform4iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4iARB(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1fvARBPROC glUniform1fvARB = (glUniform1fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2fvARBPROC glUniform2fvARB = (glUniform2fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3fvARBPROC glUniform3fvARB = (glUniform3fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4fvARBPROC glUniform4fvARB = (glUniform4fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1ivARBPROC glUniform1ivARB = (glUniform1ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2ivARBPROC glUniform2ivARB = (glUniform2ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3ivARBPROC glUniform3ivARB = (glUniform3ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4ivARBPROC glUniform4ivARB = (glUniform4ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix2fvARBPROC glUniformMatrix2fvARB = (glUniformMatrix2fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix2fvARB(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix3fvARBPROC glUniformMatrix3fvARB = (glUniformMatrix3fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix3fvARB(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix4fvARBPROC glUniformMatrix4fvARB = (glUniformMatrix4fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix4fvARB(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB(JNIEnv *env, jclass clazz, jint obj, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformfvARBPROC glGetUniformfvARB = (glGetUniformfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetUniformfvARB(programObj, location, params_address);
|
||||
glGetObjectParameterfvARBPROC glGetObjectParameterfvARB = (glGetObjectParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetObjectParameterfvARB(obj, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB(JNIEnv *env, jclass clazz, jint obj, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectParameterivARBPROC glGetObjectParameterivARB = (glGetObjectParameterivARBPROC)((intptr_t)function_pointer);
|
||||
glGetObjectParameterivARB(obj, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB(JNIEnv *env, jclass clazz, jint obj, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLcharARB *infoLog_address = ((GLcharARB *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetInfoLogARBPROC glGetInfoLogARB = (glGetInfoLogARBPROC)((intptr_t)function_pointer);
|
||||
glGetInfoLogARB(obj, maxLength, length_address, infoLog_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB(JNIEnv *env, jclass clazz, jint containerObj, jint maxCount, jobject count, jint count_position, jobject obj, jint obj_position, jlong function_pointer) {
|
||||
GLsizei *count_address = ((GLsizei *)safeGetBufferAddress(env, count)) + count_position;
|
||||
GLhandleARB *obj_address = ((GLhandleARB *)(*env)->GetDirectBufferAddress(env, obj)) + obj_position;
|
||||
glGetAttachedObjectsARBPROC glGetAttachedObjectsARB = (glGetAttachedObjectsARBPROC)((intptr_t)function_pointer);
|
||||
glGetAttachedObjectsARB(containerObj, maxCount, count_address, obj_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB(JNIEnv *env, jclass clazz, jint programObj, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLcharARB *name_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetUniformLocationARBPROC glGetUniformLocationARB = (glGetUniformLocationARBPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetUniformLocationARB(programObj, name_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUniformARB(JNIEnv *env, jclass clazz, jint programObj, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
|
@ -71,201 +250,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUnifor
|
|||
glGetActiveUniformARB(programObj, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB(JNIEnv *env, jclass clazz, jint programObj, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLcharARB *name_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetUniformLocationARBPROC glGetUniformLocationARB = (glGetUniformLocationARBPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetUniformLocationARB(programObj, name_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB(JNIEnv *env, jclass clazz, jint containerObj, jint maxCount, jobject count, jint count_position, jobject obj, jint obj_position, jlong function_pointer) {
|
||||
GLsizei *count_address = ((GLsizei *)safeGetBufferAddress(env, count)) + count_position;
|
||||
GLhandleARB *obj_address = ((GLhandleARB *)(*env)->GetDirectBufferAddress(env, obj)) + obj_position;
|
||||
glGetAttachedObjectsARBPROC glGetAttachedObjectsARB = (glGetAttachedObjectsARBPROC)((intptr_t)function_pointer);
|
||||
glGetAttachedObjectsARB(containerObj, maxCount, count_address, obj_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB(JNIEnv *env, jclass clazz, jint obj, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLcharARB *infoLog_address = ((GLcharARB *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetInfoLogARBPROC glGetInfoLogARB = (glGetInfoLogARBPROC)((intptr_t)function_pointer);
|
||||
glGetInfoLogARB(obj, maxLength, length_address, infoLog_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB(JNIEnv *env, jclass clazz, jint obj, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectParameterivARBPROC glGetObjectParameterivARB = (glGetObjectParameterivARBPROC)((intptr_t)function_pointer);
|
||||
glGetObjectParameterivARB(obj, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB(JNIEnv *env, jclass clazz, jint obj, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB(JNIEnv *env, jclass clazz, jint programObj, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectParameterfvARBPROC glGetObjectParameterfvARB = (glGetObjectParameterfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetObjectParameterfvARB(obj, pname, params_address);
|
||||
glGetUniformfvARBPROC glGetUniformfvARB = (glGetUniformfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetUniformfvARB(programObj, location, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix4fvARBPROC glUniformMatrix4fvARB = (glUniformMatrix4fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix4fvARB(location, count, transpose, matrices_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB(JNIEnv *env, jclass clazz, jint programObj, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformivARBPROC glGetUniformivARB = (glGetUniformivARBPROC)((intptr_t)function_pointer);
|
||||
glGetUniformivARB(programObj, location, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix3fvARBPROC glUniformMatrix3fvARB = (glUniformMatrix3fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix3fvARB(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix2fvARBPROC glUniformMatrix2fvARB = (glUniformMatrix2fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix2fvARB(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4ivARBPROC glUniform4ivARB = (glUniform4ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3ivARBPROC glUniform3ivARB = (glUniform3ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2ivARBPROC glUniform2ivARB = (glUniform2ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1ivARBPROC glUniform1ivARB = (glUniform1ivARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1ivARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4fvARBPROC glUniform4fvARB = (glUniform4fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3fvARBPROC glUniform3fvARB = (glUniform3fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2fvARBPROC glUniform2fvARB = (glUniform2fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1fvARBPROC glUniform1fvARB = (glUniform1fvARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1fvARB(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
|
||||
glUniform4iARBPROC glUniform4iARB = (glUniform4iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4iARB(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
|
||||
glUniform3iARBPROC glUniform3iARB = (glUniform3iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3iARB(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
|
||||
glUniform2iARBPROC glUniform2iARB = (glUniform2iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2iARB(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1iARB(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
|
||||
glUniform1iARBPROC glUniform1iARB = (glUniform1iARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1iARB(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3, jlong function_pointer) {
|
||||
glUniform4fARBPROC glUniform4fARB = (glUniform4fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform4fARB(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jlong function_pointer) {
|
||||
glUniform3fARBPROC glUniform3fARB = (glUniform3fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform3fARB(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jlong function_pointer) {
|
||||
glUniform2fARBPROC glUniform2fARB = (glUniform2fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform2fARB(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fARB(JNIEnv *env, jclass clazz, jint location, jfloat v0, jlong function_pointer) {
|
||||
glUniform1fARBPROC glUniform1fARB = (glUniform1fARBPROC)((intptr_t)function_pointer);
|
||||
glUniform1fARB(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglValidateProgramARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glValidateProgramARBPROC glValidateProgramARB = (glValidateProgramARBPROC)((intptr_t)function_pointer);
|
||||
glValidateProgramARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUseProgramObjectARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glUseProgramObjectARBPROC glUseProgramObjectARB = (glUseProgramObjectARBPROC)((intptr_t)function_pointer);
|
||||
glUseProgramObjectARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglLinkProgramARB(JNIEnv *env, jclass clazz, jint programObj, jlong function_pointer) {
|
||||
glLinkProgramARBPROC glLinkProgramARB = (glLinkProgramARBPROC)((intptr_t)function_pointer);
|
||||
glLinkProgramARB(programObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglAttachObjectARB(JNIEnv *env, jclass clazz, jint containerObj, jint obj, jlong function_pointer) {
|
||||
glAttachObjectARBPROC glAttachObjectARB = (glAttachObjectARBPROC)((intptr_t)function_pointer);
|
||||
glAttachObjectARB(containerObj, obj);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCreateProgramObjectARB(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glCreateProgramObjectARBPROC glCreateProgramObjectARB = (glCreateProgramObjectARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glCreateProgramObjectARB();
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCompileShaderARB(JNIEnv *env, jclass clazz, jint shaderObj, jlong function_pointer) {
|
||||
glCompileShaderARBPROC glCompileShaderARB = (glCompileShaderARBPROC)((intptr_t)function_pointer);
|
||||
glCompileShaderARB(shaderObj);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB(JNIEnv *env, jclass clazz, jint shader, jint count, jobject string, jint string_position, jint length, jlong function_pointer) {
|
||||
const GLcharARB *string_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, string)) + string_position;
|
||||
glShaderSourceARBPROC glShaderSourceARB = (glShaderSourceARBPROC)((intptr_t)function_pointer);
|
||||
glShaderSourceARB(shader, count, &string_address, &length);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglCreateShaderObjectARB(JNIEnv *env, jclass clazz, jint shaderType, jlong function_pointer) {
|
||||
glCreateShaderObjectARBPROC glCreateShaderObjectARB = (glCreateShaderObjectARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glCreateShaderObjectARB(shaderType);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglDetachObjectARB(JNIEnv *env, jclass clazz, jint containerObj, jint attachedObj, jlong function_pointer) {
|
||||
glDetachObjectARBPROC glDetachObjectARB = (glDetachObjectARBPROC)((intptr_t)function_pointer);
|
||||
glDetachObjectARB(containerObj, attachedObj);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetHandleARB(JNIEnv *env, jclass clazz, jint pname, jlong function_pointer) {
|
||||
glGetHandleARBPROC glGetHandleARB = (glGetHandleARBPROC)((intptr_t)function_pointer);
|
||||
GLhandleARB __result = glGetHandleARB(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglDeleteObjectARB(JNIEnv *env, jclass clazz, jint obj, jlong function_pointer) {
|
||||
glDeleteObjectARBPROC glDeleteObjectARB = (glDeleteObjectARBPROC)((intptr_t)function_pointer);
|
||||
glDeleteObjectARB(obj);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB(JNIEnv *env, jclass clazz, jint obj, jint maxLength, jobject length, jint length_position, jobject source, jint source_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLcharARB *source_address = ((GLcharARB *)(*env)->GetDirectBufferAddress(env, source)) + source_position;
|
||||
glGetShaderSourceARBPROC glGetShaderSourceARB = (glGetShaderSourceARBPROC)((intptr_t)function_pointer);
|
||||
glGetShaderSourceARB(obj, maxLength, length_address, source_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,72 +3,24 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetCompressedTexImageARBPROC) (GLenum target, GLint lod, GLvoid * pImg);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexImage3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexImage2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexImage1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexImage2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexImage3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * pData);
|
||||
typedef void (APIENTRY *glGetCompressedTexImageARBPROC) (GLenum target, GLint lod, GLvoid * pImg);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB(JNIEnv *env, jclass clazz, jint target, jint lod, jobject pImg, jint pImg_position, jlong function_pointer) {
|
||||
GLvoid *pImg_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pImg)) + pImg_position));
|
||||
glGetCompressedTexImageARBPROC glGetCompressedTexImageARB = (glGetCompressedTexImageARBPROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImageARB(target, lod, pImg_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO(JNIEnv *env, jclass clazz, jint target, jint lod, jint pImg_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *pImg_address = ((GLvoid *)offsetToPointer(pImg_buffer_offset));
|
||||
glGetCompressedTexImageARBPROC glGetCompressedTexImageARB = (glGetCompressedTexImageARBPROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImageARB(target, lod, pImg_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage3DARBPROC glCompressedTexSubImage3DARB = (glCompressedTexSubImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address);
|
||||
glCompressedTexImage1DARBPROC glCompressedTexImage1DARB = (glCompressedTexImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage3DARBPROC glCompressedTexSubImage3DARB = (glCompressedTexSubImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB = (glCompressedTexSubImage2DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB = (glCompressedTexSubImage2DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB = (glCompressedTexSubImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB = (glCompressedTexSubImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexImage3DARBPROC glCompressedTexImage3DARB = (glCompressedTexImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexImage3DARBPROC glCompressedTexImage3DARB = (glCompressedTexImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address);
|
||||
glCompressedTexImage1DARBPROC glCompressedTexImage1DARB = (glCompressedTexImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
|
@ -83,15 +35,63 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed
|
|||
glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexImage1DARBPROC glCompressedTexImage1DARB = (glCompressedTexImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address);
|
||||
glCompressedTexImage3DARBPROC glCompressedTexImage3DARB = (glCompressedTexImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexImage1DARBPROC glCompressedTexImage1DARB = (glCompressedTexImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_address);
|
||||
glCompressedTexImage3DARBPROC glCompressedTexImage3DARB = (glCompressedTexImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB = (glCompressedTexSubImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB = (glCompressedTexSubImage1DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB = (glCompressedTexSubImage2DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB = (glCompressedTexSubImage2DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject pData, jint pData_position, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pData)) + pData_position));
|
||||
glCompressedTexSubImage3DARBPROC glCompressedTexSubImage3DARB = (glCompressedTexSubImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARBBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jint pData_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pData_address = ((const GLvoid *)offsetToPointer(pData_buffer_offset));
|
||||
glCompressedTexSubImage3DARBPROC glCompressedTexSubImage3DARB = (glCompressedTexSubImage3DARBPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB(JNIEnv *env, jclass clazz, jint target, jint lod, jobject pImg, jint pImg_position, jlong function_pointer) {
|
||||
GLvoid *pImg_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pImg)) + pImg_position));
|
||||
glGetCompressedTexImageARBPROC glGetCompressedTexImageARB = (glGetCompressedTexImageARBPROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImageARB(target, lod, pImg_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARBBO(JNIEnv *env, jclass clazz, jint target, jint lod, jint pImg_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *pImg_address = ((GLvoid *)offsetToPointer(pImg_buffer_offset));
|
||||
glGetCompressedTexImageARBPROC glGetCompressedTexImageARB = (glGetCompressedTexImageARBPROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImageARB(target, lod, pImg_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,14 +3,8 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glMultTransposeMatrixfARBPROC) (GLfloat * pfMtx);
|
||||
typedef void (APIENTRY *glLoadTransposeMatrixfARBPROC) (GLfloat * pfMtx);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB(JNIEnv *env, jclass clazz, jobject pfMtx, jint pfMtx_position, jlong function_pointer) {
|
||||
GLfloat *pfMtx_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pfMtx)) + pfMtx_position;
|
||||
glMultTransposeMatrixfARBPROC glMultTransposeMatrixfARB = (glMultTransposeMatrixfARBPROC)((intptr_t)function_pointer);
|
||||
glMultTransposeMatrixfARB(pfMtx_address);
|
||||
}
|
||||
typedef void (APIENTRY *glMultTransposeMatrixfARBPROC) (GLfloat * pfMtx);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTransposeMatrixfARB(JNIEnv *env, jclass clazz, jobject pfMtx, jint pfMtx_position, jlong function_pointer) {
|
||||
GLfloat *pfMtx_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pfMtx)) + pfMtx_position;
|
||||
|
@ -18,3 +12,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTranspose
|
|||
glLoadTransposeMatrixfARB(pfMtx_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB(JNIEnv *env, jclass clazz, jobject pfMtx, jint pfMtx_position, jlong function_pointer) {
|
||||
GLfloat *pfMtx_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pfMtx)) + pfMtx_position;
|
||||
glMultTransposeMatrixfARBPROC glMultTransposeMatrixfARB = (glMultTransposeMatrixfARBPROC)((intptr_t)function_pointer);
|
||||
glMultTransposeMatrixfARB(pfMtx_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,19 +3,56 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glVertexBlendARBPROC) (GLint count);
|
||||
typedef void (APIENTRY *glWeightPointerARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glWeightuivARBPROC) (GLint size, GLuint * pWeights);
|
||||
typedef void (APIENTRY *glWeightusvARBPROC) (GLint size, GLushort * pWeights);
|
||||
typedef void (APIENTRY *glWeightubvARBPROC) (GLint size, GLubyte * pWeights);
|
||||
typedef void (APIENTRY *glWeightfvARBPROC) (GLint size, GLfloat * pWeights);
|
||||
typedef void (APIENTRY *glWeightivARBPROC) (GLint size, GLint * pWeights);
|
||||
typedef void (APIENTRY *glWeightsvARBPROC) (GLint size, GLshort * pWeights);
|
||||
typedef void (APIENTRY *glWeightbvARBPROC) (GLint size, GLbyte * pWeights);
|
||||
typedef void (APIENTRY *glWeightsvARBPROC) (GLint size, GLshort * pWeights);
|
||||
typedef void (APIENTRY *glWeightivARBPROC) (GLint size, GLint * pWeights);
|
||||
typedef void (APIENTRY *glWeightfvARBPROC) (GLint size, GLfloat * pWeights);
|
||||
typedef void (APIENTRY *glWeightubvARBPROC) (GLint size, GLubyte * pWeights);
|
||||
typedef void (APIENTRY *glWeightusvARBPROC) (GLint size, GLushort * pWeights);
|
||||
typedef void (APIENTRY *glWeightuivARBPROC) (GLint size, GLuint * pWeights);
|
||||
typedef void (APIENTRY *glWeightPointerARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glVertexBlendARBPROC) (GLint count);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglVertexBlendARB(JNIEnv *env, jclass clazz, jint count, jlong function_pointer) {
|
||||
glVertexBlendARBPROC glVertexBlendARB = (glVertexBlendARBPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendARB(count);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLbyte *pWeights_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightbvARBPROC glWeightbvARB = (glWeightbvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightbvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLshort *pWeights_address = ((GLshort *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightsvARBPROC glWeightsvARB = (glWeightsvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightsvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLint *pWeights_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightivARBPROC glWeightivARB = (glWeightivARBPROC)((intptr_t)function_pointer);
|
||||
glWeightivARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLfloat *pWeights_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightfvARBPROC glWeightfvARB = (glWeightfvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightfvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLubyte *pWeights_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightubvARBPROC glWeightubvARB = (glWeightubvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightubvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLushort *pWeights_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightusvARBPROC glWeightusvARB = (glWeightusvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightusvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLuint *pWeights_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightuivARBPROC glWeightuivARB = (glWeightuivARBPROC)((intptr_t)function_pointer);
|
||||
glWeightuivARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
|
@ -30,45 +67,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBB
|
|||
glWeightPointerARB(size, type, stride, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLuint *pWeights_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightuivARBPROC glWeightuivARB = (glWeightuivARBPROC)((intptr_t)function_pointer);
|
||||
glWeightuivARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLushort *pWeights_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightusvARBPROC glWeightusvARB = (glWeightusvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightusvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLubyte *pWeights_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightubvARBPROC glWeightubvARB = (glWeightubvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightubvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLfloat *pWeights_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightfvARBPROC glWeightfvARB = (glWeightfvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightfvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLint *pWeights_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightivARBPROC glWeightivARB = (glWeightivARBPROC)((intptr_t)function_pointer);
|
||||
glWeightivARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLshort *pWeights_address = ((GLshort *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightsvARBPROC glWeightsvARB = (glWeightsvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightsvARB(size, pWeights_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB(JNIEnv *env, jclass clazz, jint size, jobject pWeights, jint pWeights_position, jlong function_pointer) {
|
||||
GLbyte *pWeights_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pWeights)) + pWeights_position;
|
||||
glWeightbvARBPROC glWeightbvARB = (glWeightbvARBPROC)((intptr_t)function_pointer);
|
||||
glWeightbvARB(size, pWeights_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglVertexBlendARB(JNIEnv *env, jclass clazz, jint count, jlong function_pointer) {
|
||||
glVertexBlendARBPROC glVertexBlendARB = (glVertexBlendARBPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendARB(count);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,49 +3,65 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervARBPROC) (GLuint index, GLenum pname, GLvoid ** result);
|
||||
typedef void (APIENTRY *glGetVertexAttribivARBPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvARBPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glDisableVertexAttribArrayARBPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glEnableVertexAttribArrayARBPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glVertexAttribPointerARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glVertexAttrib4NubARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib3fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib3sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib2fARBPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib2sARBPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib1fARBPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib1sARBPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRY *glVertexAttrib1fARBPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib2sARBPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib2fARBPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib3sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib3fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib4sARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4NubARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttribPointerARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glEnableVertexAttribArrayARBPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glDisableVertexAttribArrayARBPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvARBPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribivARBPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervARBPROC) (GLuint index, GLenum pname, GLvoid ** result);
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribPointervARB(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervARBPROC glGetVertexAttribPointervARB = (glGetVertexAttribPointervARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointervARB(index, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sARBPROC glVertexAttrib1sARB = (glVertexAttrib1sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1sARB(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivARBPROC glGetVertexAttribivARB = (glGetVertexAttribivARBPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribivARB(index, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fARBPROC glVertexAttrib1fARB = (glVertexAttrib1fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1fARB(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribfvARBPROC glGetVertexAttribfvARB = (glGetVertexAttribfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfvARB(index, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sARBPROC glVertexAttrib2sARB = (glVertexAttrib2sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2sARB(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglDisableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glDisableVertexAttribArrayARBPROC glDisableVertexAttribArrayARB = (glDisableVertexAttribArrayARBPROC)((intptr_t)function_pointer);
|
||||
glDisableVertexAttribArrayARB(index);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fARBPROC glVertexAttrib2fARB = (glVertexAttrib2fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2fARB(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglEnableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glEnableVertexAttribArrayARBPROC glEnableVertexAttribArrayARB = (glEnableVertexAttribArrayARBPROC)((intptr_t)function_pointer);
|
||||
glEnableVertexAttribArrayARB(index);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sARBPROC glVertexAttrib3sARB = (glVertexAttrib3sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3sARB(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fARBPROC glVertexAttrib3fARB = (glVertexAttrib3fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3fARB(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sARBPROC glVertexAttrib4sARB = (glVertexAttrib4sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4sARB(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fARBPROC glVertexAttrib4fARB = (glVertexAttrib4fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4fARB(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NubARB(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4NubARBPROC glVertexAttrib4NubARB = (glVertexAttrib4NubARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4NubARB(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) {
|
||||
|
@ -60,48 +76,32 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPoi
|
|||
glVertexAttribPointerARB(index, size, type, normalized, stride, buffer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NubARB(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4NubARBPROC glVertexAttrib4NubARB = (glVertexAttrib4NubARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4NubARB(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglEnableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glEnableVertexAttribArrayARBPROC glEnableVertexAttribArrayARB = (glEnableVertexAttribArrayARBPROC)((intptr_t)function_pointer);
|
||||
glEnableVertexAttribArrayARB(index);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fARBPROC glVertexAttrib4fARB = (glVertexAttrib4fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4fARB(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglDisableVertexAttribArrayARB(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glDisableVertexAttribArrayARBPROC glDisableVertexAttribArrayARB = (glDisableVertexAttribArrayARBPROC)((intptr_t)function_pointer);
|
||||
glDisableVertexAttribArrayARB(index);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sARBPROC glVertexAttrib4sARB = (glVertexAttrib4sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4sARB(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribfvARBPROC glGetVertexAttribfvARB = (glGetVertexAttribfvARBPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfvARB(index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fARBPROC glVertexAttrib3fARB = (glVertexAttrib3fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3fARB(index, x, y, z);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivARBPROC glGetVertexAttribivARB = (glGetVertexAttribivARBPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribivARB(index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sARBPROC glVertexAttrib3sARB = (glVertexAttrib3sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3sARB(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fARBPROC glVertexAttrib2fARB = (glVertexAttrib2fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2fARB(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sARBPROC glVertexAttrib2sARB = (glVertexAttrib2sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2sARB(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1fARB(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fARBPROC glVertexAttrib1fARB = (glVertexAttrib1fARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1fARB(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1sARB(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sARBPROC glVertexAttrib1sARB = (glVertexAttrib1sARBPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1sARB(index, x);
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribPointervARB(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervARBPROC glGetVertexAttribPointervARB = (glGetVertexAttribPointervARBPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointervARB(index, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,15 +3,14 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef GLint (APIENTRY *glGetAttribLocationARBPROC) (GLhandleARB programObj, const GLcharARB * name);
|
||||
typedef void (APIENTRY *glGetActiveAttribARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
|
||||
typedef void (APIENTRY *glBindAttribLocationARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB * name);
|
||||
typedef void (APIENTRY *glGetActiveAttribARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name);
|
||||
typedef GLint (APIENTRY *glGetAttribLocationARBPROC) (GLhandleARB programObj, const GLcharARB * name);
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB(JNIEnv *env, jclass clazz, jint programObj, jobject name, jint name_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB(JNIEnv *env, jclass clazz, jint programObj, jint index, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLcharARB *name_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetAttribLocationARBPROC glGetAttribLocationARB = (glGetAttribLocationARBPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetAttribLocationARB(programObj, name_address);
|
||||
return __result;
|
||||
glBindAttribLocationARBPROC glBindAttribLocationARB = (glBindAttribLocationARBPROC)((intptr_t)function_pointer);
|
||||
glBindAttribLocationARB(programObj, index, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribARB(JNIEnv *env, jclass clazz, jint programObj, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
|
@ -23,9 +22,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribA
|
|||
glGetActiveAttribARB(programObj, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB(JNIEnv *env, jclass clazz, jint programObj, jint index, jobject name, jint name_position, jlong function_pointer) {
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB(JNIEnv *env, jclass clazz, jint programObj, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLcharARB *name_address = ((const GLcharARB *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glBindAttribLocationARBPROC glBindAttribLocationARB = (glBindAttribLocationARBPROC)((intptr_t)function_pointer);
|
||||
glBindAttribLocationARB(programObj, index, name_address);
|
||||
glGetAttribLocationARBPROC glGetAttribLocationARB = (glGetAttribLocationARBPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetAttribLocationARB(programObj, name_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,31 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glWindowPos3sARBPROC) (GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glWindowPos3iARBPROC) (GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glWindowPos3fARBPROC) (GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glWindowPos2sARBPROC) (GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glWindowPos2iARBPROC) (GLint x, GLint y);
|
||||
typedef void (APIENTRY *glWindowPos2fARBPROC) (GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glWindowPos2iARBPROC) (GLint x, GLint y);
|
||||
typedef void (APIENTRY *glWindowPos2sARBPROC) (GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glWindowPos3fARBPROC) (GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glWindowPos3iARBPROC) (GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glWindowPos3sARBPROC) (GLshort x, GLshort y, GLshort z);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3sARB(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glWindowPos3sARBPROC glWindowPos3sARB = (glWindowPos3sARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3sARB(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3iARB(JNIEnv *env, jclass clazz, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glWindowPos3iARBPROC glWindowPos3iARB = (glWindowPos3iARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3iARB(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3fARB(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glWindowPos3fARBPROC glWindowPos3fARB = (glWindowPos3fARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3fARB(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2sARB(JNIEnv *env, jclass clazz, jshort x, jshort y, jlong function_pointer) {
|
||||
glWindowPos2sARBPROC glWindowPos2sARB = (glWindowPos2sARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2sARB(x, y);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2fARB(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glWindowPos2fARBPROC glWindowPos2fARB = (glWindowPos2fARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2fARB(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2iARB(JNIEnv *env, jclass clazz, jint x, jint y, jlong function_pointer) {
|
||||
|
@ -35,8 +20,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2iARB(JNIE
|
|||
glWindowPos2iARB(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2fARB(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glWindowPos2fARBPROC glWindowPos2fARB = (glWindowPos2fARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2fARB(x, y);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos2sARB(JNIEnv *env, jclass clazz, jshort x, jshort y, jlong function_pointer) {
|
||||
glWindowPos2sARBPROC glWindowPos2sARB = (glWindowPos2sARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2sARB(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3fARB(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glWindowPos3fARBPROC glWindowPos3fARB = (glWindowPos3fARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3fARB(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3iARB(JNIEnv *env, jclass clazz, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glWindowPos3iARBPROC glWindowPos3iARB = (glWindowPos3iARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3iARB(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_nglWindowPos3sARB(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glWindowPos3sARBPROC glWindowPos3sARB = (glWindowPos3sARBPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3sARB(x, y, z);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,19 +3,9 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glDrawRangeElementArrayATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
|
||||
typedef void (APIENTRY *glDrawElementArrayATIPROC) (GLenum mode, GLsizei count);
|
||||
typedef void (APIENTRY *glElementPointerATIPROC) (GLenum type, const GLvoid * pPointer);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglDrawRangeElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jlong function_pointer) {
|
||||
glDrawRangeElementArrayATIPROC glDrawRangeElementArrayATI = (glDrawRangeElementArrayATIPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElementArrayATI(mode, start, end, count);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglDrawElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint count, jlong function_pointer) {
|
||||
glDrawElementArrayATIPROC glDrawElementArrayATI = (glDrawElementArrayATIPROC)((intptr_t)function_pointer);
|
||||
glDrawElementArrayATI(mode, count);
|
||||
}
|
||||
typedef void (APIENTRY *glDrawElementArrayATIPROC) (GLenum mode, GLsizei count);
|
||||
typedef void (APIENTRY *glDrawRangeElementArrayATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI(JNIEnv *env, jclass clazz, jint type, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
|
@ -29,3 +19,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerAT
|
|||
glElementPointerATI(type, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglDrawElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint count, jlong function_pointer) {
|
||||
glDrawElementArrayATIPROC glDrawElementArrayATI = (glDrawElementArrayATIPROC)((intptr_t)function_pointer);
|
||||
glDrawElementArrayATI(mode, count);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglDrawRangeElementArrayATI(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jlong function_pointer) {
|
||||
glDrawRangeElementArrayATIPROC glDrawRangeElementArrayATI = (glDrawRangeElementArrayATIPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElementArrayATI(mode, start, end, count);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,21 +3,15 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetTexBumpParameterivATIPROC) (GLenum pname, GLint * param);
|
||||
typedef void (APIENTRY *glGetTexBumpParameterfvATIPROC) (GLenum pname, GLfloat * param);
|
||||
typedef void (APIENTRY *glTexBumpParameterivATIPROC) (GLenum pname, GLint * param);
|
||||
typedef void (APIENTRY *glTexBumpParameterfvATIPROC) (GLenum pname, GLfloat * param);
|
||||
typedef void (APIENTRY *glTexBumpParameterivATIPROC) (GLenum pname, GLint * param);
|
||||
typedef void (APIENTRY *glGetTexBumpParameterfvATIPROC) (GLenum pname, GLfloat * param);
|
||||
typedef void (APIENTRY *glGetTexBumpParameterivATIPROC) (GLenum pname, GLint * param);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
GLint *param_address = ((GLint *)(*env)->GetDirectBufferAddress(env, param)) + param_position;
|
||||
glGetTexBumpParameterivATIPROC glGetTexBumpParameterivATI = (glGetTexBumpParameterivATIPROC)((intptr_t)function_pointer);
|
||||
glGetTexBumpParameterivATI(pname, param_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
GLfloat *param_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, param)) + param_position;
|
||||
glGetTexBumpParameterfvATIPROC glGetTexBumpParameterfvATI = (glGetTexBumpParameterfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetTexBumpParameterfvATI(pname, param_address);
|
||||
glTexBumpParameterfvATIPROC glTexBumpParameterfvATI = (glTexBumpParameterfvATIPROC)((intptr_t)function_pointer);
|
||||
glTexBumpParameterfvATI(pname, param_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
|
@ -26,9 +20,15 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParamete
|
|||
glTexBumpParameterivATI(pname, param_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
GLfloat *param_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, param)) + param_position;
|
||||
glTexBumpParameterfvATIPROC glTexBumpParameterfvATI = (glTexBumpParameterfvATIPROC)((intptr_t)function_pointer);
|
||||
glTexBumpParameterfvATI(pname, param_address);
|
||||
glGetTexBumpParameterfvATIPROC glGetTexBumpParameterfvATI = (glGetTexBumpParameterfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetTexBumpParameterfvATI(pname, param_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI(JNIEnv *env, jclass clazz, jint pname, jobject param, jint param_position, jlong function_pointer) {
|
||||
GLint *param_address = ((GLint *)(*env)->GetDirectBufferAddress(env, param)) + param_position;
|
||||
glGetTexBumpParameterivATIPROC glGetTexBumpParameterivATI = (glGetTexBumpParameterivATIPROC)((intptr_t)function_pointer);
|
||||
glGetTexBumpParameterivATI(pname, param_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,86 +3,20 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glSetFragmentShaderConstantATIPROC) (GLuint dst, const GLfloat * pfValue);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
|
||||
typedef void (APIENTRY *glColorFragmentOp3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
|
||||
typedef void (APIENTRY *glColorFragmentOp2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
|
||||
typedef void (APIENTRY *glColorFragmentOp1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
|
||||
typedef void (APIENTRY *glSampleMapATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
|
||||
typedef void (APIENTRY *glPassTexCoordATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
|
||||
typedef void (APIENTRY *glEndFragmentShaderATIPROC) ();
|
||||
typedef void (APIENTRY *glBeginFragmentShaderATIPROC) ();
|
||||
typedef void (APIENTRY *glDeleteFragmentShaderATIPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glBindFragmentShaderATIPROC) (GLuint id);
|
||||
typedef GLuint (APIENTRY *glGenFragmentShadersATIPROC) (GLuint range);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI(JNIEnv *env, jclass clazz, jint dst, jobject pfValue, jint pfValue_position, jlong function_pointer) {
|
||||
const GLfloat *pfValue_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, pfValue)) + pfValue_position;
|
||||
glSetFragmentShaderConstantATIPROC glSetFragmentShaderConstantATI = (glSetFragmentShaderConstantATIPROC)((intptr_t)function_pointer);
|
||||
glSetFragmentShaderConstantATI(dst, pfValue_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp3ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp3ATIPROC glAlphaFragmentOp3ATI = (glAlphaFragmentOp3ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp2ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp2ATIPROC glAlphaFragmentOp2ATI = (glAlphaFragmentOp2ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp1ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp1ATIPROC glAlphaFragmentOp1ATI = (glAlphaFragmentOp1ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp3ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod, jlong function_pointer) {
|
||||
glColorFragmentOp3ATIPROC glColorFragmentOp3ATI = (glColorFragmentOp3ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp2ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jlong function_pointer) {
|
||||
glColorFragmentOp2ATIPROC glColorFragmentOp2ATI = (glColorFragmentOp2ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp1ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jlong function_pointer) {
|
||||
glColorFragmentOp1ATIPROC glColorFragmentOp1ATI = (glColorFragmentOp1ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSampleMapATI(JNIEnv *env, jclass clazz, jint dst, jint interp, jint swizzle, jlong function_pointer) {
|
||||
glSampleMapATIPROC glSampleMapATI = (glSampleMapATIPROC)((intptr_t)function_pointer);
|
||||
glSampleMapATI(dst, interp, swizzle);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglPassTexCoordATI(JNIEnv *env, jclass clazz, jint dst, jint coord, jint swizzle, jlong function_pointer) {
|
||||
glPassTexCoordATIPROC glPassTexCoordATI = (glPassTexCoordATIPROC)((intptr_t)function_pointer);
|
||||
glPassTexCoordATI(dst, coord, swizzle);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglEndFragmentShaderATI(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndFragmentShaderATIPROC glEndFragmentShaderATI = (glEndFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glEndFragmentShaderATI();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglBeginFragmentShaderATI(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glBeginFragmentShaderATIPROC glBeginFragmentShaderATI = (glBeginFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glBeginFragmentShaderATI();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglDeleteFragmentShaderATI(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDeleteFragmentShaderATIPROC glDeleteFragmentShaderATI = (glDeleteFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glDeleteFragmentShaderATI(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglBindFragmentShaderATI(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBindFragmentShaderATIPROC glBindFragmentShaderATI = (glBindFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glBindFragmentShaderATI(id);
|
||||
}
|
||||
typedef void (APIENTRY *glBindFragmentShaderATIPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glDeleteFragmentShaderATIPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glBeginFragmentShaderATIPROC) ();
|
||||
typedef void (APIENTRY *glEndFragmentShaderATIPROC) ();
|
||||
typedef void (APIENTRY *glPassTexCoordATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
|
||||
typedef void (APIENTRY *glSampleMapATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
|
||||
typedef void (APIENTRY *glColorFragmentOp1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
|
||||
typedef void (APIENTRY *glColorFragmentOp2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
|
||||
typedef void (APIENTRY *glColorFragmentOp3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
|
||||
typedef void (APIENTRY *glAlphaFragmentOp3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
|
||||
typedef void (APIENTRY *glSetFragmentShaderConstantATIPROC) (GLuint dst, const GLfloat * pfValue);
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglGenFragmentShadersATI(JNIEnv *env, jclass clazz, jint range, jlong function_pointer) {
|
||||
glGenFragmentShadersATIPROC glGenFragmentShadersATI = (glGenFragmentShadersATIPROC)((intptr_t)function_pointer);
|
||||
|
@ -90,3 +24,69 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglGenFragmentSha
|
|||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglBindFragmentShaderATI(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBindFragmentShaderATIPROC glBindFragmentShaderATI = (glBindFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glBindFragmentShaderATI(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglDeleteFragmentShaderATI(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDeleteFragmentShaderATIPROC glDeleteFragmentShaderATI = (glDeleteFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glDeleteFragmentShaderATI(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglBeginFragmentShaderATI(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glBeginFragmentShaderATIPROC glBeginFragmentShaderATI = (glBeginFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glBeginFragmentShaderATI();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglEndFragmentShaderATI(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndFragmentShaderATIPROC glEndFragmentShaderATI = (glEndFragmentShaderATIPROC)((intptr_t)function_pointer);
|
||||
glEndFragmentShaderATI();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglPassTexCoordATI(JNIEnv *env, jclass clazz, jint dst, jint coord, jint swizzle, jlong function_pointer) {
|
||||
glPassTexCoordATIPROC glPassTexCoordATI = (glPassTexCoordATIPROC)((intptr_t)function_pointer);
|
||||
glPassTexCoordATI(dst, coord, swizzle);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSampleMapATI(JNIEnv *env, jclass clazz, jint dst, jint interp, jint swizzle, jlong function_pointer) {
|
||||
glSampleMapATIPROC glSampleMapATI = (glSampleMapATIPROC)((intptr_t)function_pointer);
|
||||
glSampleMapATI(dst, interp, swizzle);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp1ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jlong function_pointer) {
|
||||
glColorFragmentOp1ATIPROC glColorFragmentOp1ATI = (glColorFragmentOp1ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp2ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jlong function_pointer) {
|
||||
glColorFragmentOp2ATIPROC glColorFragmentOp2ATI = (glColorFragmentOp2ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglColorFragmentOp3ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod, jlong function_pointer) {
|
||||
glColorFragmentOp3ATIPROC glColorFragmentOp3ATI = (glColorFragmentOp3ATIPROC)((intptr_t)function_pointer);
|
||||
glColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp1ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp1ATIPROC glAlphaFragmentOp1ATI = (glAlphaFragmentOp1ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp2ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp2ATIPROC glAlphaFragmentOp2ATI = (glAlphaFragmentOp2ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglAlphaFragmentOp3ATI(JNIEnv *env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod, jlong function_pointer) {
|
||||
glAlphaFragmentOp3ATIPROC glAlphaFragmentOp3ATI = (glAlphaFragmentOp3ATIPROC)((intptr_t)function_pointer);
|
||||
glAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI(JNIEnv *env, jclass clazz, jint dst, jobject pfValue, jint pfValue_position, jlong function_pointer) {
|
||||
const GLfloat *pfValue_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, pfValue)) + pfValue_position;
|
||||
glSetFragmentShaderConstantATIPROC glSetFragmentShaderConstantATI = (glSetFragmentShaderConstantATIPROC)((intptr_t)function_pointer);
|
||||
glSetFragmentShaderConstantATI(dst, pfValue_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,13 +3,8 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glUnmapObjectBufferATIPROC) (GLuint buffer);
|
||||
typedef GLvoid * (APIENTRY *glMapObjectBufferATIPROC) (GLuint buffer);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglUnmapObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glUnmapObjectBufferATIPROC glUnmapObjectBufferATI = (glUnmapObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glUnmapObjectBufferATI(buffer);
|
||||
}
|
||||
typedef void (APIENTRY *glUnmapObjectBufferATIPROC) (GLuint buffer);
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglMapObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jint result_size, jobject old_buffer, jlong function_pointer) {
|
||||
glMapObjectBufferATIPROC glMapObjectBufferATI = (glMapObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
|
@ -17,3 +12,8 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglMapObjectB
|
|||
return safeNewBufferCached(env, __result, result_size, old_buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_nglUnmapObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glUnmapObjectBufferATIPROC glUnmapObjectBufferATI = (glUnmapObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glUnmapObjectBufferATI(buffer);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glPNTrianglesiATIPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glPNTrianglesfATIPROC) (GLenum pname, GLfloat param);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_nglPNTrianglesiATI(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPNTrianglesiATIPROC glPNTrianglesiATI = (glPNTrianglesiATIPROC)((intptr_t)function_pointer);
|
||||
glPNTrianglesiATI(pname, param);
|
||||
}
|
||||
typedef void (APIENTRY *glPNTrianglesiATIPROC) (GLenum pname, GLint param);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_nglPNTrianglesfATI(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPNTrianglesfATIPROC glPNTrianglesfATI = (glPNTrianglesfATIPROC)((intptr_t)function_pointer);
|
||||
glPNTrianglesfATI(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_nglPNTrianglesiATI(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPNTrianglesiATIPROC glPNTrianglesiATI = (glPNTrianglesiATIPROC)((intptr_t)function_pointer);
|
||||
glPNTrianglesiATI(pname, param);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glStencilFuncSeparateATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
|
||||
typedef void (APIENTRY *glStencilOpSeparateATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_nglStencilFuncSeparateATI(JNIEnv *env, jclass clazz, jint frontfunc, jint backfunc, jint ref, jint mask, jlong function_pointer) {
|
||||
glStencilFuncSeparateATIPROC glStencilFuncSeparateATI = (glStencilFuncSeparateATIPROC)((intptr_t)function_pointer);
|
||||
glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask);
|
||||
}
|
||||
typedef void (APIENTRY *glStencilFuncSeparateATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_nglStencilOpSeparateATI(JNIEnv *env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass, jlong function_pointer) {
|
||||
glStencilOpSeparateATIPROC glStencilOpSeparateATI = (glStencilOpSeparateATIPROC)((intptr_t)function_pointer);
|
||||
glStencilOpSeparateATI(face, sfail, dpfail, dppass);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_nglStencilFuncSeparateATI(JNIEnv *env, jclass clazz, jint frontfunc, jint backfunc, jint ref, jint mask, jlong function_pointer) {
|
||||
glStencilFuncSeparateATIPROC glStencilFuncSeparateATI = (glStencilFuncSeparateATIPROC)((intptr_t)function_pointer);
|
||||
glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,81 +3,18 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetVariantArrayObjectivATIPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVariantArrayObjectfvATIPROC) (GLuint id, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glVariantArrayObjectATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
|
||||
typedef void (APIENTRY *glGetArrayObjectivATIPROC) (GLenum array, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetArrayObjectfvATIPROC) (GLenum array, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glArrayObjectATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
|
||||
typedef void (APIENTRY *glFreeObjectBufferATIPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glGetObjectBufferivATIPROC) (GLuint buffer, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetObjectBufferfvATIPROC) (GLuint buffer, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glUpdateObjectBufferATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid * pPointer, GLenum preserve);
|
||||
typedef GLboolean (APIENTRY *glIsObjectBufferATIPROC) (GLuint buffer);
|
||||
typedef GLuint (APIENTRY *glNewObjectBufferATIPROC) (GLsizei size, const GLvoid * pPointer, GLenum usage);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVariantArrayObjectivATIPROC glGetVariantArrayObjectivATI = (glGetVariantArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetVariantArrayObjectivATI(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVariantArrayObjectfvATIPROC glGetVariantArrayObjectfvATI = (glGetVariantArrayObjectfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetVariantArrayObjectfvATI(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglVariantArrayObjectATI(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glVariantArrayObjectATIPROC glVariantArrayObjectATI = (glVariantArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glVariantArrayObjectATI(id, type, stride, buffer, offset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetArrayObjectivATIPROC glGetArrayObjectivATI = (glGetArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetArrayObjectivATI(array, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetArrayObjectfvATIPROC glGetArrayObjectfvATI = (glGetArrayObjectfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetArrayObjectfvATI(array, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglArrayObjectATI(JNIEnv *env, jclass clazz, jint array, jint size, jint type, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glArrayObjectATIPROC glArrayObjectATI = (glArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glArrayObjectATI(array, size, type, stride, buffer, offset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglFreeObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glFreeObjectBufferATIPROC glFreeObjectBufferATI = (glFreeObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glFreeObjectBufferATI(buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectBufferivATIPROC glGetObjectBufferivATI = (glGetObjectBufferivATIPROC)((intptr_t)function_pointer);
|
||||
glGetObjectBufferivATI(buffer, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectBufferfvATIPROC glGetObjectBufferfvATI = (glGetObjectBufferfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetObjectBufferfvATI(buffer, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jint offset, jint size, jobject pPointer, jint pPointer_position, jint preserve, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
glUpdateObjectBufferATIPROC glUpdateObjectBufferATI = (glUpdateObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glUpdateObjectBufferATI(buffer, offset, size, pPointer_address, preserve);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglIsObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsObjectBufferATIPROC glIsObjectBufferATI = (glIsObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsObjectBufferATI(buffer);
|
||||
return __result;
|
||||
}
|
||||
typedef GLboolean (APIENTRY *glIsObjectBufferATIPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glUpdateObjectBufferATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid * pPointer, GLenum preserve);
|
||||
typedef void (APIENTRY *glGetObjectBufferfvATIPROC) (GLuint buffer, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetObjectBufferivATIPROC) (GLuint buffer, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glFreeObjectBufferATIPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glArrayObjectATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
|
||||
typedef void (APIENTRY *glGetArrayObjectfvATIPROC) (GLenum array, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetArrayObjectivATIPROC) (GLenum array, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glVariantArrayObjectATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
|
||||
typedef void (APIENTRY *glGetVariantArrayObjectfvATIPROC) (GLuint id, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetVariantArrayObjectivATIPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI(JNIEnv *env, jclass clazz, jint size, jobject pPointer, jint pPointer_position, jint usage, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, pPointer)) + pPointer_position));
|
||||
|
@ -86,3 +23,66 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBu
|
|||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglIsObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsObjectBufferATIPROC glIsObjectBufferATI = (glIsObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsObjectBufferATI(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jint offset, jint size, jobject pPointer, jint pPointer_position, jint preserve, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
glUpdateObjectBufferATIPROC glUpdateObjectBufferATI = (glUpdateObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glUpdateObjectBufferATI(buffer, offset, size, pPointer_address, preserve);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectBufferfvATIPROC glGetObjectBufferfvATI = (glGetObjectBufferfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetObjectBufferfvATI(buffer, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI(JNIEnv *env, jclass clazz, jint buffer, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetObjectBufferivATIPROC glGetObjectBufferivATI = (glGetObjectBufferivATIPROC)((intptr_t)function_pointer);
|
||||
glGetObjectBufferivATI(buffer, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglFreeObjectBufferATI(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glFreeObjectBufferATIPROC glFreeObjectBufferATI = (glFreeObjectBufferATIPROC)((intptr_t)function_pointer);
|
||||
glFreeObjectBufferATI(buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglArrayObjectATI(JNIEnv *env, jclass clazz, jint array, jint size, jint type, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glArrayObjectATIPROC glArrayObjectATI = (glArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glArrayObjectATI(array, size, type, stride, buffer, offset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetArrayObjectfvATIPROC glGetArrayObjectfvATI = (glGetArrayObjectfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetArrayObjectfvATI(array, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI(JNIEnv *env, jclass clazz, jint array, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetArrayObjectivATIPROC glGetArrayObjectivATI = (glGetArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetArrayObjectivATI(array, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglVariantArrayObjectATI(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glVariantArrayObjectATIPROC glVariantArrayObjectATI = (glVariantArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glVariantArrayObjectATI(id, type, stride, buffer, offset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVariantArrayObjectfvATIPROC glGetVariantArrayObjectfvATI = (glGetVariantArrayObjectfvATIPROC)((intptr_t)function_pointer);
|
||||
glGetVariantArrayObjectfvATI(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVariantArrayObjectivATIPROC glGetVariantArrayObjectivATI = (glGetVariantArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetVariantArrayObjectivATI(id, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,14 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetVertexAttribArrayObjectivATIPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribArrayObjectfvATIPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glVertexAttribArrayObjectATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
|
||||
typedef void (APIENTRY *glGetVertexAttribArrayObjectfvATIPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribArrayObjectivATIPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribArrayObjectivATIPROC glGetVertexAttribArrayObjectivATI = (glGetVertexAttribArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribArrayObjectivATI(index, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglVertexAttribArrayObjectATI(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glVertexAttribArrayObjectATIPROC glVertexAttribArrayObjectATI = (glVertexAttribArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
|
@ -19,8 +18,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVe
|
|||
glGetVertexAttribArrayObjectfvATI(index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglVertexAttribArrayObjectATI(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer, jint offset, jlong function_pointer) {
|
||||
glVertexAttribArrayObjectATIPROC glVertexAttribArrayObjectATI = (glVertexAttribArrayObjectATIPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribArrayObjectivATIPROC glGetVertexAttribArrayObjectivATI = (glGetVertexAttribArrayObjectivATIPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribArrayObjectivATI(index, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,91 +3,26 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glVertexBlendEnviATIPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glVertexBlendEnvfATIPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glClientActiveVertexStreamATIPROC) (GLenum stream);
|
||||
typedef void (APIENTRY *glNormalStream3sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glNormalStream3iATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glNormalStream3fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glNormalStream3bATIPROC) (GLenum stream, GLbyte x, GLbyte y, GLbyte z);
|
||||
typedef void (APIENTRY *glVertexStream4sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexStream4iATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
|
||||
typedef void (APIENTRY *glVertexStream4fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexStream3sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexStream3iATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glVertexStream3fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexStream2sATIPROC) (GLenum stream, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexStream2iATIPROC) (GLenum stream, GLint x, GLint y);
|
||||
typedef void (APIENTRY *glVertexStream2fATIPROC) (GLenum stream, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexStream2iATIPROC) (GLenum stream, GLint x, GLint y);
|
||||
typedef void (APIENTRY *glVertexStream2sATIPROC) (GLenum stream, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexStream3fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexStream3iATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glVertexStream3sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexStream4fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexStream4iATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
|
||||
typedef void (APIENTRY *glVertexStream4sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glNormalStream3bATIPROC) (GLenum stream, GLbyte x, GLbyte y, GLbyte z);
|
||||
typedef void (APIENTRY *glNormalStream3fATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glNormalStream3iATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glNormalStream3sATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glClientActiveVertexStreamATIPROC) (GLenum stream);
|
||||
typedef void (APIENTRY *glVertexBlendEnvfATIPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glVertexBlendEnviATIPROC) (GLenum pname, GLint param);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexBlendEnviATI(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glVertexBlendEnviATIPROC glVertexBlendEnviATI = (glVertexBlendEnviATIPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendEnviATI(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexBlendEnvfATI(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glVertexBlendEnvfATIPROC glVertexBlendEnvfATI = (glVertexBlendEnvfATIPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendEnvfATI(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglClientActiveVertexStreamATI(JNIEnv *env, jclass clazz, jint stream, jlong function_pointer) {
|
||||
glClientActiveVertexStreamATIPROC glClientActiveVertexStreamATI = (glClientActiveVertexStreamATIPROC)((intptr_t)function_pointer);
|
||||
glClientActiveVertexStreamATI(stream);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glNormalStream3sATIPROC glNormalStream3sATI = (glNormalStream3sATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3sATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glNormalStream3iATIPROC glNormalStream3iATI = (glNormalStream3iATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3iATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glNormalStream3fATIPROC glNormalStream3fATI = (glNormalStream3fATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3fATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3bATI(JNIEnv *env, jclass clazz, jint stream, jbyte x, jbyte y, jbyte z, jlong function_pointer) {
|
||||
glNormalStream3bATIPROC glNormalStream3bATI = (glNormalStream3bATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3bATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexStream4sATIPROC glVertexStream4sATI = (glVertexStream4sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4sATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jint w, jlong function_pointer) {
|
||||
glVertexStream4iATIPROC glVertexStream4iATI = (glVertexStream4iATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4iATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexStream4fATIPROC glVertexStream4fATI = (glVertexStream4fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4fATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexStream3sATIPROC glVertexStream3sATI = (glVertexStream3sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3sATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glVertexStream3iATIPROC glVertexStream3iATI = (glVertexStream3iATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3iATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexStream3fATIPROC glVertexStream3fATI = (glVertexStream3fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3fATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexStream2sATIPROC glVertexStream2sATI = (glVertexStream2sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream2sATI(stream, x, y);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexStream2fATIPROC glVertexStream2fATI = (glVertexStream2fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream2fATI(stream, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jlong function_pointer) {
|
||||
|
@ -95,8 +30,73 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2iA
|
|||
glVertexStream2iATI(stream, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexStream2fATIPROC glVertexStream2fATI = (glVertexStream2fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream2fATI(stream, x, y);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream2sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexStream2sATIPROC glVertexStream2sATI = (glVertexStream2sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream2sATI(stream, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexStream3fATIPROC glVertexStream3fATI = (glVertexStream3fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3fATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glVertexStream3iATIPROC glVertexStream3iATI = (glVertexStream3iATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3iATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream3sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexStream3sATIPROC glVertexStream3sATI = (glVertexStream3sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream3sATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexStream4fATIPROC glVertexStream4fATI = (glVertexStream4fATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4fATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jint w, jlong function_pointer) {
|
||||
glVertexStream4iATIPROC glVertexStream4iATI = (glVertexStream4iATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4iATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexStream4sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexStream4sATIPROC glVertexStream4sATI = (glVertexStream4sATIPROC)((intptr_t)function_pointer);
|
||||
glVertexStream4sATI(stream, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3bATI(JNIEnv *env, jclass clazz, jint stream, jbyte x, jbyte y, jbyte z, jlong function_pointer) {
|
||||
glNormalStream3bATIPROC glNormalStream3bATI = (glNormalStream3bATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3bATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3fATI(JNIEnv *env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glNormalStream3fATIPROC glNormalStream3fATI = (glNormalStream3fATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3fATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3iATI(JNIEnv *env, jclass clazz, jint stream, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glNormalStream3iATIPROC glNormalStream3iATI = (glNormalStream3iATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3iATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglNormalStream3sATI(JNIEnv *env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glNormalStream3sATIPROC glNormalStream3sATI = (glNormalStream3sATIPROC)((intptr_t)function_pointer);
|
||||
glNormalStream3sATI(stream, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglClientActiveVertexStreamATI(JNIEnv *env, jclass clazz, jint stream, jlong function_pointer) {
|
||||
glClientActiveVertexStreamATIPROC glClientActiveVertexStreamATI = (glClientActiveVertexStreamATIPROC)((intptr_t)function_pointer);
|
||||
glClientActiveVertexStreamATI(stream);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexBlendEnvfATI(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glVertexBlendEnvfATIPROC glVertexBlendEnvfATI = (glVertexBlendEnvfATIPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendEnvfATI(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_nglVertexBlendEnviATI(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glVertexBlendEnviATIPROC glVertexBlendEnviATI = (glVertexBlendEnviATIPROC)((intptr_t)function_pointer);
|
||||
glVertexBlendEnviATI(pname, param);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glUnlockArraysEXTPROC) ();
|
||||
typedef void (APIENTRY *glLockArraysEXTPROC) (GLint first, GLsizei count);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_nglUnlockArraysEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glUnlockArraysEXTPROC glUnlockArraysEXT = (glUnlockArraysEXTPROC)((intptr_t)function_pointer);
|
||||
glUnlockArraysEXT();
|
||||
}
|
||||
typedef void (APIENTRY *glUnlockArraysEXTPROC) ();
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_nglLockArraysEXT(JNIEnv *env, jclass clazz, jint first, jint count, jlong function_pointer) {
|
||||
glLockArraysEXTPROC glLockArraysEXT = (glLockArraysEXTPROC)((intptr_t)function_pointer);
|
||||
glLockArraysEXT(first, count);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_nglUnlockArraysEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glUnlockArraysEXTPROC glUnlockArraysEXT = (glUnlockArraysEXTPROC)((intptr_t)function_pointer);
|
||||
glUnlockArraysEXT();
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glFogCoordPointerEXTPROC) (GLenum type, GLsizei stride, const GLvoid * data);
|
||||
typedef void (APIENTRY *glFogCoordfEXTPROC) (GLfloat coord);
|
||||
typedef void (APIENTRY *glFogCoordPointerEXTPROC) (GLenum type, GLsizei stride, const GLvoid * data);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordfEXT(JNIEnv *env, jclass clazz, jfloat coord, jlong function_pointer) {
|
||||
glFogCoordfEXTPROC glFogCoordfEXT = (glFogCoordfEXTPROC)((intptr_t)function_pointer);
|
||||
glFogCoordfEXT(coord);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT(JNIEnv *env, jclass clazz, jint type, jint stride, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
|
@ -18,8 +23,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTBO
|
|||
glFogCoordPointerEXT(type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordfEXT(JNIEnv *env, jclass clazz, jfloat coord, jlong function_pointer) {
|
||||
glFogCoordfEXTPROC glFogCoordfEXT = (glFogCoordfEXTPROC)((intptr_t)function_pointer);
|
||||
glFogCoordfEXT(coord);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,99 +3,33 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGenerateMipmapEXTPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetFramebufferAttachmentParameterivEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glFramebufferRenderbufferEXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||
typedef void (APIENTRY *glFramebufferTexture3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
||||
typedef void (APIENTRY *glFramebufferTexture2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRY *glFramebufferTexture1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef GLenum (APIENTRY *glCheckFramebufferStatusEXTPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGenFramebuffersEXTPROC) (GLint n, const GLuint * framebuffers);
|
||||
typedef void (APIENTRY *glDeleteFramebuffersEXTPROC) (GLint n, const GLuint * framebuffers);
|
||||
typedef void (APIENTRY *glBindFramebufferEXTPROC) (GLenum target, GLuint framebuffer);
|
||||
typedef GLboolean (APIENTRY *glIsFramebufferEXTPROC) (GLuint framebuffer);
|
||||
typedef void (APIENTRY *glGetRenderbufferParameterivEXTPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glRenderbufferStorageEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRY *glGenRenderbuffersEXTPROC) (GLint n, GLuint * renderbuffers);
|
||||
typedef void (APIENTRY *glDeleteRenderbuffersEXTPROC) (GLint n, const GLuint * renderbuffers);
|
||||
typedef void (APIENTRY *glBindRenderbufferEXTPROC) (GLenum target, GLuint renderbuffer);
|
||||
typedef GLboolean (APIENTRY *glIsRenderbufferEXTPROC) (GLuint renderbuffer);
|
||||
typedef void (APIENTRY *glBindRenderbufferEXTPROC) (GLenum target, GLuint renderbuffer);
|
||||
typedef void (APIENTRY *glDeleteRenderbuffersEXTPROC) (GLint n, const GLuint * renderbuffers);
|
||||
typedef void (APIENTRY *glGenRenderbuffersEXTPROC) (GLint n, GLuint * renderbuffers);
|
||||
typedef void (APIENTRY *glRenderbufferStorageEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRY *glGetRenderbufferParameterivEXTPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef GLboolean (APIENTRY *glIsFramebufferEXTPROC) (GLuint framebuffer);
|
||||
typedef void (APIENTRY *glBindFramebufferEXTPROC) (GLenum target, GLuint framebuffer);
|
||||
typedef void (APIENTRY *glDeleteFramebuffersEXTPROC) (GLint n, const GLuint * framebuffers);
|
||||
typedef void (APIENTRY *glGenFramebuffersEXTPROC) (GLint n, const GLuint * framebuffers);
|
||||
typedef GLenum (APIENTRY *glCheckFramebufferStatusEXTPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glFramebufferTexture1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRY *glFramebufferTexture2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||
typedef void (APIENTRY *glFramebufferTexture3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
|
||||
typedef void (APIENTRY *glFramebufferRenderbufferEXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||
typedef void (APIENTRY *glGetFramebufferAttachmentParameterivEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGenerateMipmapEXTPROC) (GLenum target);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenerateMipmapEXT(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glGenerateMipmapEXTPROC glGenerateMipmapEXT = (glGenerateMipmapEXTPROC)((intptr_t)function_pointer);
|
||||
glGenerateMipmapEXT(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGetFramebufferAttachmentParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFramebufferAttachmentParameterivEXTPROC glGetFramebufferAttachmentParameterivEXT = (glGetFramebufferAttachmentParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferRenderbufferEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint renderbuffertarget, jint renderbuffer, jlong function_pointer) {
|
||||
glFramebufferRenderbufferEXTPROC glFramebufferRenderbufferEXT = (glFramebufferRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture3DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jint zoffset, jlong function_pointer) {
|
||||
glFramebufferTexture3DEXTPROC glFramebufferTexture3DEXT = (glFramebufferTexture3DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture2DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
|
||||
glFramebufferTexture2DEXTPROC glFramebufferTexture2DEXT = (glFramebufferTexture2DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture2DEXT(target, attachment, textarget, texture, level);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture1DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
|
||||
glFramebufferTexture1DEXTPROC glFramebufferTexture1DEXT = (glFramebufferTexture1DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture1DEXT(target, attachment, textarget, texture, level);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglCheckFramebufferStatusEXT(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glCheckFramebufferStatusEXTPROC glCheckFramebufferStatusEXT = (glCheckFramebufferStatusEXTPROC)((intptr_t)function_pointer);
|
||||
GLenum __result = glCheckFramebufferStatusEXT(target);
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglIsRenderbufferEXT(JNIEnv *env, jclass clazz, jint renderbuffer, jlong function_pointer) {
|
||||
glIsRenderbufferEXTPROC glIsRenderbufferEXT = (glIsRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsRenderbufferEXT(renderbuffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenFramebuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject framebuffers, jint framebuffers_position, jlong function_pointer) {
|
||||
const GLuint *framebuffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, framebuffers)) + framebuffers_position;
|
||||
glGenFramebuffersEXTPROC glGenFramebuffersEXT = (glGenFramebuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glGenFramebuffersEXT(n, framebuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglDeleteFramebuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject framebuffers, jint framebuffers_position, jlong function_pointer) {
|
||||
const GLuint *framebuffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, framebuffers)) + framebuffers_position;
|
||||
glDeleteFramebuffersEXTPROC glDeleteFramebuffersEXT = (glDeleteFramebuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glDeleteFramebuffersEXT(n, framebuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglBindFramebufferEXT(JNIEnv *env, jclass clazz, jint target, jint framebuffer, jlong function_pointer) {
|
||||
glBindFramebufferEXTPROC glBindFramebufferEXT = (glBindFramebufferEXTPROC)((intptr_t)function_pointer);
|
||||
glBindFramebufferEXT(target, framebuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglIsFramebufferEXT(JNIEnv *env, jclass clazz, jint framebuffer, jlong function_pointer) {
|
||||
glIsFramebufferEXTPROC glIsFramebufferEXT = (glIsFramebufferEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsFramebufferEXT(framebuffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGetRenderbufferParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetRenderbufferParameterivEXTPROC glGetRenderbufferParameterivEXT = (glGetRenderbufferParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetRenderbufferParameterivEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglRenderbufferStorageEXT(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jlong function_pointer) {
|
||||
glRenderbufferStorageEXTPROC glRenderbufferStorageEXT = (glRenderbufferStorageEXTPROC)((intptr_t)function_pointer);
|
||||
glRenderbufferStorageEXT(target, internalformat, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenRenderbuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject renderbuffers, jint renderbuffers_position, jlong function_pointer) {
|
||||
GLuint *renderbuffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, renderbuffers)) + renderbuffers_position;
|
||||
glGenRenderbuffersEXTPROC glGenRenderbuffersEXT = (glGenRenderbuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glGenRenderbuffersEXT(n, renderbuffers_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglBindRenderbufferEXT(JNIEnv *env, jclass clazz, jint target, jint renderbuffer, jlong function_pointer) {
|
||||
glBindRenderbufferEXTPROC glBindRenderbufferEXT = (glBindRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
glBindRenderbufferEXT(target, renderbuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglDeleteRenderbuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject renderbuffers, jint renderbuffers_position, jlong function_pointer) {
|
||||
|
@ -104,14 +38,80 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglDeleteRende
|
|||
glDeleteRenderbuffersEXT(n, renderbuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglBindRenderbufferEXT(JNIEnv *env, jclass clazz, jint target, jint renderbuffer, jlong function_pointer) {
|
||||
glBindRenderbufferEXTPROC glBindRenderbufferEXT = (glBindRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
glBindRenderbufferEXT(target, renderbuffer);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenRenderbuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject renderbuffers, jint renderbuffers_position, jlong function_pointer) {
|
||||
GLuint *renderbuffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, renderbuffers)) + renderbuffers_position;
|
||||
glGenRenderbuffersEXTPROC glGenRenderbuffersEXT = (glGenRenderbuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glGenRenderbuffersEXT(n, renderbuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglIsRenderbufferEXT(JNIEnv *env, jclass clazz, jint renderbuffer, jlong function_pointer) {
|
||||
glIsRenderbufferEXTPROC glIsRenderbufferEXT = (glIsRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsRenderbufferEXT(renderbuffer);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglRenderbufferStorageEXT(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jlong function_pointer) {
|
||||
glRenderbufferStorageEXTPROC glRenderbufferStorageEXT = (glRenderbufferStorageEXTPROC)((intptr_t)function_pointer);
|
||||
glRenderbufferStorageEXT(target, internalformat, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGetRenderbufferParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetRenderbufferParameterivEXTPROC glGetRenderbufferParameterivEXT = (glGetRenderbufferParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetRenderbufferParameterivEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglIsFramebufferEXT(JNIEnv *env, jclass clazz, jint framebuffer, jlong function_pointer) {
|
||||
glIsFramebufferEXTPROC glIsFramebufferEXT = (glIsFramebufferEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsFramebufferEXT(framebuffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglBindFramebufferEXT(JNIEnv *env, jclass clazz, jint target, jint framebuffer, jlong function_pointer) {
|
||||
glBindFramebufferEXTPROC glBindFramebufferEXT = (glBindFramebufferEXTPROC)((intptr_t)function_pointer);
|
||||
glBindFramebufferEXT(target, framebuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglDeleteFramebuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject framebuffers, jint framebuffers_position, jlong function_pointer) {
|
||||
const GLuint *framebuffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, framebuffers)) + framebuffers_position;
|
||||
glDeleteFramebuffersEXTPROC glDeleteFramebuffersEXT = (glDeleteFramebuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glDeleteFramebuffersEXT(n, framebuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenFramebuffersEXT(JNIEnv *env, jclass clazz, jint n, jobject framebuffers, jint framebuffers_position, jlong function_pointer) {
|
||||
const GLuint *framebuffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, framebuffers)) + framebuffers_position;
|
||||
glGenFramebuffersEXTPROC glGenFramebuffersEXT = (glGenFramebuffersEXTPROC)((intptr_t)function_pointer);
|
||||
glGenFramebuffersEXT(n, framebuffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglCheckFramebufferStatusEXT(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glCheckFramebufferStatusEXTPROC glCheckFramebufferStatusEXT = (glCheckFramebufferStatusEXTPROC)((intptr_t)function_pointer);
|
||||
GLenum __result = glCheckFramebufferStatusEXT(target);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture1DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
|
||||
glFramebufferTexture1DEXTPROC glFramebufferTexture1DEXT = (glFramebufferTexture1DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture1DEXT(target, attachment, textarget, texture, level);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture2DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
|
||||
glFramebufferTexture2DEXTPROC glFramebufferTexture2DEXT = (glFramebufferTexture2DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture2DEXT(target, attachment, textarget, texture, level);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferTexture3DEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jint zoffset, jlong function_pointer) {
|
||||
glFramebufferTexture3DEXTPROC glFramebufferTexture3DEXT = (glFramebufferTexture3DEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglFramebufferRenderbufferEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint renderbuffertarget, jint renderbuffer, jlong function_pointer) {
|
||||
glFramebufferRenderbufferEXTPROC glFramebufferRenderbufferEXT = (glFramebufferRenderbufferEXTPROC)((intptr_t)function_pointer);
|
||||
glFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGetFramebufferAttachmentParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFramebufferAttachmentParameterivEXTPROC glGetFramebufferAttachmentParameterivEXT = (glGetFramebufferAttachmentParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFramebufferObject_nglGenerateMipmapEXT(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glGenerateMipmapEXTPROC glGenerateMipmapEXT = (glGenerateMipmapEXTPROC)((intptr_t)function_pointer);
|
||||
glGenerateMipmapEXT(target);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,28 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetColorTableParameterfvEXTPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetColorTableParameterivEXTPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetColorTableEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid * data);
|
||||
typedef void (APIENTRY *glColorSubTableEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glColorTableEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glColorSubTableEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data);
|
||||
typedef void (APIENTRY *glGetColorTableEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid * data);
|
||||
typedef void (APIENTRY *glGetColorTableParameterivEXTPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetColorTableParameterfvEXTPROC) (GLenum target, GLenum pname, GLfloat * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableParameterfvEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterfvEXTPROC glGetColorTableParameterfvEXT = (glGetColorTableParameterfvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterfvEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterivEXTPROC glGetColorTableParameterivEXT = (glGetColorTableParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterivEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableEXT(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetColorTableEXTPROC glGetColorTableEXT = (glGetColorTableEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableEXT(target, format, type, data_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglColorTableEXT(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorTableEXTPROC glColorTableEXT = (glColorTableEXTPROC)((intptr_t)function_pointer);
|
||||
glColorTableEXT(target, internalFormat, width, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglColorSubTableEXT(JNIEnv *env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
|
@ -33,9 +21,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglColorSubTable
|
|||
glColorSubTableEXT(target, start, count, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglColorTableEXT(JNIEnv *env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glColorTableEXTPROC glColorTableEXT = (glColorTableEXTPROC)((intptr_t)function_pointer);
|
||||
glColorTableEXT(target, internalFormat, width, format, type, data_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableEXT(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetColorTableEXTPROC glGetColorTableEXT = (glGetColorTableEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableEXT(target, format, type, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableParameterivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterivEXTPROC glGetColorTableParameterivEXT = (glGetColorTableParameterivEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterivEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPalettedTexture_nglGetColorTableParameterfvEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetColorTableParameterfvEXTPROC glGetColorTableParameterfvEXT = (glGetColorTableParameterfvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetColorTableParameterfvEXT(target, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glPointParameterfvEXTPROC) (GLenum pname, const GLfloat * pfParams);
|
||||
typedef void (APIENTRY *glPointParameterfEXTPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glPointParameterfvEXTPROC) (GLenum pname, const GLfloat * pfParams);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfEXT(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfEXTPROC glPointParameterfEXT = (glPointParameterfEXTPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfEXT(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfvEXT(JNIEnv *env, jclass clazz, jint pname, jobject pfParams, jint pfParams_position, jlong function_pointer) {
|
||||
const GLfloat *pfParams_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, pfParams)) + pfParams_position;
|
||||
|
@ -12,8 +17,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParamete
|
|||
glPointParameterfvEXT(pname, pfParams_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfEXT(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfEXTPROC glPointParameterfEXT = (glPointParameterfEXTPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfEXT(pname, param);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,10 +3,25 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glSecondaryColorPointerEXTPROC) (GLint size, GLenum type, GLsizei stride, GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glSecondaryColor3ubEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3fEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3bEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3fEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3ubEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColorPointerEXTPROC) (GLint size, GLenum type, GLsizei stride, GLvoid * pPointer);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3bEXT(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3bEXTPROC glSecondaryColor3bEXT = (glSecondaryColor3bEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3bEXT(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3fEXT(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jlong function_pointer) {
|
||||
glSecondaryColor3fEXTPROC glSecondaryColor3fEXT = (glSecondaryColor3fEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3fEXT(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3ubEXT(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3ubEXTPROC glSecondaryColor3ubEXT = (glSecondaryColor3ubEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3ubEXT(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
GLvoid *pPointer_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
|
@ -20,18 +35,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor
|
|||
glSecondaryColorPointerEXT(size, type, stride, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3ubEXT(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3ubEXTPROC glSecondaryColor3ubEXT = (glSecondaryColor3ubEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3ubEXT(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3fEXT(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jlong function_pointer) {
|
||||
glSecondaryColor3fEXTPROC glSecondaryColor3fEXT = (glSecondaryColor3fEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3fEXT(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor3bEXT(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3bEXTPROC glSecondaryColor3bEXT = (glSecondaryColor3bEXTPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3bEXT(red, green, blue);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,153 +3,167 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetLocalConstantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
typedef void (APIENTRY *glGetLocalConstantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetLocalConstantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef void (APIENTRY *glGetInvariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
typedef void (APIENTRY *glGetInvariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetInvariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef void (APIENTRY *glGetVariantPointervEXTPROC) (GLuint id, GLenum value, GLvoid ** pbData);
|
||||
typedef void (APIENTRY *glGetVariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
typedef void (APIENTRY *glGetVariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetVariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef GLboolean (APIENTRY *glIsVariantEnabledEXTPROC) (GLuint id, GLenum cap);
|
||||
typedef GLuint (APIENTRY *glBindParameterEXTPROC) (GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindTextureUnitParameterEXTPROC) (GLenum unit, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindTexGenParameterEXTPROC) (GLenum unit, GLenum coord, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindMaterialParameterEXTPROC) (GLenum face, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindLightParameterEXTPROC) (GLenum light, GLenum value);
|
||||
typedef void (APIENTRY *glDisableVariantClientStateEXTPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glEnableVariantClientStateEXTPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glVariantPointerEXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid * pAddr);
|
||||
typedef void (APIENTRY *glVariantuivEXTPROC) (GLuint id, GLuint * pAddr);
|
||||
typedef void (APIENTRY *glVariantusvEXTPROC) (GLuint id, GLushort * pAddr);
|
||||
typedef void (APIENTRY *glVariantubvEXTPROC) (GLuint id, GLubyte * pAddr);
|
||||
typedef void (APIENTRY *glVariantfvEXTPROC) (GLuint id, GLfloat * pAddr);
|
||||
typedef void (APIENTRY *glVariantivEXTPROC) (GLuint id, GLint * pAddr);
|
||||
typedef void (APIENTRY *glVariantsvEXTPROC) (GLuint id, GLshort * pAddr);
|
||||
typedef void (APIENTRY *glVariantbvEXTPROC) (GLuint id, GLbyte * pAddr);
|
||||
typedef void (APIENTRY *glSetLocalConstantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr);
|
||||
typedef void (APIENTRY *glSetInvariantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr);
|
||||
typedef GLuint (APIENTRY *glGenSymbolsEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components);
|
||||
typedef void (APIENTRY *glExtractComponentEXTPROC) (GLuint res, GLuint src, GLuint num);
|
||||
typedef void (APIENTRY *glInsertComponentEXTPROC) (GLuint res, GLuint src, GLuint num);
|
||||
typedef void (APIENTRY *glWriteMaskEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
|
||||
typedef void (APIENTRY *glSwizzleEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
|
||||
typedef void (APIENTRY *glShaderOp3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
|
||||
typedef void (APIENTRY *glShaderOp2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
|
||||
typedef void (APIENTRY *glShaderOp1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
|
||||
typedef void (APIENTRY *glDeleteVertexShaderEXTPROC) (GLuint id);
|
||||
typedef GLuint (APIENTRY *glGenVertexShadersEXTPROC) (GLuint range);
|
||||
typedef void (APIENTRY *glBindVertexShaderEXTPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glEndVertexShaderEXTPROC) ();
|
||||
typedef void (APIENTRY *glBeginVertexShaderEXTPROC) ();
|
||||
typedef void (APIENTRY *glEndVertexShaderEXTPROC) ();
|
||||
typedef void (APIENTRY *glBindVertexShaderEXTPROC) (GLuint id);
|
||||
typedef GLuint (APIENTRY *glGenVertexShadersEXTPROC) (GLuint range);
|
||||
typedef void (APIENTRY *glDeleteVertexShaderEXTPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glShaderOp1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
|
||||
typedef void (APIENTRY *glShaderOp2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
|
||||
typedef void (APIENTRY *glShaderOp3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
|
||||
typedef void (APIENTRY *glSwizzleEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
|
||||
typedef void (APIENTRY *glWriteMaskEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
|
||||
typedef void (APIENTRY *glInsertComponentEXTPROC) (GLuint res, GLuint src, GLuint num);
|
||||
typedef void (APIENTRY *glExtractComponentEXTPROC) (GLuint res, GLuint src, GLuint num);
|
||||
typedef GLuint (APIENTRY *glGenSymbolsEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components);
|
||||
typedef void (APIENTRY *glSetInvariantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr);
|
||||
typedef void (APIENTRY *glSetLocalConstantEXTPROC) (GLuint id, GLenum type, GLvoid * pAddr);
|
||||
typedef void (APIENTRY *glVariantbvEXTPROC) (GLuint id, GLbyte * pAddr);
|
||||
typedef void (APIENTRY *glVariantsvEXTPROC) (GLuint id, GLshort * pAddr);
|
||||
typedef void (APIENTRY *glVariantivEXTPROC) (GLuint id, GLint * pAddr);
|
||||
typedef void (APIENTRY *glVariantfvEXTPROC) (GLuint id, GLfloat * pAddr);
|
||||
typedef void (APIENTRY *glVariantubvEXTPROC) (GLuint id, GLubyte * pAddr);
|
||||
typedef void (APIENTRY *glVariantusvEXTPROC) (GLuint id, GLushort * pAddr);
|
||||
typedef void (APIENTRY *glVariantuivEXTPROC) (GLuint id, GLuint * pAddr);
|
||||
typedef void (APIENTRY *glVariantPointerEXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid * pAddr);
|
||||
typedef void (APIENTRY *glEnableVariantClientStateEXTPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glDisableVariantClientStateEXTPROC) (GLuint id);
|
||||
typedef GLuint (APIENTRY *glBindLightParameterEXTPROC) (GLenum light, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindMaterialParameterEXTPROC) (GLenum face, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindTexGenParameterEXTPROC) (GLenum unit, GLenum coord, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindTextureUnitParameterEXTPROC) (GLenum unit, GLenum value);
|
||||
typedef GLuint (APIENTRY *glBindParameterEXTPROC) (GLenum value);
|
||||
typedef GLboolean (APIENTRY *glIsVariantEnabledEXTPROC) (GLuint id, GLenum cap);
|
||||
typedef void (APIENTRY *glGetVariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef void (APIENTRY *glGetVariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetVariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
typedef void (APIENTRY *glGetVariantPointervEXTPROC) (GLuint id, GLenum value, GLvoid ** pbData);
|
||||
typedef void (APIENTRY *glGetInvariantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef void (APIENTRY *glGetInvariantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetInvariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
typedef void (APIENTRY *glGetLocalConstantBooleanvEXTPROC) (GLuint id, GLenum value, GLbyte * pbData);
|
||||
typedef void (APIENTRY *glGetLocalConstantIntegervEXTPROC) (GLuint id, GLenum value, GLint * pbData);
|
||||
typedef void (APIENTRY *glGetLocalConstantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat * pbData);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantFloatvEXTPROC glGetLocalConstantFloatvEXT = (glGetLocalConstantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantFloatvEXT(id, value, pbData_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBeginVertexShaderEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glBeginVertexShaderEXTPROC glBeginVertexShaderEXT = (glBeginVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glBeginVertexShaderEXT();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT = (glGetLocalConstantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantIntegervEXT(id, value, pbData_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglEndVertexShaderEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndVertexShaderEXTPROC glEndVertexShaderEXT = (glEndVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glEndVertexShaderEXT();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT = (glGetLocalConstantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantBooleanvEXT(id, value, pbData_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindVertexShaderEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBindVertexShaderEXTPROC glBindVertexShaderEXT = (glBindVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glBindVertexShaderEXT(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantFloatvEXTPROC glGetInvariantFloatvEXT = (glGetInvariantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantFloatvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantIntegervEXTPROC glGetInvariantIntegervEXT = (glGetInvariantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantIntegervEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantBooleanvEXTPROC glGetInvariantBooleanvEXT = (glGetInvariantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantBooleanvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantPointervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jint result_size, jlong function_pointer) {
|
||||
glGetVariantPointervEXTPROC glGetVariantPointervEXT = (glGetVariantPointervEXTPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVariantPointervEXT(id, value, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantFloatvEXTPROC glGetVariantFloatvEXT = (glGetVariantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantFloatvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantIntegervEXTPROC glGetVariantIntegervEXT = (glGetVariantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantIntegervEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantBooleanvEXTPROC glGetVariantBooleanvEXT = (glGetVariantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantBooleanvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglIsVariantEnabledEXT(JNIEnv *env, jclass clazz, jint id, jint cap, jlong function_pointer) {
|
||||
glIsVariantEnabledEXTPROC glIsVariantEnabledEXT = (glIsVariantEnabledEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsVariantEnabledEXT(id, cap);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGenVertexShadersEXT(JNIEnv *env, jclass clazz, jint range, jlong function_pointer) {
|
||||
glGenVertexShadersEXTPROC glGenVertexShadersEXT = (glGenVertexShadersEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glGenVertexShadersEXT(range);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindParameterEXT(JNIEnv *env, jclass clazz, jint value, jlong function_pointer) {
|
||||
glBindParameterEXTPROC glBindParameterEXT = (glBindParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindParameterEXT(value);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglDeleteVertexShaderEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDeleteVertexShaderEXTPROC glDeleteVertexShaderEXT = (glDeleteVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glDeleteVertexShaderEXT(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp1EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jlong function_pointer) {
|
||||
glShaderOp1EXTPROC glShaderOp1EXT = (glShaderOp1EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp1EXT(op, res, arg1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp2EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jlong function_pointer) {
|
||||
glShaderOp2EXTPROC glShaderOp2EXT = (glShaderOp2EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp2EXT(op, res, arg1, arg2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp3EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3, jlong function_pointer) {
|
||||
glShaderOp3EXTPROC glShaderOp3EXT = (glShaderOp3EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp3EXT(op, res, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSwizzleEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW, jlong function_pointer) {
|
||||
glSwizzleEXTPROC glSwizzleEXT = (glSwizzleEXTPROC)((intptr_t)function_pointer);
|
||||
glSwizzleEXT(res, in, outX, outY, outZ, outW);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglWriteMaskEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW, jlong function_pointer) {
|
||||
glWriteMaskEXTPROC glWriteMaskEXT = (glWriteMaskEXTPROC)((intptr_t)function_pointer);
|
||||
glWriteMaskEXT(res, in, outX, outY, outZ, outW);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglInsertComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num, jlong function_pointer) {
|
||||
glInsertComponentEXTPROC glInsertComponentEXT = (glInsertComponentEXTPROC)((intptr_t)function_pointer);
|
||||
glInsertComponentEXT(res, src, num);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglExtractComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num, jlong function_pointer) {
|
||||
glExtractComponentEXTPROC glExtractComponentEXT = (glExtractComponentEXTPROC)((intptr_t)function_pointer);
|
||||
glExtractComponentEXT(res, src, num);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGenSymbolsEXT(JNIEnv *env, jclass clazz, jint dataType, jint storageType, jint range, jint components, jlong function_pointer) {
|
||||
glGenSymbolsEXTPROC glGenSymbolsEXT = (glGenSymbolsEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glGenSymbolsEXT(dataType, storageType, range, components);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindTextureUnitParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint value, jlong function_pointer) {
|
||||
glBindTextureUnitParameterEXTPROC glBindTextureUnitParameterEXT = (glBindTextureUnitParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindTextureUnitParameterEXT(unit, value);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position));
|
||||
glSetInvariantEXTPROC glSetInvariantEXT = (glSetInvariantEXTPROC)((intptr_t)function_pointer);
|
||||
glSetInvariantEXT(id, type, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindTexGenParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint coord, jint value, jlong function_pointer) {
|
||||
glBindTexGenParameterEXTPROC glBindTexGenParameterEXT = (glBindTexGenParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindTexGenParameterEXT(unit, coord, value);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position));
|
||||
glSetLocalConstantEXTPROC glSetLocalConstantEXT = (glSetLocalConstantEXTPROC)((intptr_t)function_pointer);
|
||||
glSetLocalConstantEXT(id, type, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindMaterialParameterEXT(JNIEnv *env, jclass clazz, jint face, jint value, jlong function_pointer) {
|
||||
glBindMaterialParameterEXTPROC glBindMaterialParameterEXT = (glBindMaterialParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindMaterialParameterEXT(face, value);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLbyte *pAddr_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantbvEXTPROC glVariantbvEXT = (glVariantbvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantbvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindLightParameterEXT(JNIEnv *env, jclass clazz, jint light, jint value, jlong function_pointer) {
|
||||
glBindLightParameterEXTPROC glBindLightParameterEXT = (glBindLightParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindLightParameterEXT(light, value);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLshort *pAddr_address = ((GLshort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantsvEXTPROC glVariantsvEXT = (glVariantsvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantsvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglDisableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDisableVariantClientStateEXTPROC glDisableVariantClientStateEXT = (glDisableVariantClientStateEXTPROC)((intptr_t)function_pointer);
|
||||
glDisableVariantClientStateEXT(id);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLint *pAddr_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantivEXTPROC glVariantivEXT = (glVariantivEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantivEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglEnableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glEnableVariantClientStateEXTPROC glEnableVariantClientStateEXT = (glEnableVariantClientStateEXTPROC)((intptr_t)function_pointer);
|
||||
glEnableVariantClientStateEXT(id);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLfloat *pAddr_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantfvEXTPROC glVariantfvEXT = (glVariantfvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantfvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLubyte *pAddr_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantubvEXTPROC glVariantubvEXT = (glVariantubvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantubvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLushort *pAddr_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantusvEXTPROC glVariantusvEXT = (glVariantusvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantusvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLuint *pAddr_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantuivEXTPROC glVariantuivEXT = (glVariantuivEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantuivEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT(JNIEnv *env, jclass clazz, jint id, jint type, jint stride, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
|
@ -164,124 +178,110 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEX
|
|||
glVariantPointerEXT(id, type, stride, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLuint *pAddr_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantuivEXTPROC glVariantuivEXT = (glVariantuivEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantuivEXT(id, pAddr_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglEnableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glEnableVariantClientStateEXTPROC glEnableVariantClientStateEXT = (glEnableVariantClientStateEXTPROC)((intptr_t)function_pointer);
|
||||
glEnableVariantClientStateEXT(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLushort *pAddr_address = ((GLushort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantusvEXTPROC glVariantusvEXT = (glVariantusvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantusvEXT(id, pAddr_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglDisableVariantClientStateEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDisableVariantClientStateEXTPROC glDisableVariantClientStateEXT = (glDisableVariantClientStateEXTPROC)((intptr_t)function_pointer);
|
||||
glDisableVariantClientStateEXT(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLubyte *pAddr_address = ((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantubvEXTPROC glVariantubvEXT = (glVariantubvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantubvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLfloat *pAddr_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantfvEXTPROC glVariantfvEXT = (glVariantfvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantfvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLint *pAddr_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantivEXTPROC glVariantivEXT = (glVariantivEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantivEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLshort *pAddr_address = ((GLshort *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantsvEXTPROC glVariantsvEXT = (glVariantsvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantsvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT(JNIEnv *env, jclass clazz, jint id, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLbyte *pAddr_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position;
|
||||
glVariantbvEXTPROC glVariantbvEXT = (glVariantbvEXTPROC)((intptr_t)function_pointer);
|
||||
glVariantbvEXT(id, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position));
|
||||
glSetLocalConstantEXTPROC glSetLocalConstantEXT = (glSetLocalConstantEXTPROC)((intptr_t)function_pointer);
|
||||
glSetLocalConstantEXT(id, type, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT(JNIEnv *env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_position, jlong function_pointer) {
|
||||
GLvoid *pAddr_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pAddr)) + pAddr_position));
|
||||
glSetInvariantEXTPROC glSetInvariantEXT = (glSetInvariantEXTPROC)((intptr_t)function_pointer);
|
||||
glSetInvariantEXT(id, type, pAddr_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGenSymbolsEXT(JNIEnv *env, jclass clazz, jint dataType, jint storageType, jint range, jint components, jlong function_pointer) {
|
||||
glGenSymbolsEXTPROC glGenSymbolsEXT = (glGenSymbolsEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glGenSymbolsEXT(dataType, storageType, range, components);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindLightParameterEXT(JNIEnv *env, jclass clazz, jint light, jint value, jlong function_pointer) {
|
||||
glBindLightParameterEXTPROC glBindLightParameterEXT = (glBindLightParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindLightParameterEXT(light, value);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglExtractComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num, jlong function_pointer) {
|
||||
glExtractComponentEXTPROC glExtractComponentEXT = (glExtractComponentEXTPROC)((intptr_t)function_pointer);
|
||||
glExtractComponentEXT(res, src, num);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglInsertComponentEXT(JNIEnv *env, jclass clazz, jint res, jint src, jint num, jlong function_pointer) {
|
||||
glInsertComponentEXTPROC glInsertComponentEXT = (glInsertComponentEXTPROC)((intptr_t)function_pointer);
|
||||
glInsertComponentEXT(res, src, num);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglWriteMaskEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW, jlong function_pointer) {
|
||||
glWriteMaskEXTPROC glWriteMaskEXT = (glWriteMaskEXTPROC)((intptr_t)function_pointer);
|
||||
glWriteMaskEXT(res, in, outX, outY, outZ, outW);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSwizzleEXT(JNIEnv *env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW, jlong function_pointer) {
|
||||
glSwizzleEXTPROC glSwizzleEXT = (glSwizzleEXTPROC)((intptr_t)function_pointer);
|
||||
glSwizzleEXT(res, in, outX, outY, outZ, outW);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp3EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3, jlong function_pointer) {
|
||||
glShaderOp3EXTPROC glShaderOp3EXT = (glShaderOp3EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp3EXT(op, res, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp2EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jlong function_pointer) {
|
||||
glShaderOp2EXTPROC glShaderOp2EXT = (glShaderOp2EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp2EXT(op, res, arg1, arg2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglShaderOp1EXT(JNIEnv *env, jclass clazz, jint op, jint res, jint arg1, jlong function_pointer) {
|
||||
glShaderOp1EXTPROC glShaderOp1EXT = (glShaderOp1EXTPROC)((intptr_t)function_pointer);
|
||||
glShaderOp1EXT(op, res, arg1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglDeleteVertexShaderEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glDeleteVertexShaderEXTPROC glDeleteVertexShaderEXT = (glDeleteVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glDeleteVertexShaderEXT(id);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGenVertexShadersEXT(JNIEnv *env, jclass clazz, jint range, jlong function_pointer) {
|
||||
glGenVertexShadersEXTPROC glGenVertexShadersEXT = (glGenVertexShadersEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glGenVertexShadersEXT(range);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindMaterialParameterEXT(JNIEnv *env, jclass clazz, jint face, jint value, jlong function_pointer) {
|
||||
glBindMaterialParameterEXTPROC glBindMaterialParameterEXT = (glBindMaterialParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindMaterialParameterEXT(face, value);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindVertexShaderEXT(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBindVertexShaderEXTPROC glBindVertexShaderEXT = (glBindVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glBindVertexShaderEXT(id);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindTexGenParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint coord, jint value, jlong function_pointer) {
|
||||
glBindTexGenParameterEXTPROC glBindTexGenParameterEXT = (glBindTexGenParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindTexGenParameterEXT(unit, coord, value);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglEndVertexShaderEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndVertexShaderEXTPROC glEndVertexShaderEXT = (glEndVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glEndVertexShaderEXT();
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindTextureUnitParameterEXT(JNIEnv *env, jclass clazz, jint unit, jint value, jlong function_pointer) {
|
||||
glBindTextureUnitParameterEXTPROC glBindTextureUnitParameterEXT = (glBindTextureUnitParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindTextureUnitParameterEXT(unit, value);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBeginVertexShaderEXT(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glBeginVertexShaderEXTPROC glBeginVertexShaderEXT = (glBeginVertexShaderEXTPROC)((intptr_t)function_pointer);
|
||||
glBeginVertexShaderEXT();
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglBindParameterEXT(JNIEnv *env, jclass clazz, jint value, jlong function_pointer) {
|
||||
glBindParameterEXTPROC glBindParameterEXT = (glBindParameterEXTPROC)((intptr_t)function_pointer);
|
||||
GLuint __result = glBindParameterEXT(value);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglIsVariantEnabledEXT(JNIEnv *env, jclass clazz, jint id, jint cap, jlong function_pointer) {
|
||||
glIsVariantEnabledEXTPROC glIsVariantEnabledEXT = (glIsVariantEnabledEXTPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsVariantEnabledEXT(id, cap);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantBooleanvEXTPROC glGetVariantBooleanvEXT = (glGetVariantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantBooleanvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantIntegervEXTPROC glGetVariantIntegervEXT = (glGetVariantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantIntegervEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetVariantFloatvEXTPROC glGetVariantFloatvEXT = (glGetVariantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetVariantFloatvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantPointervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jint result_size, jlong function_pointer) {
|
||||
glGetVariantPointervEXTPROC glGetVariantPointervEXT = (glGetVariantPointervEXTPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVariantPointervEXT(id, value, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantBooleanvEXTPROC glGetInvariantBooleanvEXT = (glGetInvariantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantBooleanvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantIntegervEXTPROC glGetInvariantIntegervEXT = (glGetInvariantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantIntegervEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetInvariantFloatvEXTPROC glGetInvariantFloatvEXT = (glGetInvariantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetInvariantFloatvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLbyte *pbData_address = ((GLbyte *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT = (glGetLocalConstantBooleanvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantBooleanvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLint *pbData_address = ((GLint *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT = (glGetLocalConstantIntegervEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantIntegervEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT(JNIEnv *env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_position, jlong function_pointer) {
|
||||
GLfloat *pbData_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, pbData)) + pbData_position;
|
||||
glGetLocalConstantFloatvEXTPROC glGetLocalConstantFloatvEXT = (glGetLocalConstantFloatvEXTPROC)((intptr_t)function_pointer);
|
||||
glGetLocalConstantFloatvEXT(id, value, pbData_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glVertexWeightPointerEXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glVertexWeightfEXTPROC) (GLfloat weight);
|
||||
typedef void (APIENTRY *glVertexWeightPointerEXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid * pPointer);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightfEXT(JNIEnv *env, jclass clazz, jfloat weight, jlong function_pointer) {
|
||||
glVertexWeightfEXTPROC glVertexWeightfEXT = (glVertexWeightfEXTPROC)((intptr_t)function_pointer);
|
||||
glVertexWeightfEXT(weight);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
|
@ -18,8 +23,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightP
|
|||
glVertexWeightPointerEXT(size, type, stride, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightfEXT(JNIEnv *env, jclass clazz, jfloat weight, jlong function_pointer) {
|
||||
glVertexWeightfEXTPROC glVertexWeightfEXT = (glVertexWeightfEXTPROC)((intptr_t)function_pointer);
|
||||
glVertexWeightfEXT(weight);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,55 +3,20 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glEvalMapsNVPROC) (GLenum target, GLenum mode);
|
||||
typedef void (APIENTRY *glGetMapAttribParameterivNVPROC) (GLenum target, GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetMapAttribParameterfvNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glGetMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid * pPoints);
|
||||
typedef void (APIENTRY *glGetMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, const GLvoid * pPoints);
|
||||
typedef void (APIENTRY *glMapControlPointsNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid * pPoints);
|
||||
typedef void (APIENTRY *glMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glGetMapParameterfvNVPROC) (GLenum target, GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glGetMapParameterivNVPROC) (GLenum target, GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glGetMapAttribParameterfvNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetMapAttribParameterivNVPROC) (GLenum target, GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glEvalMapsNVPROC) (GLenum target, GLenum mode);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglEvalMapsNV(JNIEnv *env, jclass clazz, jint target, jint mode, jlong function_pointer) {
|
||||
glEvalMapsNVPROC glEvalMapsNV = (glEvalMapsNVPROC)((intptr_t)function_pointer);
|
||||
glEvalMapsNV(target, mode);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapAttribParameterivNVPROC glGetMapAttribParameterivNV = (glGetMapAttribParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapAttribParameterivNV(target, index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapAttribParameterfvNVPROC glGetMapAttribParameterfvNV = (glGetMapAttribParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapAttribParameterfvNV(target, index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapParameterivNVPROC glGetMapParameterivNV = (glGetMapParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapParameterivNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapParameterfvNVPROC glGetMapParameterfvNV = (glGetMapParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapParameterfvNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glMapParameterivNVPROC glMapParameterivNV = (glMapParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glMapParameterivNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glMapParameterfvNVPROC glMapParameterfvNV = (glMapParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glMapParameterfvNV(target, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV(JNIEnv *env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jboolean packed, jobject pPoints, jint pPoints_position, jlong function_pointer) {
|
||||
const GLvoid *pPoints_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPoints)) + pPoints_position));
|
||||
glGetMapControlPointsNVPROC glGetMapControlPointsNV = (glGetMapControlPointsNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV(JNIEnv *env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jint uorder, jint vorder, jboolean packed, jobject pPoints, jint pPoints_position, jlong function_pointer) {
|
||||
|
@ -60,9 +25,44 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV(
|
|||
glMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV(JNIEnv *env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jboolean packed, jobject pPoints, jint pPoints_position, jlong function_pointer) {
|
||||
const GLvoid *pPoints_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPoints)) + pPoints_position));
|
||||
glGetMapControlPointsNVPROC glGetMapControlPointsNV = (glGetMapControlPointsNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glMapParameterfvNVPROC glMapParameterfvNV = (glMapParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glMapParameterfvNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glMapParameterivNVPROC glMapParameterivNV = (glMapParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glMapParameterivNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapParameterfvNVPROC glGetMapParameterfvNV = (glGetMapParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapParameterfvNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapParameterivNVPROC glGetMapParameterivNV = (glGetMapParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapParameterivNV(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapAttribParameterfvNVPROC glGetMapAttribParameterfvNV = (glGetMapAttribParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapAttribParameterfvNV(target, index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetMapAttribParameterivNVPROC glGetMapAttribParameterivNV = (glGetMapAttribParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetMapAttribParameterivNV(target, index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglEvalMapsNV(JNIEnv *env, jclass clazz, jint target, jint mode, jlong function_pointer) {
|
||||
glEvalMapsNVPROC glEvalMapsNV = (glEvalMapsNVPROC)((intptr_t)function_pointer);
|
||||
glEvalMapsNV(target, mode);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,40 +3,18 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetFenceivNVPROC) (GLuint fence, GLenum pname, GLint * piParams);
|
||||
typedef GLboolean (APIENTRY *glIsFenceNVPROC) (GLuint fence);
|
||||
typedef void (APIENTRY *glFinishFenceNVPROC) (GLuint fence);
|
||||
typedef GLboolean (APIENTRY *glTestFenceNVPROC) (GLuint fence);
|
||||
typedef void (APIENTRY *glSetFenceNVPROC) (GLuint fence, GLenum condition);
|
||||
typedef void (APIENTRY *glDeleteFencesNVPROC) (GLsizei n, const GLuint * piFences);
|
||||
typedef void (APIENTRY *glGenFencesNVPROC) (GLsizei n, GLuint * piFences);
|
||||
typedef void (APIENTRY *glDeleteFencesNVPROC) (GLsizei n, const GLuint * piFences);
|
||||
typedef void (APIENTRY *glSetFenceNVPROC) (GLuint fence, GLenum condition);
|
||||
typedef GLboolean (APIENTRY *glTestFenceNVPROC) (GLuint fence);
|
||||
typedef void (APIENTRY *glFinishFenceNVPROC) (GLuint fence);
|
||||
typedef GLboolean (APIENTRY *glIsFenceNVPROC) (GLuint fence);
|
||||
typedef void (APIENTRY *glGetFenceivNVPROC) (GLuint fence, GLenum pname, GLint * piParams);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV(JNIEnv *env, jclass clazz, jint fence, jint pname, jobject piParams, jint piParams_position, jlong function_pointer) {
|
||||
GLint *piParams_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piParams)) + piParams_position;
|
||||
glGetFenceivNVPROC glGetFenceivNV = (glGetFenceivNVPROC)((intptr_t)function_pointer);
|
||||
glGetFenceivNV(fence, pname, piParams_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_nglIsFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glIsFenceNVPROC glIsFenceNV = (glIsFenceNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsFenceNV(fence);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglFinishFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glFinishFenceNVPROC glFinishFenceNV = (glFinishFenceNVPROC)((intptr_t)function_pointer);
|
||||
glFinishFenceNV(fence);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_nglTestFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glTestFenceNVPROC glTestFenceNV = (glTestFenceNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glTestFenceNV(fence);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglSetFenceNV(JNIEnv *env, jclass clazz, jint fence, jint condition, jlong function_pointer) {
|
||||
glSetFenceNVPROC glSetFenceNV = (glSetFenceNVPROC)((intptr_t)function_pointer);
|
||||
glSetFenceNV(fence, condition);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV(JNIEnv *env, jclass clazz, jint n, jobject piFences, jint piFences_position, jlong function_pointer) {
|
||||
GLuint *piFences_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, piFences)) + piFences_position;
|
||||
glGenFencesNVPROC glGenFencesNV = (glGenFencesNVPROC)((intptr_t)function_pointer);
|
||||
glGenFencesNV(n, piFences_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV(JNIEnv *env, jclass clazz, jint n, jobject piFences, jint piFences_position, jlong function_pointer) {
|
||||
|
@ -45,9 +23,31 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV(JNIEnv *e
|
|||
glDeleteFencesNV(n, piFences_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV(JNIEnv *env, jclass clazz, jint n, jobject piFences, jint piFences_position, jlong function_pointer) {
|
||||
GLuint *piFences_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, piFences)) + piFences_position;
|
||||
glGenFencesNVPROC glGenFencesNV = (glGenFencesNVPROC)((intptr_t)function_pointer);
|
||||
glGenFencesNV(n, piFences_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglSetFenceNV(JNIEnv *env, jclass clazz, jint fence, jint condition, jlong function_pointer) {
|
||||
glSetFenceNVPROC glSetFenceNV = (glSetFenceNVPROC)((intptr_t)function_pointer);
|
||||
glSetFenceNV(fence, condition);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_nglTestFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glTestFenceNVPROC glTestFenceNV = (glTestFenceNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glTestFenceNV(fence);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglFinishFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glFinishFenceNVPROC glFinishFenceNV = (glFinishFenceNVPROC)((intptr_t)function_pointer);
|
||||
glFinishFenceNV(fence);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_nglIsFenceNV(JNIEnv *env, jclass clazz, jint fence, jlong function_pointer) {
|
||||
glIsFenceNVPROC glIsFenceNV = (glIsFenceNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsFenceNV(fence);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV(JNIEnv *env, jclass clazz, jint fence, jint pname, jobject piParams, jint piParams_position, jlong function_pointer) {
|
||||
GLint *piParams_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piParams)) + piParams_position;
|
||||
glGetFenceivNVPROC glGetFenceivNV = (glGetFenceivNVPROC)((intptr_t)function_pointer);
|
||||
glGetFenceivNV(fence, pname, piParams_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,14 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetProgramNamedParameterfvNVPROC) (GLuint id, GLsizei length, const GLubyte * name, GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramNamedParameter4fNVPROC) (GLuint id, GLsizei length, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glGetProgramNamedParameterfvNVPROC) (GLuint id, GLsizei length, const GLubyte * name, GLfloat * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV(JNIEnv *env, jclass clazz, jint id, jint length, jobject name, jint name_position, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
const GLubyte *name_address = ((const GLubyte *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glProgramNamedParameter4fNVPROC glProgramNamedParameter4fNV = (glProgramNamedParameter4fNVPROC)((intptr_t)function_pointer);
|
||||
glProgramNamedParameter4fNV(id, length, name_address, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramNamedParameterfvNV(JNIEnv *env, jclass clazz, jint id, jint length, jobject name, jint name_position, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLubyte *name_address = ((const GLubyte *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
|
@ -13,9 +19,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramName
|
|||
glGetProgramNamedParameterfvNV(id, length, name_address, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV(JNIEnv *env, jclass clazz, jint id, jint length, jobject name, jint name_position, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
const GLubyte *name_address = ((const GLubyte *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glProgramNamedParameter4fNVPROC glProgramNamedParameter4fNV = (glProgramNamedParameter4fNVPROC)((intptr_t)function_pointer);
|
||||
glProgramNamedParameter4fNV(id, length, name_address, x, y, z, w);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,47 +3,129 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glVertexAttribs4hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs3hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs2hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs1hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttrib4hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY *glVertexAttrib3hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY *glVertexAttrib2hNVPROC) (GLuint index, GLhalf x, GLhalf y);
|
||||
typedef void (APIENTRY *glVertexAttrib1hNVPROC) (GLuint index, GLhalf x);
|
||||
typedef void (APIENTRY *glSecondaryColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY *glFogCoordhNVPROC) (GLhalf fog);
|
||||
typedef void (APIENTRY *glMultiTexCoord4hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY *glMultiTexCoord3hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY *glMultiTexCoord2hNVPROC) (GLenum target, GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY *glMultiTexCoord1hNVPROC) (GLenum target, GLhalf s);
|
||||
typedef void (APIENTRY *glTexCoord4hNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY *glTexCoord3hNVPROC) (GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY *glTexCoord2hNVPROC) (GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY *glTexCoord1hNVPROC) (GLhalf s);
|
||||
typedef void (APIENTRY *glColor4hNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha);
|
||||
typedef void (APIENTRY *glColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY *glNormal3hNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz);
|
||||
typedef void (APIENTRY *glVertex4hNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY *glVertex3hNVPROC) (GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY *glVertex2hNVPROC) (GLhalf x, GLhalf y);
|
||||
typedef void (APIENTRY *glVertex3hNVPROC) (GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY *glVertex4hNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY *glNormal3hNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz);
|
||||
typedef void (APIENTRY *glColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY *glColor4hNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha);
|
||||
typedef void (APIENTRY *glTexCoord1hNVPROC) (GLhalf s);
|
||||
typedef void (APIENTRY *glTexCoord2hNVPROC) (GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY *glTexCoord3hNVPROC) (GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY *glTexCoord4hNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY *glMultiTexCoord1hNVPROC) (GLenum target, GLhalf s);
|
||||
typedef void (APIENTRY *glMultiTexCoord2hNVPROC) (GLenum target, GLhalf s, GLhalf t);
|
||||
typedef void (APIENTRY *glMultiTexCoord3hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r);
|
||||
typedef void (APIENTRY *glMultiTexCoord4hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q);
|
||||
typedef void (APIENTRY *glFogCoordhNVPROC) (GLhalf fog);
|
||||
typedef void (APIENTRY *glSecondaryColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue);
|
||||
typedef void (APIENTRY *glVertexAttrib1hNVPROC) (GLuint index, GLhalf x);
|
||||
typedef void (APIENTRY *glVertexAttrib2hNVPROC) (GLuint index, GLhalf x, GLhalf y);
|
||||
typedef void (APIENTRY *glVertexAttrib3hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z);
|
||||
typedef void (APIENTRY *glVertexAttrib4hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w);
|
||||
typedef void (APIENTRY *glVertexAttribs1hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs2hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs3hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
typedef void (APIENTRY *glVertexAttribs4hvNVPROC) (GLuint index, GLsizei n, const GLhalf * attribs);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs4hvNVPROC glVertexAttribs4hvNV = (glVertexAttribs4hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4hvNV(index, n, attribs_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex2hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertex2hNVPROC glVertex2hNV = (glVertex2hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex2hNV(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs3hvNVPROC glVertexAttribs3hvNV = (glVertexAttribs3hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3hvNV(index, n, attribs_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex3hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertex3hNVPROC glVertex3hNV = (glVertex3hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex3hNV(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs2hvNVPROC glVertexAttribs2hvNV = (glVertexAttribs2hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2hvNV(index, n, attribs_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex4hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertex4hNVPROC glVertex4hNV = (glVertex4hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex4hNV(x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglNormal3hNV(JNIEnv *env, jclass clazz, jshort nx, jshort ny, jshort nz, jlong function_pointer) {
|
||||
glNormal3hNVPROC glNormal3hNV = (glNormal3hNVPROC)((intptr_t)function_pointer);
|
||||
glNormal3hNV(nx, ny, nz);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jlong function_pointer) {
|
||||
glColor3hNVPROC glColor3hNV = (glColor3hNVPROC)((intptr_t)function_pointer);
|
||||
glColor3hNV(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglColor4hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jshort alpha, jlong function_pointer) {
|
||||
glColor4hNVPROC glColor4hNV = (glColor4hNVPROC)((intptr_t)function_pointer);
|
||||
glColor4hNV(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord1hNV(JNIEnv *env, jclass clazz, jshort s, jlong function_pointer) {
|
||||
glTexCoord1hNVPROC glTexCoord1hNV = (glTexCoord1hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord1hNV(s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord2hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jlong function_pointer) {
|
||||
glTexCoord2hNVPROC glTexCoord2hNV = (glTexCoord2hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord2hNV(s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord3hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glTexCoord3hNVPROC glTexCoord3hNV = (glTexCoord3hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord3hNV(s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord4hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glTexCoord4hNVPROC glTexCoord4hNV = (glTexCoord4hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord4hNV(s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord1hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jlong function_pointer) {
|
||||
glMultiTexCoord1hNVPROC glMultiTexCoord1hNV = (glMultiTexCoord1hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1hNV(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord2hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jlong function_pointer) {
|
||||
glMultiTexCoord2hNVPROC glMultiTexCoord2hNV = (glMultiTexCoord2hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2hNV(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord3hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glMultiTexCoord3hNVPROC glMultiTexCoord3hNV = (glMultiTexCoord3hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3hNV(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord4hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glMultiTexCoord4hNVPROC glMultiTexCoord4hNV = (glMultiTexCoord4hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4hNV(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglFogCoordhNV(JNIEnv *env, jclass clazz, jshort fog, jlong function_pointer) {
|
||||
glFogCoordhNVPROC glFogCoordhNV = (glFogCoordhNVPROC)((intptr_t)function_pointer);
|
||||
glFogCoordhNV(fog);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglSecondaryColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jlong function_pointer) {
|
||||
glSecondaryColor3hNVPROC glSecondaryColor3hNV = (glSecondaryColor3hNVPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3hNV(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib1hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1hNVPROC glVertexAttrib1hNV = (glVertexAttrib1hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1hNV(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib2hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2hNVPROC glVertexAttrib2hNV = (glVertexAttrib2hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2hNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib3hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3hNVPROC glVertexAttrib3hNV = (glVertexAttrib3hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3hNV(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib4hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4hNVPROC glVertexAttrib4hNV = (glVertexAttrib4hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4hNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
|
@ -52,103 +134,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV(J
|
|||
glVertexAttribs1hvNV(index, n, attribs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib4hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4hNVPROC glVertexAttrib4hNV = (glVertexAttrib4hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4hNV(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs2hvNVPROC glVertexAttribs2hvNV = (glVertexAttribs2hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2hvNV(index, n, attribs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib3hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3hNVPROC glVertexAttrib3hNV = (glVertexAttrib3hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3hNV(index, x, y, z);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs3hvNVPROC glVertexAttribs3hvNV = (glVertexAttribs3hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3hvNV(index, n, attribs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib2hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2hNVPROC glVertexAttrib2hNV = (glVertexAttrib2hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2hNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttrib1hNV(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1hNVPROC glVertexAttrib1hNV = (glVertexAttrib1hNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1hNV(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglSecondaryColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jlong function_pointer) {
|
||||
glSecondaryColor3hNVPROC glSecondaryColor3hNV = (glSecondaryColor3hNVPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3hNV(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglFogCoordhNV(JNIEnv *env, jclass clazz, jshort fog, jlong function_pointer) {
|
||||
glFogCoordhNVPROC glFogCoordhNV = (glFogCoordhNVPROC)((intptr_t)function_pointer);
|
||||
glFogCoordhNV(fog);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord4hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glMultiTexCoord4hNVPROC glMultiTexCoord4hNV = (glMultiTexCoord4hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4hNV(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord3hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glMultiTexCoord3hNVPROC glMultiTexCoord3hNV = (glMultiTexCoord3hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3hNV(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord2hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jlong function_pointer) {
|
||||
glMultiTexCoord2hNVPROC glMultiTexCoord2hNV = (glMultiTexCoord2hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2hNV(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglMultiTexCoord1hNV(JNIEnv *env, jclass clazz, jint target, jshort s, jlong function_pointer) {
|
||||
glMultiTexCoord1hNVPROC glMultiTexCoord1hNV = (glMultiTexCoord1hNVPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1hNV(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord4hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r, jshort q, jlong function_pointer) {
|
||||
glTexCoord4hNVPROC glTexCoord4hNV = (glTexCoord4hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord4hNV(s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord3hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jshort r, jlong function_pointer) {
|
||||
glTexCoord3hNVPROC glTexCoord3hNV = (glTexCoord3hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord3hNV(s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord2hNV(JNIEnv *env, jclass clazz, jshort s, jshort t, jlong function_pointer) {
|
||||
glTexCoord2hNVPROC glTexCoord2hNV = (glTexCoord2hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord2hNV(s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglTexCoord1hNV(JNIEnv *env, jclass clazz, jshort s, jlong function_pointer) {
|
||||
glTexCoord1hNVPROC glTexCoord1hNV = (glTexCoord1hNVPROC)((intptr_t)function_pointer);
|
||||
glTexCoord1hNV(s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglColor4hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jshort alpha, jlong function_pointer) {
|
||||
glColor4hNVPROC glColor4hNV = (glColor4hNVPROC)((intptr_t)function_pointer);
|
||||
glColor4hNV(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglColor3hNV(JNIEnv *env, jclass clazz, jshort red, jshort green, jshort blue, jlong function_pointer) {
|
||||
glColor3hNVPROC glColor3hNV = (glColor3hNVPROC)((intptr_t)function_pointer);
|
||||
glColor3hNV(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglNormal3hNV(JNIEnv *env, jclass clazz, jshort nx, jshort ny, jshort nz, jlong function_pointer) {
|
||||
glNormal3hNVPROC glNormal3hNV = (glNormal3hNVPROC)((intptr_t)function_pointer);
|
||||
glNormal3hNV(nx, ny, nz);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex4hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertex4hNVPROC glVertex4hNV = (glVertex4hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex4hNV(x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex3hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertex3hNVPROC glVertex3hNV = (glVertex3hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex3hNV(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertex2hNV(JNIEnv *env, jclass clazz, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertex2hNVPROC glVertex2hNV = (glVertex2hNVPROC)((intptr_t)function_pointer);
|
||||
glVertex2hNV(x, y);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject attribs, jint attribs_position, jlong function_pointer) {
|
||||
const GLhalf *attribs_address = ((const GLhalf *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position;
|
||||
glVertexAttribs4hvNVPROC glVertexAttribs4hvNV = (glVertexAttribs4hvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4hvNV(index, n, attribs_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,40 +3,18 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetOcclusionQueryivNVPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetOcclusionQueryuivNVPROC) (GLuint id, GLenum pname, GLuint * params);
|
||||
typedef void (APIENTRY *glEndOcclusionQueryNVPROC) ();
|
||||
typedef void (APIENTRY *glBeginOcclusionQueryNVPROC) (GLuint id);
|
||||
typedef GLboolean (APIENTRY *glIsOcclusionQueryNVPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glDeleteOcclusionQueriesNVPROC) (GLsizei n, const GLuint * piIDs);
|
||||
typedef void (APIENTRY *glGenOcclusionQueriesNVPROC) (GLsizei n, GLuint * piIDs);
|
||||
typedef void (APIENTRY *glDeleteOcclusionQueriesNVPROC) (GLsizei n, const GLuint * piIDs);
|
||||
typedef GLboolean (APIENTRY *glIsOcclusionQueryNVPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glBeginOcclusionQueryNVPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glEndOcclusionQueryNVPROC) ();
|
||||
typedef void (APIENTRY *glGetOcclusionQueryuivNVPROC) (GLuint id, GLenum pname, GLuint * params);
|
||||
typedef void (APIENTRY *glGetOcclusionQueryivNVPROC) (GLuint id, GLenum pname, GLint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetOcclusionQueryivNVPROC glGetOcclusionQueryivNV = (glGetOcclusionQueryivNVPROC)((intptr_t)function_pointer);
|
||||
glGetOcclusionQueryivNV(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetOcclusionQueryuivNVPROC glGetOcclusionQueryuivNV = (glGetOcclusionQueryuivNVPROC)((intptr_t)function_pointer);
|
||||
glGetOcclusionQueryuivNV(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglEndOcclusionQueryNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndOcclusionQueryNVPROC glEndOcclusionQueryNV = (glEndOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
glEndOcclusionQueryNV();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglBeginOcclusionQueryNV(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBeginOcclusionQueryNVPROC glBeginOcclusionQueryNV = (glBeginOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
glBeginOcclusionQueryNV(id);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglIsOcclusionQueryNV(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsOcclusionQueryNVPROC glIsOcclusionQueryNV = (glIsOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsOcclusionQueryNV(id);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV(JNIEnv *env, jclass clazz, jint n, jobject piIDs, jint piIDs_position, jlong function_pointer) {
|
||||
GLuint *piIDs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, piIDs)) + piIDs_position;
|
||||
glGenOcclusionQueriesNVPROC glGenOcclusionQueriesNV = (glGenOcclusionQueriesNVPROC)((intptr_t)function_pointer);
|
||||
glGenOcclusionQueriesNV(n, piIDs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusionQueriesNV(JNIEnv *env, jclass clazz, jint n, jobject piIDs, jint piIDs_position, jlong function_pointer) {
|
||||
|
@ -45,9 +23,31 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusion
|
|||
glDeleteOcclusionQueriesNV(n, piIDs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV(JNIEnv *env, jclass clazz, jint n, jobject piIDs, jint piIDs_position, jlong function_pointer) {
|
||||
GLuint *piIDs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, piIDs)) + piIDs_position;
|
||||
glGenOcclusionQueriesNVPROC glGenOcclusionQueriesNV = (glGenOcclusionQueriesNVPROC)((intptr_t)function_pointer);
|
||||
glGenOcclusionQueriesNV(n, piIDs_address);
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglIsOcclusionQueryNV(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsOcclusionQueryNVPROC glIsOcclusionQueryNV = (glIsOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsOcclusionQueryNV(id);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglBeginOcclusionQueryNV(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glBeginOcclusionQueryNVPROC glBeginOcclusionQueryNV = (glBeginOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
glBeginOcclusionQueryNV(id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglEndOcclusionQueryNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glEndOcclusionQueryNVPROC glEndOcclusionQueryNV = (glEndOcclusionQueryNVPROC)((intptr_t)function_pointer);
|
||||
glEndOcclusionQueryNV();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetOcclusionQueryuivNVPROC glGetOcclusionQueryuivNV = (glGetOcclusionQueryuivNVPROC)((intptr_t)function_pointer);
|
||||
glGetOcclusionQueryuivNV(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetOcclusionQueryivNVPROC glGetOcclusionQueryivNV = (glGetOcclusionQueryivNVPROC)((intptr_t)function_pointer);
|
||||
glGetOcclusionQueryivNV(id, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,13 +3,8 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glFlushPixelDataRangeNVPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glPixelDataRangeNVPROC) (GLenum target, GLsizei length, GLvoid * data);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglFlushPixelDataRangeNV(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glFlushPixelDataRangeNVPROC glFlushPixelDataRangeNV = (glFlushPixelDataRangeNVPROC)((intptr_t)function_pointer);
|
||||
glFlushPixelDataRangeNV(target);
|
||||
}
|
||||
typedef void (APIENTRY *glFlushPixelDataRangeNVPROC) (GLenum target);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeNV(JNIEnv *env, jclass clazz, jint target, jint length, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
|
@ -17,3 +12,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeN
|
|||
glPixelDataRangeNV(target, length, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglFlushPixelDataRangeNV(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glFlushPixelDataRangeNVPROC glFlushPixelDataRangeNV = (glFlushPixelDataRangeNVPROC)((intptr_t)function_pointer);
|
||||
glFlushPixelDataRangeNV(target);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glPointParameterivNVPROC) (GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glPointParameteriNVPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glPointParameterivNVPROC) (GLenum pname, const GLint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameteriNV(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPointParameteriNVPROC glPointParameteriNV = (glPointParameteriNVPROC)((intptr_t)function_pointer);
|
||||
glPointParameteriNV(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
|
@ -12,8 +17,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV
|
|||
glPointParameterivNV(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameteriNV(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPointParameteriNVPROC glPointParameteriNV = (glPointParameteriNVPROC)((intptr_t)function_pointer);
|
||||
glPointParameteriNV(pname, param);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glPrimitiveRestartIndexNVPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glPrimitiveRestartNVPROC) ();
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_nglPrimitiveRestartIndexNV(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glPrimitiveRestartIndexNVPROC glPrimitiveRestartIndexNV = (glPrimitiveRestartIndexNVPROC)((intptr_t)function_pointer);
|
||||
glPrimitiveRestartIndexNV(index);
|
||||
}
|
||||
typedef void (APIENTRY *glPrimitiveRestartIndexNVPROC) (GLuint index);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_nglPrimitiveRestartNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glPrimitiveRestartNVPROC glPrimitiveRestartNV = (glPrimitiveRestartNVPROC)((intptr_t)function_pointer);
|
||||
glPrimitiveRestartNV();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_nglPrimitiveRestartIndexNV(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glPrimitiveRestartIndexNVPROC glPrimitiveRestartIndexNV = (glPrimitiveRestartIndexNVPROC)((intptr_t)function_pointer);
|
||||
glPrimitiveRestartIndexNV(index);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,20 +3,55 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glRequestResidentProgramsNVPROC) (GLsizei n, GLuint * programIDs);
|
||||
typedef GLboolean (APIENTRY *glAreProgramsResidentNVPROC) (GLsizei n, const GLuint * programIDs, GLboolean * programResidences);
|
||||
typedef GLboolean (APIENTRY *glIsProgramNVPROC) (GLuint programID);
|
||||
typedef void (APIENTRY *glGetProgramStringNVPROC) (GLuint programID, GLenum parameterName, GLvoid * paramString);
|
||||
typedef void (APIENTRY *glGetProgramivNVPROC) (GLuint programID, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGenProgramsNVPROC) (GLsizei n, GLuint * programs);
|
||||
typedef void (APIENTRY *glDeleteProgramsNVPROC) (GLsizei n, const GLuint * programs);
|
||||
typedef void (APIENTRY *glBindProgramNVPROC) (GLenum target, GLuint programID);
|
||||
typedef void (APIENTRY *glLoadProgramNVPROC) (GLenum target, GLuint programID, GLsizei length, const GLvoid * string);
|
||||
typedef void (APIENTRY *glBindProgramNVPROC) (GLenum target, GLuint programID);
|
||||
typedef void (APIENTRY *glDeleteProgramsNVPROC) (GLsizei n, const GLuint * programs);
|
||||
typedef void (APIENTRY *glGenProgramsNVPROC) (GLsizei n, GLuint * programs);
|
||||
typedef void (APIENTRY *glGetProgramivNVPROC) (GLuint programID, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetProgramStringNVPROC) (GLuint programID, GLenum parameterName, GLvoid * paramString);
|
||||
typedef GLboolean (APIENTRY *glIsProgramNVPROC) (GLuint programID);
|
||||
typedef GLboolean (APIENTRY *glAreProgramsResidentNVPROC) (GLsizei n, const GLuint * programIDs, GLboolean * programResidences);
|
||||
typedef void (APIENTRY *glRequestResidentProgramsNVPROC) (GLsizei n, GLuint * programIDs);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programIDs, jint programIDs_position, jlong function_pointer) {
|
||||
GLuint *programIDs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programIDs)) + programIDs_position;
|
||||
glRequestResidentProgramsNVPROC glRequestResidentProgramsNV = (glRequestResidentProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glRequestResidentProgramsNV(n, programIDs_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV(JNIEnv *env, jclass clazz, jint target, jint programID, jint length, jobject string, jint string_position, jlong function_pointer) {
|
||||
const GLvoid *string_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, string)) + string_position));
|
||||
glLoadProgramNVPROC glLoadProgramNV = (glLoadProgramNVPROC)((intptr_t)function_pointer);
|
||||
glLoadProgramNV(target, programID, length, string_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglBindProgramNV(JNIEnv *env, jclass clazz, jint target, jint programID, jlong function_pointer) {
|
||||
glBindProgramNVPROC glBindProgramNV = (glBindProgramNVPROC)((intptr_t)function_pointer);
|
||||
glBindProgramNV(target, programID);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
const GLuint *programs_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glDeleteProgramsNVPROC glDeleteProgramsNV = (glDeleteProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glDeleteProgramsNV(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
GLuint *programs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glGenProgramsNVPROC glGenProgramsNV = (glGenProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glGenProgramsNV(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV(JNIEnv *env, jclass clazz, jint programID, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivNVPROC glGetProgramivNV = (glGetProgramivNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramivNV(programID, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV(JNIEnv *env, jclass clazz, jint programID, jint parameterName, jobject paramString, jint paramString_position, jlong function_pointer) {
|
||||
GLvoid *paramString_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, paramString)) + paramString_position));
|
||||
glGetProgramStringNVPROC glGetProgramStringNV = (glGetProgramStringNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramStringNV(programID, parameterName, paramString_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglIsProgramNV(JNIEnv *env, jclass clazz, jint programID, jlong function_pointer) {
|
||||
glIsProgramNVPROC glIsProgramNV = (glIsProgramNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgramNV(programID);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResidentNV(JNIEnv *env, jclass clazz, jint n, jobject programIDs, jint programIDs_position, jobject programResidences, jint programResidences_position, jlong function_pointer) {
|
||||
|
@ -27,44 +62,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResiden
|
|||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglIsProgramNV(JNIEnv *env, jclass clazz, jint programID, jlong function_pointer) {
|
||||
glIsProgramNVPROC glIsProgramNV = (glIsProgramNVPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgramNV(programID);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV(JNIEnv *env, jclass clazz, jint programID, jint parameterName, jobject paramString, jint paramString_position, jlong function_pointer) {
|
||||
GLvoid *paramString_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, paramString)) + paramString_position));
|
||||
glGetProgramStringNVPROC glGetProgramStringNV = (glGetProgramStringNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramStringNV(programID, parameterName, paramString_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV(JNIEnv *env, jclass clazz, jint programID, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivNVPROC glGetProgramivNV = (glGetProgramivNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramivNV(programID, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
GLuint *programs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glGenProgramsNVPROC glGenProgramsNV = (glGenProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glGenProgramsNV(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programs, jint programs_position, jlong function_pointer) {
|
||||
const GLuint *programs_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, programs)) + programs_position;
|
||||
glDeleteProgramsNVPROC glDeleteProgramsNV = (glDeleteProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glDeleteProgramsNV(n, programs_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglBindProgramNV(JNIEnv *env, jclass clazz, jint target, jint programID, jlong function_pointer) {
|
||||
glBindProgramNVPROC glBindProgramNV = (glBindProgramNVPROC)((intptr_t)function_pointer);
|
||||
glBindProgramNV(target, programID);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV(JNIEnv *env, jclass clazz, jint target, jint programID, jint length, jobject string, jint string_position, jlong function_pointer) {
|
||||
const GLvoid *string_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, string)) + string_position));
|
||||
glLoadProgramNVPROC glLoadProgramNV = (glLoadProgramNVPROC)((intptr_t)function_pointer);
|
||||
glLoadProgramNV(target, programID, length, string_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV(JNIEnv *env, jclass clazz, jint n, jobject programIDs, jint programIDs_position, jlong function_pointer) {
|
||||
GLuint *programIDs_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, programIDs)) + programIDs_position;
|
||||
glRequestResidentProgramsNVPROC glRequestResidentProgramsNV = (glRequestResidentProgramsNVPROC)((intptr_t)function_pointer);
|
||||
glRequestResidentProgramsNV(n, programIDs_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,80 +3,23 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetFinalCombinerInputParameterivNVPROC) (GLenum variable, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetFinalCombinerInputParameterfvNVPROC) (GLenum variable, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetCombinerOutputParameterivNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetCombinerOutputParameterfvNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetCombinerInputParameterivNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetCombinerInputParameterfvNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glFinalCombinerInputNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
|
||||
typedef void (APIENTRY *glCombinerOutputNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
|
||||
typedef void (APIENTRY *glCombinerInputNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
|
||||
typedef void (APIENTRY *glCombinerParameterivNVPROC) (GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glCombinerParameteriNVPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glCombinerParameterfvNVPROC) (GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glCombinerParameterfNVPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glCombinerParameterfvNVPROC) (GLenum pname, const GLfloat * params);
|
||||
typedef void (APIENTRY *glCombinerParameteriNVPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glCombinerParameterivNVPROC) (GLenum pname, const GLint * params);
|
||||
typedef void (APIENTRY *glCombinerInputNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
|
||||
typedef void (APIENTRY *glCombinerOutputNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
|
||||
typedef void (APIENTRY *glFinalCombinerInputNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
|
||||
typedef void (APIENTRY *glGetCombinerInputParameterfvNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetCombinerInputParameterivNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetCombinerOutputParameterfvNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetCombinerOutputParameterivNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetFinalCombinerInputParameterfvNVPROC) (GLenum variable, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetFinalCombinerInputParameterivNVPROC) (GLenum variable, GLenum pname, GLint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV(JNIEnv *env, jclass clazz, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFinalCombinerInputParameterivNVPROC glGetFinalCombinerInputParameterivNV = (glGetFinalCombinerInputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetFinalCombinerInputParameterivNV(variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV(JNIEnv *env, jclass clazz, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFinalCombinerInputParameterfvNVPROC glGetFinalCombinerInputParameterfvNV = (glGetFinalCombinerInputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetFinalCombinerInputParameterfvNV(variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerOutputParameterivNVPROC glGetCombinerOutputParameterivNV = (glGetCombinerOutputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerOutputParameterivNV(stage, portion, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerOutputParameterfvNVPROC glGetCombinerOutputParameterfvNV = (glGetCombinerOutputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerOutputParameterfvNV(stage, portion, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerInputParameterivNVPROC glGetCombinerInputParameterivNV = (glGetCombinerInputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerInputParameterivNV(stage, portion, variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerInputParameterfvNVPROC glGetCombinerInputParameterfvNV = (glGetCombinerInputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerInputParameterfvNV(stage, portion, variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglFinalCombinerInputNV(JNIEnv *env, jclass clazz, jint variable, jint input, jint mapping, jint componentUsage, jlong function_pointer) {
|
||||
glFinalCombinerInputNVPROC glFinalCombinerInputNV = (glFinalCombinerInputNVPROC)((intptr_t)function_pointer);
|
||||
glFinalCombinerInputNV(variable, input, mapping, componentUsage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerOutputNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint abOutput, jint cdOutput, jint sumOutput, jint scale, jint bias, jboolean abDotProduct, jboolean cdDotProduct, jboolean muxSum, jlong function_pointer) {
|
||||
glCombinerOutputNVPROC glCombinerOutputNV = (glCombinerOutputNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerInputNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint input, jint mapping, jint componentUsage, jlong function_pointer) {
|
||||
glCombinerInputNVPROC glCombinerInputNV = (glCombinerInputNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerInputNV(stage, portion, variable, input, mapping, componentUsage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glCombinerParameterivNVPROC glCombinerParameterivNV = (glCombinerParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameterivNV(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameteriNV(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glCombinerParameteriNVPROC glCombinerParameteriNV = (glCombinerParameteriNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameteriNV(pname, param);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfNV(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glCombinerParameterfNVPROC glCombinerParameterfNV = (glCombinerParameterfNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameterfNV(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfvNV(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
|
@ -85,8 +28,65 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerPara
|
|||
glCombinerParameterfvNV(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfNV(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glCombinerParameterfNVPROC glCombinerParameterfNV = (glCombinerParameterfNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameterfNV(pname, param);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameteriNV(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glCombinerParameteriNVPROC glCombinerParameteriNV = (glCombinerParameteriNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameteriNV(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glCombinerParameterivNVPROC glCombinerParameterivNV = (glCombinerParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerParameterivNV(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerInputNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint input, jint mapping, jint componentUsage, jlong function_pointer) {
|
||||
glCombinerInputNVPROC glCombinerInputNV = (glCombinerInputNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerInputNV(stage, portion, variable, input, mapping, componentUsage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerOutputNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint abOutput, jint cdOutput, jint sumOutput, jint scale, jint bias, jboolean abDotProduct, jboolean cdDotProduct, jboolean muxSum, jlong function_pointer) {
|
||||
glCombinerOutputNVPROC glCombinerOutputNV = (glCombinerOutputNVPROC)((intptr_t)function_pointer);
|
||||
glCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglFinalCombinerInputNV(JNIEnv *env, jclass clazz, jint variable, jint input, jint mapping, jint componentUsage, jlong function_pointer) {
|
||||
glFinalCombinerInputNVPROC glFinalCombinerInputNV = (glFinalCombinerInputNVPROC)((intptr_t)function_pointer);
|
||||
glFinalCombinerInputNV(variable, input, mapping, componentUsage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerInputParameterfvNVPROC glGetCombinerInputParameterfvNV = (glGetCombinerInputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerInputParameterfvNV(stage, portion, variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerInputParameterivNVPROC glGetCombinerInputParameterivNV = (glGetCombinerInputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerInputParameterivNV(stage, portion, variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerOutputParameterfvNVPROC glGetCombinerOutputParameterfvNV = (glGetCombinerOutputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerOutputParameterfvNV(stage, portion, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV(JNIEnv *env, jclass clazz, jint stage, jint portion, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerOutputParameterivNVPROC glGetCombinerOutputParameterivNV = (glGetCombinerOutputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerOutputParameterivNV(stage, portion, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV(JNIEnv *env, jclass clazz, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFinalCombinerInputParameterfvNVPROC glGetFinalCombinerInputParameterfvNV = (glGetFinalCombinerInputParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetFinalCombinerInputParameterfvNV(variable, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV(JNIEnv *env, jclass clazz, jint variable, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetFinalCombinerInputParameterivNVPROC glGetFinalCombinerInputParameterivNV = (glGetFinalCombinerInputParameterivNVPROC)((intptr_t)function_pointer);
|
||||
glGetFinalCombinerInputParameterivNV(variable, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,14 +3,8 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetCombinerStageParameterfvNVPROC) (GLenum stage, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glCombinerStageParameterfvNVPROC) (GLenum stage, GLenum pname, const GLfloat * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerStageParameterfvNVPROC glGetCombinerStageParameterfvNV = (glGetCombinerStageParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerStageParameterfvNV(stage, pname, params_address);
|
||||
}
|
||||
typedef void (APIENTRY *glGetCombinerStageParameterfvNVPROC) (GLenum stage, GLenum pname, GLfloat * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerStageParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
|
@ -18,3 +12,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerSta
|
|||
glCombinerStageParameterfvNV(stage, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV(JNIEnv *env, jclass clazz, jint stage, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetCombinerStageParameterfvNVPROC glGetCombinerStageParameterfvNV = (glGetCombinerStageParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetCombinerStageParameterfvNV(stage, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,15 +3,20 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glFreeMemoryNVPROC) (GLvoid * pointer);
|
||||
typedef GLvoid * (APIENTRY *glAllocateMemoryNVPROC) (GLint size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
|
||||
typedef void (APIENTRY *glFlushVertexArrayRangeNVPROC) ();
|
||||
typedef void (APIENTRY *glVertexArrayRangeNVPROC) (GLsizei size, const GLvoid * pPointer);
|
||||
typedef void (APIENTRY *glFlushVertexArrayRangeNVPROC) ();
|
||||
typedef GLvoid * (APIENTRY *glAllocateMemoryNVPROC) (GLint size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
|
||||
typedef void (APIENTRY *glFreeMemoryNVPROC) (GLvoid * pointer);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFreeMemoryNV(JNIEnv *env, jclass clazz, jobject pointer, jint pointer_position, jlong function_pointer) {
|
||||
GLvoid *pointer_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pointer)) + pointer_position));
|
||||
glFreeMemoryNVPROC glFreeMemoryNV = (glFreeMemoryNVPROC)((intptr_t)function_pointer);
|
||||
glFreeMemoryNV(pointer_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV(JNIEnv *env, jclass clazz, jint size, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
glVertexArrayRangeNVPROC glVertexArrayRangeNV = (glVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
||||
glVertexArrayRangeNV(size, pPointer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFlushVertexArrayRangeNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glFlushVertexArrayRangeNVPROC glFlushVertexArrayRangeNV = (glFlushVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
||||
glFlushVertexArrayRangeNV();
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglAllocateMemoryNV(JNIEnv *env, jclass clazz, jint size, jfloat readFrequency, jfloat writeFrequency, jfloat priority, jint result_size, jlong function_pointer) {
|
||||
|
@ -20,14 +25,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglAllocateMe
|
|||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFlushVertexArrayRangeNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glFlushVertexArrayRangeNVPROC glFlushVertexArrayRangeNV = (glFlushVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
||||
glFlushVertexArrayRangeNV();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV(JNIEnv *env, jclass clazz, jint size, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
||||
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
||||
glVertexArrayRangeNVPROC glVertexArrayRangeNV = (glVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
||||
glVertexArrayRangeNV(size, pPointer_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFreeMemoryNV(JNIEnv *env, jclass clazz, jobject pointer, jint pointer_position, jlong function_pointer) {
|
||||
GLvoid *pointer_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pointer)) + pointer_position));
|
||||
glFreeMemoryNVPROC glFreeMemoryNV = (glFreeMemoryNVPROC)((intptr_t)function_pointer);
|
||||
glFreeMemoryNV(pointer_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,125 +3,85 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glVertexAttribs4fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs4svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs3fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs3svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs2fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs2svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs1fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs1svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttrib4ubNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4sNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib3fNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib3sNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib2fNVPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib2sNVPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib1fNVPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib1sNVPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRY *glVertexAttribPointerNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glTrackMatrixNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
|
||||
typedef void (APIENTRY *glProgramParameters4fvNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat * params);
|
||||
typedef void (APIENTRY *glProgramParameter4fNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervNVPROC) (GLuint index, GLenum parameterName, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glGetVertexAttribivNVPROC) (GLuint index, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvNVPROC) (GLuint index, GLenum parameterName, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetTrackMatrixivNVPROC) (GLenum target, GLuint address, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetProgramParameterfvNVPROC) (GLenum target, GLuint index, GLenum parameterName, GLfloat * params);
|
||||
typedef void (APIENTRY *glExecuteProgramNVPROC) (GLenum target, GLuint id, const GLfloat * params);
|
||||
typedef void (APIENTRY *glGetProgramParameterfvNVPROC) (GLenum target, GLuint index, GLenum parameterName, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetTrackMatrixivNVPROC) (GLenum target, GLuint address, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvNVPROC) (GLuint index, GLenum parameterName, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribivNVPROC) (GLuint index, GLenum parameterName, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervNVPROC) (GLuint index, GLenum parameterName, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glProgramParameter4fNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glProgramParameters4fvNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat * params);
|
||||
typedef void (APIENTRY *glTrackMatrixNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
|
||||
typedef void (APIENTRY *glVertexAttribPointerNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glVertexAttrib1sNVPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRY *glVertexAttrib1fNVPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib2sNVPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib2fNVPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib3sNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib3fNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib4sNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4ubNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttribs1svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs1fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs2svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs2fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs3svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs3fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
typedef void (APIENTRY *glVertexAttribs4svNVPROC) (GLuint index, GLsizei n, const GLshort * v);
|
||||
typedef void (APIENTRY *glVertexAttribs4fvNVPROC) (GLuint index, GLsizei n, const GLfloat * v);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs4fvNVPROC glVertexAttribs4fvNV = (glVertexAttribs4fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4fvNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV(JNIEnv *env, jclass clazz, jint target, jint id, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glExecuteProgramNVPROC glExecuteProgramNV = (glExecuteProgramNVPROC)((intptr_t)function_pointer);
|
||||
glExecuteProgramNV(target, id, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs4svNVPROC glVertexAttribs4svNV = (glVertexAttribs4svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4svNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramParameterfvNVPROC glGetProgramParameterfvNV = (glGetProgramParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramParameterfvNV(target, index, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs3fvNVPROC glVertexAttribs3fvNV = (glVertexAttribs3fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3fvNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV(JNIEnv *env, jclass clazz, jint target, jint address, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetTrackMatrixivNVPROC glGetTrackMatrixivNV = (glGetTrackMatrixivNVPROC)((intptr_t)function_pointer);
|
||||
glGetTrackMatrixivNV(target, address, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs3svNVPROC glVertexAttribs3svNV = (glVertexAttribs3svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3svNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribfvNVPROC glGetVertexAttribfvNV = (glGetVertexAttribfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfvNV(index, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs2fvNVPROC glVertexAttribs2fvNV = (glVertexAttribs2fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2fvNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivNVPROC glGetVertexAttribivNV = (glGetVertexAttribivNVPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribivNV(index, parameterName, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs2svNVPROC glVertexAttribs2svNV = (glVertexAttribs2svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2svNV(index, n, v_address);
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribPointervNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervNVPROC glGetVertexAttribPointervNV = (glGetVertexAttribPointervNVPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointervNV(index, parameterName, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs1fvNVPROC glVertexAttribs1fvNV = (glVertexAttribs1fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs1fvNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameter4fNV(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramParameter4fNVPROC glProgramParameter4fNV = (glProgramParameter4fNVPROC)((intptr_t)function_pointer);
|
||||
glProgramParameter4fNV(target, index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs1svNVPROC glVertexAttribs1svNV = (glVertexAttribs1svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs1svNV(index, n, v_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramParameters4fvNVPROC glProgramParameters4fvNV = (glProgramParameters4fvNVPROC)((intptr_t)function_pointer);
|
||||
glProgramParameters4fvNV(target, index, count, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4ubNV(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4ubNVPROC glVertexAttrib4ubNV = (glVertexAttrib4ubNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4ubNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fNVPROC glVertexAttrib4fNV = (glVertexAttrib4fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4fNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sNVPROC glVertexAttrib4sNV = (glVertexAttrib4sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4sNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib3fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fNVPROC glVertexAttrib3fNV = (glVertexAttrib3fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3fNV(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib3sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sNVPROC glVertexAttrib3sNV = (glVertexAttrib3sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3sNV(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib2fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fNVPROC glVertexAttrib2fNV = (glVertexAttrib2fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2fNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib2sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sNVPROC glVertexAttrib2sNV = (glVertexAttrib2sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2sNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib1fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fNVPROC glVertexAttrib1fNV = (glVertexAttrib1fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1fNV(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib1sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sNVPROC glVertexAttrib1sNV = (glVertexAttrib1sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1sNV(index, x);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglTrackMatrixNV(JNIEnv *env, jclass clazz, jint target, jint address, jint matrix, jint transform, jlong function_pointer) {
|
||||
glTrackMatrixNVPROC glTrackMatrixNV = (glTrackMatrixNVPROC)((intptr_t)function_pointer);
|
||||
glTrackMatrixNV(target, address, matrix, transform);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNV(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) {
|
||||
|
@ -136,56 +96,96 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPoin
|
|||
glVertexAttribPointerNV(index, size, type, stride, buffer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglTrackMatrixNV(JNIEnv *env, jclass clazz, jint target, jint address, jint matrix, jint transform, jlong function_pointer) {
|
||||
glTrackMatrixNVPROC glTrackMatrixNV = (glTrackMatrixNVPROC)((intptr_t)function_pointer);
|
||||
glTrackMatrixNV(target, address, matrix, transform);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib1sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sNVPROC glVertexAttrib1sNV = (glVertexAttrib1sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1sNV(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glProgramParameters4fvNVPROC glProgramParameters4fvNV = (glProgramParameters4fvNVPROC)((intptr_t)function_pointer);
|
||||
glProgramParameters4fvNV(target, index, count, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib1fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fNVPROC glVertexAttrib1fNV = (glVertexAttrib1fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1fNV(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameter4fNV(JNIEnv *env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glProgramParameter4fNVPROC glProgramParameter4fNV = (glProgramParameter4fNVPROC)((intptr_t)function_pointer);
|
||||
glProgramParameter4fNV(target, index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib2sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sNVPROC glVertexAttrib2sNV = (glVertexAttrib2sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2sNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribPointervNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervNVPROC glGetVertexAttribPointervNV = (glGetVertexAttribPointervNVPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointervNV(index, parameterName, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib2fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fNVPROC glVertexAttrib2fNV = (glVertexAttrib2fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2fNV(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivNVPROC glGetVertexAttribivNV = (glGetVertexAttribivNVPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribivNV(index, parameterName, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib3sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sNVPROC glVertexAttrib3sNV = (glVertexAttrib3sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3sNV(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV(JNIEnv *env, jclass clazz, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribfvNVPROC glGetVertexAttribfvNV = (glGetVertexAttribfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfvNV(index, parameterName, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib3fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fNVPROC glVertexAttrib3fNV = (glVertexAttrib3fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3fNV(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV(JNIEnv *env, jclass clazz, jint target, jint address, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetTrackMatrixivNVPROC glGetTrackMatrixivNV = (glGetTrackMatrixivNVPROC)((intptr_t)function_pointer);
|
||||
glGetTrackMatrixivNV(target, address, parameterName, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4sNV(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sNVPROC glVertexAttrib4sNV = (glVertexAttrib4sNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4sNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV(JNIEnv *env, jclass clazz, jint target, jint index, jint parameterName, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramParameterfvNVPROC glGetProgramParameterfvNV = (glGetProgramParameterfvNVPROC)((intptr_t)function_pointer);
|
||||
glGetProgramParameterfvNV(target, index, parameterName, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4fNV(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fNVPROC glVertexAttrib4fNV = (glVertexAttrib4fNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4fNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV(JNIEnv *env, jclass clazz, jint target, jint id, jobject params, jint params_position, jlong function_pointer) {
|
||||
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glExecuteProgramNVPROC glExecuteProgramNV = (glExecuteProgramNVPROC)((intptr_t)function_pointer);
|
||||
glExecuteProgramNV(target, id, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttrib4ubNV(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4ubNVPROC glVertexAttrib4ubNV = (glVertexAttrib4ubNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4ubNV(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs1svNVPROC glVertexAttribs1svNV = (glVertexAttribs1svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs1svNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs1fvNVPROC glVertexAttribs1fvNV = (glVertexAttribs1fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs1fvNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs2svNVPROC glVertexAttribs2svNV = (glVertexAttribs2svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2svNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs2fvNVPROC glVertexAttribs2fvNV = (glVertexAttribs2fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs2fvNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs3svNVPROC glVertexAttribs3svNV = (glVertexAttribs3svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3svNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs3fvNVPROC glVertexAttribs3fvNV = (glVertexAttribs3fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs3fvNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4svNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs4svNVPROC glVertexAttribs4svNV = (glVertexAttribs4svNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4svNV(index, n, v_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4fvNV(JNIEnv *env, jclass clazz, jint index, jint n, jobject v, jint v_position, jlong function_pointer) {
|
||||
const GLfloat *v_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, v)) + v_position;
|
||||
glVertexAttribs4fvNVPROC glVertexAttribs4fvNV = (glVertexAttribs4fvNVPROC)((intptr_t)function_pointer);
|
||||
glVertexAttribs4fvNV(index, n, v_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,279 +3,149 @@
|
|||
#include <jni.h>
|
||||
#include "extal.h"
|
||||
|
||||
typedef ALvoid (ALAPIENTRY *alDopplerVelocityPROC) (ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alDopplerFactorPROC) (ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alDistanceModelPROC) (ALenum value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceUnqueueBuffersPROC) (ALuint source, ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceQueueBuffersPROC) (ALuint source, ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alGetBufferfPROC) (ALuint buffer, ALenum pname, ALfloat* value);
|
||||
typedef ALvoid (ALAPIENTRY *alGetBufferiPROC) (ALuint buffer, ALenum pname, ALint* value);
|
||||
typedef ALvoid (ALAPIENTRY *alBufferDataPROC) (ALuint buffer, ALenum format, ALvoid * data, ALsizei size, ALsizei freq);
|
||||
typedef ALboolean (ALAPIENTRY *alIsBufferPROC) (ALuint buffer);
|
||||
typedef ALvoid (ALAPIENTRY *alDeleteBuffersPROC) (ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alGenBuffersPROC) (ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceRewindPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceStopPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePausePROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePlayPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceRewindvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceStopvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePausevPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePlayvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourcefvPROC) (ALuint source, ALenum pname, ALfloat * floatdata);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourcefPROC) (ALuint source, ALenum pname, ALfloat* value);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourceiPROC) (ALuint source, ALenum pname, ALint* value);
|
||||
typedef ALvoid (ALAPIENTRY *alSource3fPROC) (ALuint source, ALenum pname, ALfloat v1, ALfloat v2, ALfloat v3);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcefvPROC) (ALuint source, ALenum pname, ALfloat * value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcefPROC) (ALuint source, ALenum pname, ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceiPROC) (ALuint source, ALenum pname, ALint value);
|
||||
typedef ALboolean (ALAPIENTRY *alIsSourcePROC) (ALuint id);
|
||||
typedef ALvoid (ALAPIENTRY *alDeleteSourcesPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alGenSourcesPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alGetListenerfvPROC) (ALenum pname, ALfloat * floatdata);
|
||||
typedef ALfloat (ALAPIENTRY *alGetListenerfPROC) (ALenum pname);
|
||||
typedef ALint (ALAPIENTRY *alGetListeneriPROC) (ALenum pname);
|
||||
typedef ALvoid (ALAPIENTRY *alListener3fPROC) (ALenum pname, ALfloat v1, ALfloat v2, ALfloat v3);
|
||||
typedef ALvoid (ALAPIENTRY *alListenerfvPROC) (ALenum pname, ALfloat * value);
|
||||
typedef ALvoid (ALAPIENTRY *alListenerfPROC) (ALenum pname, ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alListeneriPROC) (ALenum pname, ALint value);
|
||||
typedef ALenum (ALAPIENTRY *alGetEnumValuePROC) (ALubyte * ename);
|
||||
typedef ALboolean (ALAPIENTRY *alIsExtensionPresentPROC) (ALubyte * fname);
|
||||
typedef ALenum (ALAPIENTRY *alGetErrorPROC) ();
|
||||
typedef ALubyte * (ALAPIENTRY *alGetStringPROC) (ALenum pname);
|
||||
typedef ALvoid (ALAPIENTRY *alGetFloatvPROC) (ALenum pname, ALfloat * data);
|
||||
typedef ALvoid (ALAPIENTRY *alGetIntegervPROC) (ALenum pname, ALint * data);
|
||||
typedef ALfloat (ALAPIENTRY *alGetFloatPROC) (ALenum pname);
|
||||
typedef ALint (ALAPIENTRY *alGetIntegerPROC) (ALenum pname);
|
||||
typedef ALboolean (ALAPIENTRY *alGetBooleanPROC) (ALenum pname);
|
||||
typedef ALboolean (ALAPIENTRY *alIsEnabledPROC) (ALenum capability);
|
||||
typedef ALvoid (ALAPIENTRY *alDisablePROC) (ALenum capability);
|
||||
typedef ALvoid (ALAPIENTRY *alEnablePROC) (ALint capability);
|
||||
typedef ALvoid (ALAPIENTRY *alDisablePROC) (ALenum capability);
|
||||
typedef ALboolean (ALAPIENTRY *alIsEnabledPROC) (ALenum capability);
|
||||
typedef ALboolean (ALAPIENTRY *alGetBooleanPROC) (ALenum pname);
|
||||
typedef ALint (ALAPIENTRY *alGetIntegerPROC) (ALenum pname);
|
||||
typedef ALfloat (ALAPIENTRY *alGetFloatPROC) (ALenum pname);
|
||||
typedef ALvoid (ALAPIENTRY *alGetIntegervPROC) (ALenum pname, ALint * data);
|
||||
typedef ALvoid (ALAPIENTRY *alGetFloatvPROC) (ALenum pname, ALfloat * data);
|
||||
typedef ALubyte * (ALAPIENTRY *alGetStringPROC) (ALenum pname);
|
||||
typedef ALenum (ALAPIENTRY *alGetErrorPROC) ();
|
||||
typedef ALboolean (ALAPIENTRY *alIsExtensionPresentPROC) (ALubyte * fname);
|
||||
typedef ALenum (ALAPIENTRY *alGetEnumValuePROC) (ALubyte * ename);
|
||||
typedef ALvoid (ALAPIENTRY *alListeneriPROC) (ALenum pname, ALint value);
|
||||
typedef ALvoid (ALAPIENTRY *alListenerfPROC) (ALenum pname, ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alListenerfvPROC) (ALenum pname, ALfloat * value);
|
||||
typedef ALvoid (ALAPIENTRY *alListener3fPROC) (ALenum pname, ALfloat v1, ALfloat v2, ALfloat v3);
|
||||
typedef ALint (ALAPIENTRY *alGetListeneriPROC) (ALenum pname);
|
||||
typedef ALfloat (ALAPIENTRY *alGetListenerfPROC) (ALenum pname);
|
||||
typedef ALvoid (ALAPIENTRY *alGetListenerfvPROC) (ALenum pname, ALfloat * floatdata);
|
||||
typedef ALvoid (ALAPIENTRY *alGenSourcesPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alDeleteSourcesPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALboolean (ALAPIENTRY *alIsSourcePROC) (ALuint id);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceiPROC) (ALuint source, ALenum pname, ALint value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcefPROC) (ALuint source, ALenum pname, ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcefvPROC) (ALuint source, ALenum pname, ALfloat * value);
|
||||
typedef ALvoid (ALAPIENTRY *alSource3fPROC) (ALuint source, ALenum pname, ALfloat v1, ALfloat v2, ALfloat v3);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourceiPROC) (ALuint source, ALenum pname, ALint* value);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourcefPROC) (ALuint source, ALenum pname, ALfloat* value);
|
||||
typedef ALvoid (ALAPIENTRY *alGetSourcefvPROC) (ALuint source, ALenum pname, ALfloat * floatdata);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePlayvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePausevPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceStopvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceRewindvPROC) (ALsizei n, ALuint * sources);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePlayPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourcePausePROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceStopPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceRewindPROC) (ALuint source);
|
||||
typedef ALvoid (ALAPIENTRY *alGenBuffersPROC) (ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alDeleteBuffersPROC) (ALsizei n, ALuint * buffers);
|
||||
typedef ALboolean (ALAPIENTRY *alIsBufferPROC) (ALuint buffer);
|
||||
typedef ALvoid (ALAPIENTRY *alBufferDataPROC) (ALuint buffer, ALenum format, ALvoid * data, ALsizei size, ALsizei freq);
|
||||
typedef ALvoid (ALAPIENTRY *alGetBufferiPROC) (ALuint buffer, ALenum pname, ALint* value);
|
||||
typedef ALvoid (ALAPIENTRY *alGetBufferfPROC) (ALuint buffer, ALenum pname, ALfloat* value);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceQueueBuffersPROC) (ALuint source, ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alSourceUnqueueBuffersPROC) (ALuint source, ALsizei n, ALuint * buffers);
|
||||
typedef ALvoid (ALAPIENTRY *alDistanceModelPROC) (ALenum value);
|
||||
typedef ALvoid (ALAPIENTRY *alDopplerFactorPROC) (ALfloat value);
|
||||
typedef ALvoid (ALAPIENTRY *alDopplerVelocityPROC) (ALfloat value);
|
||||
|
||||
static alDopplerVelocityPROC alDopplerVelocity;
|
||||
static alDopplerFactorPROC alDopplerFactor;
|
||||
static alDistanceModelPROC alDistanceModel;
|
||||
static alSourceUnqueueBuffersPROC alSourceUnqueueBuffers;
|
||||
static alSourceQueueBuffersPROC alSourceQueueBuffers;
|
||||
static alGetBufferfPROC alGetBufferf;
|
||||
static alGetBufferiPROC alGetBufferi;
|
||||
static alBufferDataPROC alBufferData;
|
||||
static alIsBufferPROC alIsBuffer;
|
||||
static alDeleteBuffersPROC alDeleteBuffers;
|
||||
static alGenBuffersPROC alGenBuffers;
|
||||
static alSourceRewindPROC alSourceRewind;
|
||||
static alSourceStopPROC alSourceStop;
|
||||
static alSourcePausePROC alSourcePause;
|
||||
static alSourcePlayPROC alSourcePlay;
|
||||
static alSourceRewindvPROC alSourceRewindv;
|
||||
static alSourceStopvPROC alSourceStopv;
|
||||
static alSourcePausevPROC alSourcePausev;
|
||||
static alSourcePlayvPROC alSourcePlayv;
|
||||
static alGetSourcefvPROC alGetSourcefv;
|
||||
static alGetSourcefPROC alGetSourcef;
|
||||
static alGetSourceiPROC alGetSourcei;
|
||||
static alSource3fPROC alSource3f;
|
||||
static alSourcefvPROC alSourcefv;
|
||||
static alSourcefPROC alSourcef;
|
||||
static alSourceiPROC alSourcei;
|
||||
static alIsSourcePROC alIsSource;
|
||||
static alDeleteSourcesPROC alDeleteSources;
|
||||
static alGenSourcesPROC alGenSources;
|
||||
static alGetListenerfvPROC alGetListenerfv;
|
||||
static alGetListenerfPROC alGetListenerf;
|
||||
static alGetListeneriPROC alGetListeneri;
|
||||
static alListener3fPROC alListener3f;
|
||||
static alListenerfvPROC alListenerfv;
|
||||
static alListenerfPROC alListenerf;
|
||||
static alListeneriPROC alListeneri;
|
||||
static alGetEnumValuePROC alGetEnumValue;
|
||||
static alIsExtensionPresentPROC alIsExtensionPresent;
|
||||
static alGetErrorPROC alGetError;
|
||||
static alGetStringPROC alGetString;
|
||||
static alGetFloatvPROC alGetFloatv;
|
||||
static alGetIntegervPROC alGetIntegerv;
|
||||
static alGetFloatPROC alGetFloat;
|
||||
static alGetIntegerPROC alGetInteger;
|
||||
static alGetBooleanPROC alGetBoolean;
|
||||
static alIsEnabledPROC alIsEnabled;
|
||||
static alDisablePROC alDisable;
|
||||
static alEnablePROC alEnable;
|
||||
static alDisablePROC alDisable;
|
||||
static alIsEnabledPROC alIsEnabled;
|
||||
static alGetBooleanPROC alGetBoolean;
|
||||
static alGetIntegerPROC alGetInteger;
|
||||
static alGetFloatPROC alGetFloat;
|
||||
static alGetIntegervPROC alGetIntegerv;
|
||||
static alGetFloatvPROC alGetFloatv;
|
||||
static alGetStringPROC alGetString;
|
||||
static alGetErrorPROC alGetError;
|
||||
static alIsExtensionPresentPROC alIsExtensionPresent;
|
||||
static alGetEnumValuePROC alGetEnumValue;
|
||||
static alListeneriPROC alListeneri;
|
||||
static alListenerfPROC alListenerf;
|
||||
static alListenerfvPROC alListenerfv;
|
||||
static alListener3fPROC alListener3f;
|
||||
static alGetListeneriPROC alGetListeneri;
|
||||
static alGetListenerfPROC alGetListenerf;
|
||||
static alGetListenerfvPROC alGetListenerfv;
|
||||
static alGenSourcesPROC alGenSources;
|
||||
static alDeleteSourcesPROC alDeleteSources;
|
||||
static alIsSourcePROC alIsSource;
|
||||
static alSourceiPROC alSourcei;
|
||||
static alSourcefPROC alSourcef;
|
||||
static alSourcefvPROC alSourcefv;
|
||||
static alSource3fPROC alSource3f;
|
||||
static alGetSourceiPROC alGetSourcei;
|
||||
static alGetSourcefPROC alGetSourcef;
|
||||
static alGetSourcefvPROC alGetSourcefv;
|
||||
static alSourcePlayvPROC alSourcePlayv;
|
||||
static alSourcePausevPROC alSourcePausev;
|
||||
static alSourceStopvPROC alSourceStopv;
|
||||
static alSourceRewindvPROC alSourceRewindv;
|
||||
static alSourcePlayPROC alSourcePlay;
|
||||
static alSourcePausePROC alSourcePause;
|
||||
static alSourceStopPROC alSourceStop;
|
||||
static alSourceRewindPROC alSourceRewind;
|
||||
static alGenBuffersPROC alGenBuffers;
|
||||
static alDeleteBuffersPROC alDeleteBuffers;
|
||||
static alIsBufferPROC alIsBuffer;
|
||||
static alBufferDataPROC alBufferData;
|
||||
static alGetBufferiPROC alGetBufferi;
|
||||
static alGetBufferfPROC alGetBufferf;
|
||||
static alSourceQueueBuffersPROC alSourceQueueBuffers;
|
||||
static alSourceUnqueueBuffersPROC alSourceUnqueueBuffers;
|
||||
static alDistanceModelPROC alDistanceModel;
|
||||
static alDopplerFactorPROC alDopplerFactor;
|
||||
static alDopplerVelocityPROC alDopplerVelocity;
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDopplerVelocity(JNIEnv *env, jclass clazz, jfloat value) {
|
||||
alDopplerVelocity(value);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalEnable(JNIEnv *env, jclass clazz, jint capability) {
|
||||
alEnable(capability);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDopplerFactor(JNIEnv *env, jclass clazz, jfloat value) {
|
||||
alDopplerFactor(value);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDisable(JNIEnv *env, jclass clazz, jint capability) {
|
||||
alDisable(capability);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDistanceModel(JNIEnv *env, jclass clazz, jint value) {
|
||||
alDistanceModel(value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceUnqueueBuffers(JNIEnv *env, jclass clazz, jint source, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alSourceUnqueueBuffers(source, n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceQueueBuffers(JNIEnv *env, jclass clazz, jint source, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alSourceQueueBuffers(source, n, buffers_address);
|
||||
}
|
||||
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetBufferf(JNIEnv *env, jclass clazz, jint buffer, jint pname) {
|
||||
ALfloat __result;
|
||||
alGetBufferf(buffer, pname, &__result);
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsEnabled(JNIEnv *env, jclass clazz, jint capability) {
|
||||
ALboolean __result = alIsEnabled(capability);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetBufferi(JNIEnv *env, jclass clazz, jint buffer, jint pname) {
|
||||
ALint __result;
|
||||
alGetBufferi(buffer, pname, &__result);
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalGetBoolean(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALboolean __result = alGetBoolean(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalBufferData(JNIEnv *env, jclass clazz, jint buffer, jint format, jobject data, jint data_position, jint size, jint freq) {
|
||||
ALvoid *data_address = ((ALvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
alBufferData(buffer, format, data_address, size, freq);
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsBuffer(JNIEnv *env, jclass clazz, jint buffer) {
|
||||
ALboolean __result = alIsBuffer(buffer);
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetInteger(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALint __result = alGetInteger(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDeleteBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alDeleteBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGenBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alGenBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceRewind(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourceRewind(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceStop(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourceStop(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePause(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourcePause(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePlay(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourcePlay(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceRewindv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourceRewindv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceStopv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourceStopv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePausev(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourcePausev(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePlayv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourcePlayv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcefv(JNIEnv *env, jclass clazz, jint source, jint pname, jobject floatdata, jint floatdata_position) {
|
||||
ALfloat *floatdata_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, floatdata)) + floatdata_position;
|
||||
alGetSourcefv(source, pname, floatdata_address);
|
||||
}
|
||||
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcef(JNIEnv *env, jclass clazz, jint source, jint pname) {
|
||||
ALfloat __result;
|
||||
alGetSourcef(source, pname, &__result);
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetFloat(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALfloat __result = alGetFloat(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcei(JNIEnv *env, jclass clazz, jint source, jint pname) {
|
||||
ALint __result;
|
||||
alGetSourcei(source, pname, &__result);
|
||||
return __result;
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetIntegerv(JNIEnv *env, jclass clazz, jint pname, jobject data, jint data_position) {
|
||||
ALint *data_address = ((ALint *)(*env)->GetDirectBufferAddress(env, data)) + data_position;
|
||||
alGetIntegerv(pname, data_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSource3f(JNIEnv *env, jclass clazz, jint source, jint pname, jfloat v1, jfloat v2, jfloat v3) {
|
||||
alSource3f(source, pname, v1, v2, v3);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetFloatv(JNIEnv *env, jclass clazz, jint pname, jobject data, jint data_position) {
|
||||
ALfloat *data_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, data)) + data_position;
|
||||
alGetFloatv(pname, data_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcefv(JNIEnv *env, jclass clazz, jint source, jint pname, jobject value, jint value_position) {
|
||||
ALfloat *value_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, value)) + value_position;
|
||||
alSourcefv(source, pname, value_address);
|
||||
static jobject JNICALL Java_org_lwjgl_openal_AL10_alGetString(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALubyte * __result = alGetString(pname);
|
||||
return NewStringNative(env, __result);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcef(JNIEnv *env, jclass clazz, jint source, jint pname, jfloat value) {
|
||||
alSourcef(source, pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcei(JNIEnv *env, jclass clazz, jint source, jint pname, jint value) {
|
||||
alSourcei(source, pname, value);
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsSource(JNIEnv *env, jclass clazz, jint id) {
|
||||
ALboolean __result = alIsSource(id);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDeleteSources(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alDeleteSources(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGenSources(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alGenSources(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetListenerfv(JNIEnv *env, jclass clazz, jint pname, jobject floatdata, jint floatdata_position) {
|
||||
ALfloat *floatdata_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, floatdata)) + floatdata_position;
|
||||
alGetListenerfv(pname, floatdata_address);
|
||||
}
|
||||
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetListenerf(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALfloat __result = alGetListenerf(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetListeneri(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALint __result = alGetListeneri(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListener3f(JNIEnv *env, jclass clazz, jint pname, jfloat v1, jfloat v2, jfloat v3) {
|
||||
alListener3f(pname, v1, v2, v3);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListenerfv(JNIEnv *env, jclass clazz, jint pname, jobject value, jint value_position) {
|
||||
ALfloat *value_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, value)) + value_position;
|
||||
alListenerfv(pname, value_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListenerf(JNIEnv *env, jclass clazz, jint pname, jfloat value) {
|
||||
alListenerf(pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListeneri(JNIEnv *env, jclass clazz, jint pname, jint value) {
|
||||
alListeneri(pname, value);
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetEnumValue(JNIEnv *env, jclass clazz, jobject ename) {
|
||||
ALubyte *ename_address = ((ALubyte *)GetStringNativeChars(env, ename));
|
||||
ALenum __result = alGetEnumValue(ename_address);
|
||||
free(ename_address);
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_alGetError(JNIEnv *env, jclass clazz) {
|
||||
ALenum __result = alGetError();
|
||||
return __result;
|
||||
}
|
||||
|
||||
|
@ -286,104 +156,234 @@ static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsExtensionPresent(JNIEnv
|
|||
return __result;
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_alGetError(JNIEnv *env, jclass clazz) {
|
||||
ALenum __result = alGetError();
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetEnumValue(JNIEnv *env, jclass clazz, jobject ename) {
|
||||
ALubyte *ename_address = ((ALubyte *)GetStringNativeChars(env, ename));
|
||||
ALenum __result = alGetEnumValue(ename_address);
|
||||
free(ename_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jobject JNICALL Java_org_lwjgl_openal_AL10_alGetString(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALubyte * __result = alGetString(pname);
|
||||
return NewStringNative(env, __result);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListeneri(JNIEnv *env, jclass clazz, jint pname, jint value) {
|
||||
alListeneri(pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetFloatv(JNIEnv *env, jclass clazz, jint pname, jobject data, jint data_position) {
|
||||
ALfloat *data_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, data)) + data_position;
|
||||
alGetFloatv(pname, data_address);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListenerf(JNIEnv *env, jclass clazz, jint pname, jfloat value) {
|
||||
alListenerf(pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetIntegerv(JNIEnv *env, jclass clazz, jint pname, jobject data, jint data_position) {
|
||||
ALint *data_address = ((ALint *)(*env)->GetDirectBufferAddress(env, data)) + data_position;
|
||||
alGetIntegerv(pname, data_address);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListenerfv(JNIEnv *env, jclass clazz, jint pname, jobject value, jint value_position) {
|
||||
ALfloat *value_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, value)) + value_position;
|
||||
alListenerfv(pname, value_address);
|
||||
}
|
||||
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetFloat(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALfloat __result = alGetFloat(pname);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalListener3f(JNIEnv *env, jclass clazz, jint pname, jfloat v1, jfloat v2, jfloat v3) {
|
||||
alListener3f(pname, v1, v2, v3);
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetListeneri(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALint __result = alGetListeneri(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetInteger(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALint __result = alGetInteger(pname);
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetListenerf(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALfloat __result = alGetListenerf(pname);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalGetBoolean(JNIEnv *env, jclass clazz, jint pname) {
|
||||
ALboolean __result = alGetBoolean(pname);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetListenerfv(JNIEnv *env, jclass clazz, jint pname, jobject floatdata, jint floatdata_position) {
|
||||
ALfloat *floatdata_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, floatdata)) + floatdata_position;
|
||||
alGetListenerfv(pname, floatdata_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGenSources(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alGenSources(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDeleteSources(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alDeleteSources(n, sources_address);
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsSource(JNIEnv *env, jclass clazz, jint id) {
|
||||
ALboolean __result = alIsSource(id);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsEnabled(JNIEnv *env, jclass clazz, jint capability) {
|
||||
ALboolean __result = alIsEnabled(capability);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcei(JNIEnv *env, jclass clazz, jint source, jint pname, jint value) {
|
||||
alSourcei(source, pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcef(JNIEnv *env, jclass clazz, jint source, jint pname, jfloat value) {
|
||||
alSourcef(source, pname, value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcefv(JNIEnv *env, jclass clazz, jint source, jint pname, jobject value, jint value_position) {
|
||||
ALfloat *value_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, value)) + value_position;
|
||||
alSourcefv(source, pname, value_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSource3f(JNIEnv *env, jclass clazz, jint source, jint pname, jfloat v1, jfloat v2, jfloat v3) {
|
||||
alSource3f(source, pname, v1, v2, v3);
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcei(JNIEnv *env, jclass clazz, jint source, jint pname) {
|
||||
ALint __result;
|
||||
alGetSourcei(source, pname, &__result);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDisable(JNIEnv *env, jclass clazz, jint capability) {
|
||||
alDisable(capability);
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcef(JNIEnv *env, jclass clazz, jint source, jint pname) {
|
||||
ALfloat __result;
|
||||
alGetSourcef(source, pname, &__result);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalEnable(JNIEnv *env, jclass clazz, jint capability) {
|
||||
alEnable(capability);
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGetSourcefv(JNIEnv *env, jclass clazz, jint source, jint pname, jobject floatdata, jint floatdata_position) {
|
||||
ALfloat *floatdata_address = ((ALfloat *)(*env)->GetDirectBufferAddress(env, floatdata)) + floatdata_position;
|
||||
alGetSourcefv(source, pname, floatdata_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePlayv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourcePlayv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePausev(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourcePausev(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceStopv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourceStopv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceRewindv(JNIEnv *env, jclass clazz, jint n, jobject sources, jint sources_position) {
|
||||
ALuint *sources_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, sources)) + sources_position;
|
||||
alSourceRewindv(n, sources_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePlay(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourcePlay(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourcePause(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourcePause(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceStop(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourceStop(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceRewind(JNIEnv *env, jclass clazz, jint source) {
|
||||
alSourceRewind(source);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalGenBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alGenBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDeleteBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alDeleteBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
static jboolean JNICALL Java_org_lwjgl_openal_AL10_nalIsBuffer(JNIEnv *env, jclass clazz, jint buffer) {
|
||||
ALboolean __result = alIsBuffer(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalBufferData(JNIEnv *env, jclass clazz, jint buffer, jint format, jobject data, jint data_position, jint size, jint freq) {
|
||||
ALvoid *data_address = ((ALvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
alBufferData(buffer, format, data_address, size, freq);
|
||||
}
|
||||
|
||||
static jint JNICALL Java_org_lwjgl_openal_AL10_nalGetBufferi(JNIEnv *env, jclass clazz, jint buffer, jint pname) {
|
||||
ALint __result;
|
||||
alGetBufferi(buffer, pname, &__result);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static jfloat JNICALL Java_org_lwjgl_openal_AL10_nalGetBufferf(JNIEnv *env, jclass clazz, jint buffer, jint pname) {
|
||||
ALfloat __result;
|
||||
alGetBufferf(buffer, pname, &__result);
|
||||
return __result;
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceQueueBuffers(JNIEnv *env, jclass clazz, jint source, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alSourceQueueBuffers(source, n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalSourceUnqueueBuffers(JNIEnv *env, jclass clazz, jint source, jint n, jobject buffers, jint buffers_position) {
|
||||
ALuint *buffers_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
alSourceUnqueueBuffers(source, n, buffers_address);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDistanceModel(JNIEnv *env, jclass clazz, jint value) {
|
||||
alDistanceModel(value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDopplerFactor(JNIEnv *env, jclass clazz, jfloat value) {
|
||||
alDopplerFactor(value);
|
||||
}
|
||||
|
||||
static void JNICALL Java_org_lwjgl_openal_AL10_nalDopplerVelocity(JNIEnv *env, jclass clazz, jfloat value) {
|
||||
alDopplerVelocity(value);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL10_initNativeStubs(JNIEnv *env, jclass clazz) {
|
||||
JavaMethodAndExtFunction functions[] = {
|
||||
{"nalDopplerVelocity", "(F)V", (void *)&Java_org_lwjgl_openal_AL10_nalDopplerVelocity, "alDopplerVelocity", (void *)&alDopplerVelocity},
|
||||
{"nalDopplerFactor", "(F)V", (void *)&Java_org_lwjgl_openal_AL10_nalDopplerFactor, "alDopplerFactor", (void *)&alDopplerFactor},
|
||||
{"nalDistanceModel", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDistanceModel, "alDistanceModel", (void *)&alDistanceModel},
|
||||
{"nalSourceUnqueueBuffers", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceUnqueueBuffers, "alSourceUnqueueBuffers", (void *)&alSourceUnqueueBuffers},
|
||||
{"nalSourceQueueBuffers", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceQueueBuffers, "alSourceQueueBuffers", (void *)&alSourceQueueBuffers},
|
||||
{"nalGetBufferf", "(II)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetBufferf, "alGetBufferf", (void *)&alGetBufferf},
|
||||
{"nalGetBufferi", "(II)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetBufferi, "alGetBufferi", (void *)&alGetBufferi},
|
||||
{"nalBufferData", "(IILjava/nio/Buffer;III)V", (void *)&Java_org_lwjgl_openal_AL10_nalBufferData, "alBufferData", (void *)&alBufferData},
|
||||
{"nalIsBuffer", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsBuffer, "alIsBuffer", (void *)&alIsBuffer},
|
||||
{"nalDeleteBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDeleteBuffers, "alDeleteBuffers", (void *)&alDeleteBuffers},
|
||||
{"nalGenBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGenBuffers, "alGenBuffers", (void *)&alGenBuffers},
|
||||
{"nalSourceRewind", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceRewind, "alSourceRewind", (void *)&alSourceRewind},
|
||||
{"nalSourceStop", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceStop, "alSourceStop", (void *)&alSourceStop},
|
||||
{"nalSourcePause", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePause, "alSourcePause", (void *)&alSourcePause},
|
||||
{"nalSourcePlay", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePlay, "alSourcePlay", (void *)&alSourcePlay},
|
||||
{"nalSourceRewindv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceRewindv, "alSourceRewindv", (void *)&alSourceRewindv},
|
||||
{"nalSourceStopv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceStopv, "alSourceStopv", (void *)&alSourceStopv},
|
||||
{"nalSourcePausev", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePausev, "alSourcePausev", (void *)&alSourcePausev},
|
||||
{"nalSourcePlayv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePlayv, "alSourcePlayv", (void *)&alSourcePlayv},
|
||||
{"nalGetSourcefv", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcefv, "alGetSourcefv", (void *)&alGetSourcefv},
|
||||
{"nalGetSourcef", "(II)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcef, "alGetSourcef", (void *)&alGetSourcef},
|
||||
{"nalGetSourcei", "(II)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcei, "alGetSourcei", (void *)&alGetSourcei},
|
||||
{"nalSource3f", "(IIFFF)V", (void *)&Java_org_lwjgl_openal_AL10_nalSource3f, "alSource3f", (void *)&alSource3f},
|
||||
{"nalSourcefv", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcefv, "alSourcefv", (void *)&alSourcefv},
|
||||
{"nalSourcef", "(IIF)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcef, "alSourcef", (void *)&alSourcef},
|
||||
{"nalSourcei", "(III)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcei, "alSourcei", (void *)&alSourcei},
|
||||
{"nalIsSource", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsSource, "alIsSource", (void *)&alIsSource},
|
||||
{"nalDeleteSources", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDeleteSources, "alDeleteSources", (void *)&alDeleteSources},
|
||||
{"nalGenSources", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGenSources, "alGenSources", (void *)&alGenSources},
|
||||
{"nalGetListenerfv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetListenerfv, "alGetListenerfv", (void *)&alGetListenerfv},
|
||||
{"nalGetListenerf", "(I)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetListenerf, "alGetListenerf", (void *)&alGetListenerf},
|
||||
{"nalGetListeneri", "(I)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetListeneri, "alGetListeneri", (void *)&alGetListeneri},
|
||||
{"nalListener3f", "(IFFF)V", (void *)&Java_org_lwjgl_openal_AL10_nalListener3f, "alListener3f", (void *)&alListener3f},
|
||||
{"nalListenerfv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalListenerfv, "alListenerfv", (void *)&alListenerfv},
|
||||
{"nalListenerf", "(IF)V", (void *)&Java_org_lwjgl_openal_AL10_nalListenerf, "alListenerf", (void *)&alListenerf},
|
||||
{"nalListeneri", "(II)V", (void *)&Java_org_lwjgl_openal_AL10_nalListeneri, "alListeneri", (void *)&alListeneri},
|
||||
{"nalGetEnumValue", "(Ljava/lang/String;)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetEnumValue, "alGetEnumValue", (void *)&alGetEnumValue},
|
||||
{"nalIsExtensionPresent", "(Ljava/lang/String;)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsExtensionPresent, "alIsExtensionPresent", (void *)&alIsExtensionPresent},
|
||||
{"alGetError", "()I", (void *)&Java_org_lwjgl_openal_AL10_alGetError, "alGetError", (void *)&alGetError},
|
||||
{"alGetString", "(I)Ljava/lang/String;", (void *)&Java_org_lwjgl_openal_AL10_alGetString, "alGetString", (void *)&alGetString},
|
||||
{"nalGetFloatv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetFloatv, "alGetFloatv", (void *)&alGetFloatv},
|
||||
{"nalGetIntegerv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetIntegerv, "alGetIntegerv", (void *)&alGetIntegerv},
|
||||
{"nalGetFloat", "(I)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetFloat, "alGetFloat", (void *)&alGetFloat},
|
||||
{"nalGetInteger", "(I)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetInteger, "alGetInteger", (void *)&alGetInteger},
|
||||
{"nalGetBoolean", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalGetBoolean, "alGetBoolean", (void *)&alGetBoolean},
|
||||
{"nalIsEnabled", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsEnabled, "alIsEnabled", (void *)&alIsEnabled},
|
||||
{"nalEnable", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalEnable, "alEnable", (void *)&alEnable},
|
||||
{"nalDisable", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDisable, "alDisable", (void *)&alDisable},
|
||||
{"nalEnable", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalEnable, "alEnable", (void *)&alEnable}
|
||||
{"nalIsEnabled", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsEnabled, "alIsEnabled", (void *)&alIsEnabled},
|
||||
{"nalGetBoolean", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalGetBoolean, "alGetBoolean", (void *)&alGetBoolean},
|
||||
{"nalGetInteger", "(I)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetInteger, "alGetInteger", (void *)&alGetInteger},
|
||||
{"nalGetFloat", "(I)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetFloat, "alGetFloat", (void *)&alGetFloat},
|
||||
{"nalGetIntegerv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetIntegerv, "alGetIntegerv", (void *)&alGetIntegerv},
|
||||
{"nalGetFloatv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetFloatv, "alGetFloatv", (void *)&alGetFloatv},
|
||||
{"alGetString", "(I)Ljava/lang/String;", (void *)&Java_org_lwjgl_openal_AL10_alGetString, "alGetString", (void *)&alGetString},
|
||||
{"alGetError", "()I", (void *)&Java_org_lwjgl_openal_AL10_alGetError, "alGetError", (void *)&alGetError},
|
||||
{"nalIsExtensionPresent", "(Ljava/lang/String;)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsExtensionPresent, "alIsExtensionPresent", (void *)&alIsExtensionPresent},
|
||||
{"nalGetEnumValue", "(Ljava/lang/String;)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetEnumValue, "alGetEnumValue", (void *)&alGetEnumValue},
|
||||
{"nalListeneri", "(II)V", (void *)&Java_org_lwjgl_openal_AL10_nalListeneri, "alListeneri", (void *)&alListeneri},
|
||||
{"nalListenerf", "(IF)V", (void *)&Java_org_lwjgl_openal_AL10_nalListenerf, "alListenerf", (void *)&alListenerf},
|
||||
{"nalListenerfv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalListenerfv, "alListenerfv", (void *)&alListenerfv},
|
||||
{"nalListener3f", "(IFFF)V", (void *)&Java_org_lwjgl_openal_AL10_nalListener3f, "alListener3f", (void *)&alListener3f},
|
||||
{"nalGetListeneri", "(I)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetListeneri, "alGetListeneri", (void *)&alGetListeneri},
|
||||
{"nalGetListenerf", "(I)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetListenerf, "alGetListenerf", (void *)&alGetListenerf},
|
||||
{"nalGetListenerfv", "(ILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetListenerfv, "alGetListenerfv", (void *)&alGetListenerfv},
|
||||
{"nalGenSources", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGenSources, "alGenSources", (void *)&alGenSources},
|
||||
{"nalDeleteSources", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDeleteSources, "alDeleteSources", (void *)&alDeleteSources},
|
||||
{"nalIsSource", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsSource, "alIsSource", (void *)&alIsSource},
|
||||
{"nalSourcei", "(III)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcei, "alSourcei", (void *)&alSourcei},
|
||||
{"nalSourcef", "(IIF)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcef, "alSourcef", (void *)&alSourcef},
|
||||
{"nalSourcefv", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcefv, "alSourcefv", (void *)&alSourcefv},
|
||||
{"nalSource3f", "(IIFFF)V", (void *)&Java_org_lwjgl_openal_AL10_nalSource3f, "alSource3f", (void *)&alSource3f},
|
||||
{"nalGetSourcei", "(II)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcei, "alGetSourcei", (void *)&alGetSourcei},
|
||||
{"nalGetSourcef", "(II)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcef, "alGetSourcef", (void *)&alGetSourcef},
|
||||
{"nalGetSourcefv", "(IILjava/nio/FloatBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGetSourcefv, "alGetSourcefv", (void *)&alGetSourcefv},
|
||||
{"nalSourcePlayv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePlayv, "alSourcePlayv", (void *)&alSourcePlayv},
|
||||
{"nalSourcePausev", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePausev, "alSourcePausev", (void *)&alSourcePausev},
|
||||
{"nalSourceStopv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceStopv, "alSourceStopv", (void *)&alSourceStopv},
|
||||
{"nalSourceRewindv", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceRewindv, "alSourceRewindv", (void *)&alSourceRewindv},
|
||||
{"nalSourcePlay", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePlay, "alSourcePlay", (void *)&alSourcePlay},
|
||||
{"nalSourcePause", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourcePause, "alSourcePause", (void *)&alSourcePause},
|
||||
{"nalSourceStop", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceStop, "alSourceStop", (void *)&alSourceStop},
|
||||
{"nalSourceRewind", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceRewind, "alSourceRewind", (void *)&alSourceRewind},
|
||||
{"nalGenBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalGenBuffers, "alGenBuffers", (void *)&alGenBuffers},
|
||||
{"nalDeleteBuffers", "(ILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDeleteBuffers, "alDeleteBuffers", (void *)&alDeleteBuffers},
|
||||
{"nalIsBuffer", "(I)Z", (void *)&Java_org_lwjgl_openal_AL10_nalIsBuffer, "alIsBuffer", (void *)&alIsBuffer},
|
||||
{"nalBufferData", "(IILjava/nio/Buffer;III)V", (void *)&Java_org_lwjgl_openal_AL10_nalBufferData, "alBufferData", (void *)&alBufferData},
|
||||
{"nalGetBufferi", "(II)I", (void *)&Java_org_lwjgl_openal_AL10_nalGetBufferi, "alGetBufferi", (void *)&alGetBufferi},
|
||||
{"nalGetBufferf", "(II)F", (void *)&Java_org_lwjgl_openal_AL10_nalGetBufferf, "alGetBufferf", (void *)&alGetBufferf},
|
||||
{"nalSourceQueueBuffers", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceQueueBuffers, "alSourceQueueBuffers", (void *)&alSourceQueueBuffers},
|
||||
{"nalSourceUnqueueBuffers", "(IILjava/nio/IntBuffer;I)V", (void *)&Java_org_lwjgl_openal_AL10_nalSourceUnqueueBuffers, "alSourceUnqueueBuffers", (void *)&alSourceUnqueueBuffers},
|
||||
{"nalDistanceModel", "(I)V", (void *)&Java_org_lwjgl_openal_AL10_nalDistanceModel, "alDistanceModel", (void *)&alDistanceModel},
|
||||
{"nalDopplerFactor", "(F)V", (void *)&Java_org_lwjgl_openal_AL10_nalDopplerFactor, "alDopplerFactor", (void *)&alDopplerFactor},
|
||||
{"nalDopplerVelocity", "(F)V", (void *)&Java_org_lwjgl_openal_AL10_nalDopplerVelocity, "alDopplerVelocity", (void *)&alDopplerVelocity}
|
||||
};
|
||||
int num_functions = NUMFUNCTIONS(functions);
|
||||
extal_InitializeClass(env, clazz, num_functions, functions);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,26 +3,21 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glCopyTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
typedef void (APIENTRY *glTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
|
||||
typedef void (APIENTRY *glTexImage3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
|
||||
typedef void (APIENTRY *glDrawRangeElementsPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
|
||||
typedef void (APIENTRY *glTexImage3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
|
||||
typedef void (APIENTRY *glTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
|
||||
typedef void (APIENTRY *glCopyTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglCopyTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height, jlong function_pointer) {
|
||||
glCopyTexSubImage3DPROC glCopyTexSubImage3D = (glCopyTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jobject indices, jint indices_position, jlong function_pointer) {
|
||||
const GLvoid *indices_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, indices)) + indices_position));
|
||||
glDrawRangeElementsPROC glDrawRangeElements = (glDrawRangeElementsPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElements(mode, start, end, count, type, indices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject pixels, jint pixels_position, jlong function_pointer) {
|
||||
const GLvoid *pixels_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pixels)) + pixels_position));
|
||||
glTexSubImage3DPROC glTexSubImage3D = (glTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jint pixels_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pixels_address = ((const GLvoid *)offsetToPointer(pixels_buffer_offset));
|
||||
glTexSubImage3DPROC glTexSubImage3D = (glTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsBO(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jint indices_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *indices_address = ((const GLvoid *)offsetToPointer(indices_buffer_offset));
|
||||
glDrawRangeElementsPROC glDrawRangeElements = (glDrawRangeElementsPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElements(mode, start, end, count, type, indices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalFormat, jint width, jint height, jint depth, jint border, jint format, jint type, jobject pixels, jint pixels_position, jlong function_pointer) {
|
||||
|
@ -37,15 +32,20 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3DBO(JNIEnv *env, j
|
|||
glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jobject indices, jint indices_position, jlong function_pointer) {
|
||||
const GLvoid *indices_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, indices)) + indices_position));
|
||||
glDrawRangeElementsPROC glDrawRangeElements = (glDrawRangeElementsPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElements(mode, start, end, count, type, indices_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject pixels, jint pixels_position, jlong function_pointer) {
|
||||
const GLvoid *pixels_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pixels)) + pixels_position));
|
||||
glTexSubImage3DPROC glTexSubImage3D = (glTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsBO(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jint indices_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *indices_address = ((const GLvoid *)offsetToPointer(indices_buffer_offset));
|
||||
glDrawRangeElementsPROC glDrawRangeElements = (glDrawRangeElementsPROC)((intptr_t)function_pointer);
|
||||
glDrawRangeElements(mode, start, end, count, type, indices_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jint pixels_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *pixels_address = ((const GLvoid *)offsetToPointer(pixels_buffer_offset));
|
||||
glTexSubImage3DPROC glTexSubImage3D = (glTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglCopyTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height, jlong function_pointer) {
|
||||
glCopyTexSubImage3DPROC glCopyTexSubImage3D = (glCopyTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,130 +3,31 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glSampleCoveragePROC) (GLclampf value, GLboolean invert);
|
||||
typedef void (APIENTRY *glMultTransposeMatrixfPROC) (const GLfloat * m);
|
||||
typedef void (APIENTRY *glLoadTransposeMatrixfPROC) (const GLfloat * m);
|
||||
typedef void (APIENTRY *glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
typedef void (APIENTRY *glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
|
||||
typedef void (APIENTRY *glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
typedef void (APIENTRY *glMultiTexCoord1fPROC) (GLenum target, GLfloat s);
|
||||
typedef void (APIENTRY *glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid * img);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexImage2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexImage1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glClientActiveTexturePROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glActiveTexturePROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glClientActiveTexturePROC) (GLenum texture);
|
||||
typedef void (APIENTRY *glCompressedTexImage1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexImage2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data);
|
||||
typedef void (APIENTRY *glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid * img);
|
||||
typedef void (APIENTRY *glMultiTexCoord1fPROC) (GLenum target, GLfloat s);
|
||||
typedef void (APIENTRY *glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t);
|
||||
typedef void (APIENTRY *glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
|
||||
typedef void (APIENTRY *glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
typedef void (APIENTRY *glLoadTransposeMatrixfPROC) (const GLfloat * m);
|
||||
typedef void (APIENTRY *glMultTransposeMatrixfPROC) (const GLfloat * m);
|
||||
typedef void (APIENTRY *glSampleCoveragePROC) (GLclampf value, GLboolean invert);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglSampleCoverage(JNIEnv *env, jclass clazz, jfloat value, jboolean invert, jlong function_pointer) {
|
||||
glSampleCoveragePROC glSampleCoverage = (glSampleCoveragePROC)((intptr_t)function_pointer);
|
||||
glSampleCoverage(value, invert);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglActiveTexture(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glActiveTexturePROC glActiveTexture = (glActiveTexturePROC)((intptr_t)function_pointer);
|
||||
glActiveTexture(texture);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf(JNIEnv *env, jclass clazz, jobject m, jint m_position, jlong function_pointer) {
|
||||
const GLfloat *m_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, m)) + m_position;
|
||||
glMultTransposeMatrixfPROC glMultTransposeMatrixf = (glMultTransposeMatrixfPROC)((intptr_t)function_pointer);
|
||||
glMultTransposeMatrixf(m_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf(JNIEnv *env, jclass clazz, jobject m, jint m_position, jlong function_pointer) {
|
||||
const GLfloat *m_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, m)) + m_position;
|
||||
glLoadTransposeMatrixfPROC glLoadTransposeMatrixf = (glLoadTransposeMatrixfPROC)((intptr_t)function_pointer);
|
||||
glLoadTransposeMatrixf(m_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord4f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q, jlong function_pointer) {
|
||||
glMultiTexCoord4fPROC glMultiTexCoord4f = (glMultiTexCoord4fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4f(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord3f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jlong function_pointer) {
|
||||
glMultiTexCoord3fPROC glMultiTexCoord3f = (glMultiTexCoord3fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3f(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord2f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jlong function_pointer) {
|
||||
glMultiTexCoord2fPROC glMultiTexCoord2f = (glMultiTexCoord2fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2f(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord1f(JNIEnv *env, jclass clazz, jint target, jfloat s, jlong function_pointer) {
|
||||
glMultiTexCoord1fPROC glMultiTexCoord1f = (glMultiTexCoord1fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1f(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage(JNIEnv *env, jclass clazz, jint target, jint lod, jobject img, jint img_position, jlong function_pointer) {
|
||||
GLvoid *img_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, img)) + img_position));
|
||||
glGetCompressedTexImagePROC glGetCompressedTexImage = (glGetCompressedTexImagePROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImage(target, lod, img_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImageBO(JNIEnv *env, jclass clazz, jint target, jint lod, jint img_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *img_address = ((GLvoid *)offsetToPointer(img_buffer_offset));
|
||||
glGetCompressedTexImagePROC glGetCompressedTexImage = (glGetCompressedTexImagePROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImage(target, lod, img_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage3DPROC glCompressedTexSubImage3D = (glCompressedTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage3DPROC glCompressedTexSubImage3D = (glCompressedTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage2DPROC glCompressedTexSubImage2D = (glCompressedTexSubImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage2DPROC glCompressedTexSubImage2D = (glCompressedTexSubImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage1DPROC glCompressedTexSubImage1D = (glCompressedTexSubImage1DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage1DPROC glCompressedTexSubImage1D = (glCompressedTexSubImage1DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexImage3DPROC glCompressedTexImage3D = (glCompressedTexImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexImage3DPROC glCompressedTexImage3D = (glCompressedTexImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexImage2DPROC glCompressedTexImage2D = (glCompressedTexImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexImage2DPROC glCompressedTexImage2D = (glCompressedTexImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglClientActiveTexture(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glClientActiveTexturePROC glClientActiveTexture = (glClientActiveTexturePROC)((intptr_t)function_pointer);
|
||||
glClientActiveTexture(texture);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
|
@ -141,13 +42,112 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1DBO(JNIE
|
|||
glCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglClientActiveTexture(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glClientActiveTexturePROC glClientActiveTexture = (glClientActiveTexturePROC)((intptr_t)function_pointer);
|
||||
glClientActiveTexture(texture);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexImage2DPROC glCompressedTexImage2D = (glCompressedTexImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglActiveTexture(JNIEnv *env, jclass clazz, jint texture, jlong function_pointer) {
|
||||
glActiveTexturePROC glActiveTexture = (glActiveTexturePROC)((intptr_t)function_pointer);
|
||||
glActiveTexture(texture);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexImage2DPROC glCompressedTexImage2D = (glCompressedTexImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexImage3DPROC glCompressedTexImage3D = (glCompressedTexImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexImage3DPROC glCompressedTexImage3D = (glCompressedTexImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage1DPROC glCompressedTexSubImage1D = (glCompressedTexSubImage1DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage1DPROC glCompressedTexSubImage1D = (glCompressedTexSubImage1DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage2DPROC glCompressedTexSubImage2D = (glCompressedTexSubImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage2DPROC glCompressedTexSubImage2D = (glCompressedTexSubImage2DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glCompressedTexSubImage3DPROC glCompressedTexSubImage3D = (glCompressedTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glCompressedTexSubImage3DPROC glCompressedTexSubImage3D = (glCompressedTexSubImage3DPROC)((intptr_t)function_pointer);
|
||||
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage(JNIEnv *env, jclass clazz, jint target, jint lod, jobject img, jint img_position, jlong function_pointer) {
|
||||
GLvoid *img_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, img)) + img_position));
|
||||
glGetCompressedTexImagePROC glGetCompressedTexImage = (glGetCompressedTexImagePROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImage(target, lod, img_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImageBO(JNIEnv *env, jclass clazz, jint target, jint lod, jint img_buffer_offset, jlong function_pointer) {
|
||||
GLvoid *img_address = ((GLvoid *)offsetToPointer(img_buffer_offset));
|
||||
glGetCompressedTexImagePROC glGetCompressedTexImage = (glGetCompressedTexImagePROC)((intptr_t)function_pointer);
|
||||
glGetCompressedTexImage(target, lod, img_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord1f(JNIEnv *env, jclass clazz, jint target, jfloat s, jlong function_pointer) {
|
||||
glMultiTexCoord1fPROC glMultiTexCoord1f = (glMultiTexCoord1fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord1f(target, s);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord2f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jlong function_pointer) {
|
||||
glMultiTexCoord2fPROC glMultiTexCoord2f = (glMultiTexCoord2fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord2f(target, s, t);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord3f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jlong function_pointer) {
|
||||
glMultiTexCoord3fPROC glMultiTexCoord3f = (glMultiTexCoord3fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord3f(target, s, t, r);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultiTexCoord4f(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q, jlong function_pointer) {
|
||||
glMultiTexCoord4fPROC glMultiTexCoord4f = (glMultiTexCoord4fPROC)((intptr_t)function_pointer);
|
||||
glMultiTexCoord4f(target, s, t, r, q);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf(JNIEnv *env, jclass clazz, jobject m, jint m_position, jlong function_pointer) {
|
||||
const GLfloat *m_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, m)) + m_position;
|
||||
glLoadTransposeMatrixfPROC glLoadTransposeMatrixf = (glLoadTransposeMatrixfPROC)((intptr_t)function_pointer);
|
||||
glLoadTransposeMatrixf(m_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf(JNIEnv *env, jclass clazz, jobject m, jint m_position, jlong function_pointer) {
|
||||
const GLfloat *m_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, m)) + m_position;
|
||||
glMultTransposeMatrixfPROC glMultTransposeMatrixf = (glMultTransposeMatrixfPROC)((intptr_t)function_pointer);
|
||||
glMultTransposeMatrixf(m_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglSampleCoverage(JNIEnv *env, jclass clazz, jfloat value, jboolean invert, jlong function_pointer) {
|
||||
glSampleCoveragePROC glSampleCoverage = (glSampleCoveragePROC)((intptr_t)function_pointer);
|
||||
glSampleCoverage(value, invert);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,104 +3,38 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glWindowPos3iPROC) (GLint x, GLint y, GLint z);
|
||||
typedef void (APIENTRY *glWindowPos3fPROC) (GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glWindowPos2iPROC) (GLint x, GLint y);
|
||||
typedef void (APIENTRY *glWindowPos2fPROC) (GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glBlendFuncSeparatePROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
||||
typedef void (APIENTRY *glSecondaryColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid * data);
|
||||
typedef void (APIENTRY *glSecondaryColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue);
|
||||
typedef void (APIENTRY *glPointParameterfvPROC) (GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glPointParameterivPROC) (GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glPointParameterfPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glPointParameteriPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glMultiDrawArraysPROC) (GLenum mode, GLint * piFirst, GLsizei * piCount, GLsizei primcount);
|
||||
typedef void (APIENTRY *glFogCoordPointerPROC) (GLenum type, GLsizei stride, const GLvoid * data);
|
||||
typedef void (APIENTRY *glFogCoordfPROC) (GLfloat coord);
|
||||
typedef void (APIENTRY *glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
typedef void (APIENTRY *glBlendEquationPROC) (GLenum mode);
|
||||
typedef void (APIENTRY *glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
typedef void (APIENTRY *glFogCoordfPROC) (GLfloat coord);
|
||||
typedef void (APIENTRY *glFogCoordPointerPROC) (GLenum type, GLsizei stride, const GLvoid * data);
|
||||
typedef void (APIENTRY *glMultiDrawArraysPROC) (GLenum mode, GLint * piFirst, GLsizei * piCount, GLsizei primcount);
|
||||
typedef void (APIENTRY *glPointParameteriPROC) (GLenum pname, GLint param);
|
||||
typedef void (APIENTRY *glPointParameterfPROC) (GLenum pname, GLfloat param);
|
||||
typedef void (APIENTRY *glPointParameterivPROC) (GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glPointParameterfvPROC) (GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glSecondaryColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue);
|
||||
typedef void (APIENTRY *glSecondaryColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue);
|
||||
typedef void (APIENTRY *glSecondaryColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid * data);
|
||||
typedef void (APIENTRY *glBlendFuncSeparatePROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
||||
typedef void (APIENTRY *glWindowPos2fPROC) (GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glWindowPos2iPROC) (GLint x, GLint y);
|
||||
typedef void (APIENTRY *glWindowPos3fPROC) (GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glWindowPos3iPROC) (GLint x, GLint y, GLint z);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos3i(JNIEnv *env, jclass clazz, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glWindowPos3iPROC glWindowPos3i = (glWindowPos3iPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3i(x, y, z);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendEquation(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) {
|
||||
glBlendEquationPROC glBlendEquation = (glBlendEquationPROC)((intptr_t)function_pointer);
|
||||
glBlendEquation(mode);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos3f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glWindowPos3fPROC glWindowPos3f = (glWindowPos3fPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3f(x, y, z);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendColor(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) {
|
||||
glBlendColorPROC glBlendColor = (glBlendColorPROC)((intptr_t)function_pointer);
|
||||
glBlendColor(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos2i(JNIEnv *env, jclass clazz, jint x, jint y, jlong function_pointer) {
|
||||
glWindowPos2iPROC glWindowPos2i = (glWindowPos2iPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2i(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos2f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glWindowPos2fPROC glWindowPos2f = (glWindowPos2fPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2f(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendFuncSeparate(JNIEnv *env, jclass clazz, jint sfactorRGB, jint dfactorRGB, jint sfactorAlpha, jint dfactorAlpha, jlong function_pointer) {
|
||||
glBlendFuncSeparatePROC glBlendFuncSeparate = (glBlendFuncSeparatePROC)((intptr_t)function_pointer);
|
||||
glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glSecondaryColorPointerPROC glSecondaryColorPointer = (glSecondaryColorPointerPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColorPointer(size, type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerBO(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glSecondaryColorPointerPROC glSecondaryColorPointer = (glSecondaryColorPointerPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColorPointer(size, type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3ub(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3ubPROC glSecondaryColor3ub = (glSecondaryColor3ubPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3ub(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3f(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jlong function_pointer) {
|
||||
glSecondaryColor3fPROC glSecondaryColor3f = (glSecondaryColor3fPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3f(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3b(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3bPROC glSecondaryColor3b = (glSecondaryColor3bPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3b(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glPointParameterfvPROC glPointParameterfv = (glPointParameterfvPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfv(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteriv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glPointParameterivPROC glPointParameteriv = (glPointParameterivPROC)((intptr_t)function_pointer);
|
||||
glPointParameteriv(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterf(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfPROC glPointParameterf = (glPointParameterfPROC)((intptr_t)function_pointer);
|
||||
glPointParameterf(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteri(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPointParameteriPROC glPointParameteri = (glPointParameteriPROC)((intptr_t)function_pointer);
|
||||
glPointParameteri(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays(JNIEnv *env, jclass clazz, jint mode, jobject piFirst, jint piFirst_position, jobject piCount, jint piCount_position, jint primcount, jlong function_pointer) {
|
||||
GLint *piFirst_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piFirst)) + piFirst_position;
|
||||
GLsizei *piCount_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, piCount)) + piCount_position;
|
||||
glMultiDrawArraysPROC glMultiDrawArrays = (glMultiDrawArraysPROC)((intptr_t)function_pointer);
|
||||
glMultiDrawArrays(mode, piFirst_address, piCount_address, primcount);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordf(JNIEnv *env, jclass clazz, jfloat coord, jlong function_pointer) {
|
||||
glFogCoordfPROC glFogCoordf = (glFogCoordfPROC)((intptr_t)function_pointer);
|
||||
glFogCoordf(coord);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer(JNIEnv *env, jclass clazz, jint type, jint stride, jobject data, jint data_position, jlong function_pointer) {
|
||||
|
@ -115,18 +49,84 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerBO(JNIEnv *e
|
|||
glFogCoordPointer(type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordf(JNIEnv *env, jclass clazz, jfloat coord, jlong function_pointer) {
|
||||
glFogCoordfPROC glFogCoordf = (glFogCoordfPROC)((intptr_t)function_pointer);
|
||||
glFogCoordf(coord);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays(JNIEnv *env, jclass clazz, jint mode, jobject piFirst, jint piFirst_position, jobject piCount, jint piCount_position, jint primcount, jlong function_pointer) {
|
||||
GLint *piFirst_address = ((GLint *)(*env)->GetDirectBufferAddress(env, piFirst)) + piFirst_position;
|
||||
GLsizei *piCount_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, piCount)) + piCount_position;
|
||||
glMultiDrawArraysPROC glMultiDrawArrays = (glMultiDrawArraysPROC)((intptr_t)function_pointer);
|
||||
glMultiDrawArrays(mode, piFirst_address, piCount_address, primcount);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendColor(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) {
|
||||
glBlendColorPROC glBlendColor = (glBlendColorPROC)((intptr_t)function_pointer);
|
||||
glBlendColor(red, green, blue, alpha);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteri(JNIEnv *env, jclass clazz, jint pname, jint param, jlong function_pointer) {
|
||||
glPointParameteriPROC glPointParameteri = (glPointParameteriPROC)((intptr_t)function_pointer);
|
||||
glPointParameteri(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendEquation(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) {
|
||||
glBlendEquationPROC glBlendEquation = (glBlendEquationPROC)((intptr_t)function_pointer);
|
||||
glBlendEquation(mode);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterf(JNIEnv *env, jclass clazz, jint pname, jfloat param, jlong function_pointer) {
|
||||
glPointParameterfPROC glPointParameterf = (glPointParameterfPROC)((intptr_t)function_pointer);
|
||||
glPointParameterf(pname, param);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameteriv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glPointParameterivPROC glPointParameteriv = (glPointParameterivPROC)((intptr_t)function_pointer);
|
||||
glPointParameteriv(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv(JNIEnv *env, jclass clazz, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glPointParameterfvPROC glPointParameterfv = (glPointParameterfvPROC)((intptr_t)function_pointer);
|
||||
glPointParameterfv(pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3b(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3bPROC glSecondaryColor3b = (glSecondaryColor3bPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3b(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3f(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jlong function_pointer) {
|
||||
glSecondaryColor3fPROC glSecondaryColor3f = (glSecondaryColor3fPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3f(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColor3ub(JNIEnv *env, jclass clazz, jbyte red, jbyte green, jbyte blue, jlong function_pointer) {
|
||||
glSecondaryColor3ubPROC glSecondaryColor3ub = (glSecondaryColor3ubPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColor3ub(red, green, blue);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glSecondaryColorPointerPROC glSecondaryColorPointer = (glSecondaryColorPointerPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColorPointer(size, type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerBO(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jint data_buffer_offset, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)offsetToPointer(data_buffer_offset));
|
||||
glSecondaryColorPointerPROC glSecondaryColorPointer = (glSecondaryColorPointerPROC)((intptr_t)function_pointer);
|
||||
glSecondaryColorPointer(size, type, stride, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglBlendFuncSeparate(JNIEnv *env, jclass clazz, jint sfactorRGB, jint dfactorRGB, jint sfactorAlpha, jint dfactorAlpha, jlong function_pointer) {
|
||||
glBlendFuncSeparatePROC glBlendFuncSeparate = (glBlendFuncSeparatePROC)((intptr_t)function_pointer);
|
||||
glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos2f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glWindowPos2fPROC glWindowPos2f = (glWindowPos2fPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2f(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos2i(JNIEnv *env, jclass clazz, jint x, jint y, jlong function_pointer) {
|
||||
glWindowPos2iPROC glWindowPos2i = (glWindowPos2iPROC)((intptr_t)function_pointer);
|
||||
glWindowPos2i(x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos3f(JNIEnv *env, jclass clazz, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glWindowPos3fPROC glWindowPos3f = (glWindowPos3fPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3f(x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglWindowPos3i(JNIEnv *env, jclass clazz, jint x, jint y, jint z, jlong function_pointer) {
|
||||
glWindowPos3iPROC glWindowPos3i = (glWindowPos3iPROC)((intptr_t)function_pointer);
|
||||
glWindowPos3i(x, y, z);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,70 +3,83 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glGetQueryObjectuivPROC) (GLenum id, GLenum pname, GLuint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectivPROC) (GLenum id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glEndQueryPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glBeginQueryPROC) (GLenum target, GLuint id);
|
||||
typedef GLboolean (APIENTRY *glIsQueryPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glDeleteQueriesPROC) (GLsizei n, GLuint * ids);
|
||||
typedef void (APIENTRY *glGenQueriesPROC) (GLsizei n, GLuint * ids);
|
||||
typedef void (APIENTRY *glGetBufferPointervPROC) (GLenum target, GLenum pname, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glGetBufferParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef GLboolean (APIENTRY *glUnmapBufferPROC) (GLenum target);
|
||||
typedef GLvoid * (APIENTRY *glMapBufferPROC) (GLenum target, GLenum access);
|
||||
typedef void (APIENTRY *glGetBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid * data);
|
||||
typedef void (APIENTRY *glBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data);
|
||||
typedef void (APIENTRY *glBufferDataPROC) (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
|
||||
typedef GLboolean (APIENTRY *glIsBufferPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glGenBuffersPROC) (GLsizei n, GLuint * buffers);
|
||||
typedef void (APIENTRY *glDeleteBuffersPROC) (GLsizei n, const GLuint * buffers);
|
||||
typedef void (APIENTRY *glBindBufferPROC) (GLenum target, GLuint buffer);
|
||||
typedef void (APIENTRY *glDeleteBuffersPROC) (GLsizei n, const GLuint * buffers);
|
||||
typedef void (APIENTRY *glGenBuffersPROC) (GLsizei n, GLuint * buffers);
|
||||
typedef GLboolean (APIENTRY *glIsBufferPROC) (GLuint buffer);
|
||||
typedef void (APIENTRY *glBufferDataPROC) (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
|
||||
typedef void (APIENTRY *glBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data);
|
||||
typedef void (APIENTRY *glGetBufferSubDataPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid * data);
|
||||
typedef GLvoid * (APIENTRY *glMapBufferPROC) (GLenum target, GLenum access);
|
||||
typedef GLboolean (APIENTRY *glUnmapBufferPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetBufferParameterivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetBufferPointervPROC) (GLenum target, GLenum pname, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glGenQueriesPROC) (GLsizei n, GLuint * ids);
|
||||
typedef void (APIENTRY *glDeleteQueriesPROC) (GLsizei n, GLuint * ids);
|
||||
typedef GLboolean (APIENTRY *glIsQueryPROC) (GLuint id);
|
||||
typedef void (APIENTRY *glBeginQueryPROC) (GLenum target, GLuint id);
|
||||
typedef void (APIENTRY *glEndQueryPROC) (GLenum target);
|
||||
typedef void (APIENTRY *glGetQueryivPROC) (GLenum target, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectivPROC) (GLenum id, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetQueryObjectuivPROC) (GLenum id, GLenum pname, GLuint * params);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectuivPROC glGetQueryObjectuiv = (glGetQueryObjectuivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectuiv(id, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer(JNIEnv *env, jclass clazz, jint target, jint buffer, jlong function_pointer) {
|
||||
glBindBufferPROC glBindBuffer = (glBindBufferPROC)((intptr_t)function_pointer);
|
||||
glBindBuffer(target, buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectivPROC glGetQueryObjectiv = (glGetQueryObjectivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectiv(id, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
const GLuint *buffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glDeleteBuffersPROC glDeleteBuffers = (glDeleteBuffersPROC)((intptr_t)function_pointer);
|
||||
glDeleteBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryivPROC glGetQueryiv = (glGetQueryivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryiv(target, pname, params_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
GLuint *buffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glGenBuffersPROC glGenBuffers = (glGenBuffersPROC)((intptr_t)function_pointer);
|
||||
glGenBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglEndQuery(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glEndQueryPROC glEndQuery = (glEndQueryPROC)((intptr_t)function_pointer);
|
||||
glEndQuery(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBeginQuery(JNIEnv *env, jclass clazz, jint target, jint id, jlong function_pointer) {
|
||||
glBeginQueryPROC glBeginQuery = (glBeginQueryPROC)((intptr_t)function_pointer);
|
||||
glBeginQuery(target, id);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglIsQuery(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsQueryPROC glIsQuery = (glIsQueryPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsQuery(id);
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglIsBuffer(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsBufferPROC glIsBuffer = (glIsBufferPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsBuffer(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glDeleteQueriesPROC glDeleteQueries = (glDeleteQueriesPROC)((intptr_t)function_pointer);
|
||||
glDeleteQueries(n, ids_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData(JNIEnv *env, jclass clazz, jint target, jint size, jobject data, jint data_position, jint usage, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, data)) + data_position));
|
||||
glBufferDataPROC glBufferData = (glBufferDataPROC)((intptr_t)function_pointer);
|
||||
glBufferData(target, size, data_address, usage);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glGenQueriesPROC glGenQueries = (glGenQueriesPROC)((intptr_t)function_pointer);
|
||||
glGenQueries(n, ids_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glBufferSubDataPROC glBufferSubData = (glBufferSubDataPROC)((intptr_t)function_pointer);
|
||||
glBufferSubData(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetBufferSubDataPROC glGetBufferSubData = (glGetBufferSubDataPROC)((intptr_t)function_pointer);
|
||||
glGetBufferSubData(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_nglMapBuffer(JNIEnv *env, jclass clazz, jint target, jint access, jint result_size, jobject old_buffer, jlong function_pointer) {
|
||||
glMapBufferPROC glMapBuffer = (glMapBufferPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result = glMapBuffer(target, access);
|
||||
return safeNewBufferCached(env, __result, result_size, old_buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglUnmapBuffer(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glUnmapBufferPROC glUnmapBuffer = (glUnmapBufferPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glUnmapBuffer(target);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetBufferParameterivPROC glGetBufferParameteriv = (glGetBufferParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetBufferParameteriv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferPointerv(JNIEnv *env, jclass clazz, jint target, jint pname, jint result_size, jlong function_pointer) {
|
||||
|
@ -76,62 +89,49 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferPointerv(JNIEnv
|
|||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glGenQueriesPROC glGenQueries = (glGenQueriesPROC)((intptr_t)function_pointer);
|
||||
glGenQueries(n, ids_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries(JNIEnv *env, jclass clazz, jint n, jobject ids, jint ids_position, jlong function_pointer) {
|
||||
GLuint *ids_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, ids)) + ids_position;
|
||||
glDeleteQueriesPROC glDeleteQueries = (glDeleteQueriesPROC)((intptr_t)function_pointer);
|
||||
glDeleteQueries(n, ids_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglIsQuery(JNIEnv *env, jclass clazz, jint id, jlong function_pointer) {
|
||||
glIsQueryPROC glIsQuery = (glIsQueryPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsQuery(id);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBeginQuery(JNIEnv *env, jclass clazz, jint target, jint id, jlong function_pointer) {
|
||||
glBeginQueryPROC glBeginQuery = (glBeginQueryPROC)((intptr_t)function_pointer);
|
||||
glBeginQuery(target, id);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglEndQuery(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glEndQueryPROC glEndQuery = (glEndQueryPROC)((intptr_t)function_pointer);
|
||||
glEndQuery(target);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetBufferParameterivPROC glGetBufferParameteriv = (glGetBufferParameterivPROC)((intptr_t)function_pointer);
|
||||
glGetBufferParameteriv(target, pname, params_address);
|
||||
glGetQueryivPROC glGetQueryiv = (glGetQueryivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryiv(target, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglUnmapBuffer(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
|
||||
glUnmapBufferPROC glUnmapBuffer = (glUnmapBufferPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glUnmapBuffer(target);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectivPROC glGetQueryObjectiv = (glGetQueryObjectivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectiv(id, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_nglMapBuffer(JNIEnv *env, jclass clazz, jint target, jint access, jint result_size, jobject old_buffer, jlong function_pointer) {
|
||||
glMapBufferPROC glMapBuffer = (glMapBufferPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result = glMapBuffer(target, access);
|
||||
return safeNewBufferCached(env, __result, result_size, old_buffer);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
GLvoid *data_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glGetBufferSubDataPROC glGetBufferSubData = (glGetBufferSubDataPROC)((intptr_t)function_pointer);
|
||||
glGetBufferSubData(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData(JNIEnv *env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_position, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, data)) + data_position));
|
||||
glBufferSubDataPROC glBufferSubData = (glBufferSubDataPROC)((intptr_t)function_pointer);
|
||||
glBufferSubData(target, offset, size, data_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData(JNIEnv *env, jclass clazz, jint target, jint size, jobject data, jint data_position, jint usage, jlong function_pointer) {
|
||||
const GLvoid *data_address = ((const GLvoid *)(((char *)safeGetBufferAddress(env, data)) + data_position));
|
||||
glBufferDataPROC glBufferData = (glBufferDataPROC)((intptr_t)function_pointer);
|
||||
glBufferData(target, size, data_address, usage);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_nglIsBuffer(JNIEnv *env, jclass clazz, jint buffer, jlong function_pointer) {
|
||||
glIsBufferPROC glIsBuffer = (glIsBufferPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsBuffer(buffer);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
GLuint *buffers_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glGenBuffersPROC glGenBuffers = (glGenBuffersPROC)((intptr_t)function_pointer);
|
||||
glGenBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers(JNIEnv *env, jclass clazz, jint n, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
const GLuint *buffers_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glDeleteBuffersPROC glDeleteBuffers = (glDeleteBuffersPROC)((intptr_t)function_pointer);
|
||||
glDeleteBuffers(n, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer(JNIEnv *env, jclass clazz, jint target, jint buffer, jlong function_pointer) {
|
||||
glBindBufferPROC glBindBuffer = (glBindBufferPROC)((intptr_t)function_pointer);
|
||||
glBindBuffer(target, buffer);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetQueryObjectuivPROC glGetQueryObjectuiv = (glGetQueryObjectuivPROC)((intptr_t)function_pointer);
|
||||
glGetQueryObjectuiv(id, pname, params_address);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,147 +3,359 @@
|
|||
#include <jni.h>
|
||||
#include "extgl.h"
|
||||
|
||||
typedef void (APIENTRY *glBlendEquationSeparatePROC) (GLenum modeRGB, GLenum modeAlpha);
|
||||
typedef void (APIENTRY *glStencilMaskSeparatePROC) (GLenum face, GLuint mask);
|
||||
typedef void (APIENTRY *glStencilFuncSeparatePROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||
typedef void (APIENTRY *glStencilOpSeparatePROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
typedef void (APIENTRY *glDrawBuffersPROC) (GLsizei size, const GLenum * buffers);
|
||||
typedef GLint (APIENTRY *glGetAttribLocationPROC) (GLuint program, const GLchar * name);
|
||||
typedef void (APIENTRY *glGetActiveAttribPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, const GLchar * name);
|
||||
typedef void (APIENTRY *glBindAttribLocationPROC) (GLuint program, GLuint index, const GLchar * name);
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervPROC) (GLuint index, GLenum pname, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glGetVertexAttribivPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glDisableVertexAttribArrayPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glEnableVertexAttribArrayPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glVertexAttribPointerPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glVertexAttrib4NubPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4sPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib3fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib3sPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib2fPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib2sPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib1fPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib1sPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRY *glGetShaderSourcePROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * source);
|
||||
typedef void (APIENTRY *glGetUniformivPROC) (GLuint program, GLint location, GLint * params);
|
||||
typedef void (APIENTRY *glGetUniformfvPROC) (GLuint program, GLint location, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetActiveUniformPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
|
||||
typedef GLint (APIENTRY *glGetUniformLocationPROC) (GLuint program, const GLchar * name);
|
||||
typedef void (APIENTRY *glGetAttachedShadersPROC) (GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders);
|
||||
typedef void (APIENTRY *glGetProgramInfoLogPROC) (GLuint program, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
||||
typedef void (APIENTRY *glGetShaderInfoLogPROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
||||
typedef void (APIENTRY *glGetProgramivPROC) (GLuint program, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetShaderivPROC) (GLuint shader, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glUniformMatrix4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniform4ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform3ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform2ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform1ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform4fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform3fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform2fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform1fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform4iPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRY *glUniform3iPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRY *glUniform2iPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRY *glUniform1iPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRY *glUniform4fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRY *glUniform3fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRY *glUniform2fPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRY *glUniform1fPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRY *glDeleteProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glValidateProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glUseProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glLinkProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glDetachShaderPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRY *glAttachShaderPROC) (GLuint program, GLuint shader);
|
||||
typedef GLboolean (APIENTRY *glIsProgramPROC) (GLint program);
|
||||
typedef GLint (APIENTRY *glCreateProgramPROC) ();
|
||||
typedef void (APIENTRY *glDeleteShaderPROC) (GLuint shader);
|
||||
typedef void (APIENTRY *glCompileShaderPROC) (GLuint shader);
|
||||
typedef GLboolean (APIENTRY *glIsShaderPROC) (GLuint shader);
|
||||
typedef GLint (APIENTRY *glCreateShaderPROC) (GLuint type);
|
||||
typedef void (APIENTRY *glShaderSourcePROC) (GLuint shader, GLsizei count, const GLchar ** string, const GLint* length);
|
||||
typedef GLint (APIENTRY *glCreateShaderPROC) (GLuint type);
|
||||
typedef GLboolean (APIENTRY *glIsShaderPROC) (GLuint shader);
|
||||
typedef void (APIENTRY *glCompileShaderPROC) (GLuint shader);
|
||||
typedef void (APIENTRY *glDeleteShaderPROC) (GLuint shader);
|
||||
typedef GLint (APIENTRY *glCreateProgramPROC) ();
|
||||
typedef GLboolean (APIENTRY *glIsProgramPROC) (GLint program);
|
||||
typedef void (APIENTRY *glAttachShaderPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRY *glDetachShaderPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRY *glLinkProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glUseProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glValidateProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glDeleteProgramPROC) (GLuint program);
|
||||
typedef void (APIENTRY *glUniform1fPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRY *glUniform2fPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRY *glUniform3fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRY *glUniform4fPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRY *glUniform1iPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRY *glUniform2iPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRY *glUniform3iPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRY *glUniform4iPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRY *glUniform1fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform2fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform3fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform4fvPROC) (GLint location, GLsizei count, GLfloat * values);
|
||||
typedef void (APIENTRY *glUniform1ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform2ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform3ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniform4ivPROC) (GLint location, GLsizei count, GLint * values);
|
||||
typedef void (APIENTRY *glUniformMatrix2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glUniformMatrix4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
|
||||
typedef void (APIENTRY *glGetShaderivPROC) (GLuint shader, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetProgramivPROC) (GLuint program, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetShaderInfoLogPROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
||||
typedef void (APIENTRY *glGetProgramInfoLogPROC) (GLuint program, GLsizei maxLength, GLsizei * length, GLchar * infoLog);
|
||||
typedef void (APIENTRY *glGetAttachedShadersPROC) (GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders);
|
||||
typedef GLint (APIENTRY *glGetUniformLocationPROC) (GLuint program, const GLchar * name);
|
||||
typedef void (APIENTRY *glGetActiveUniformPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
|
||||
typedef void (APIENTRY *glGetUniformfvPROC) (GLuint program, GLint location, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetUniformivPROC) (GLuint program, GLint location, GLint * params);
|
||||
typedef void (APIENTRY *glGetShaderSourcePROC) (GLuint shader, GLsizei maxLength, GLsizei * length, GLchar * source);
|
||||
typedef void (APIENTRY *glVertexAttrib1sPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRY *glVertexAttrib1fPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRY *glVertexAttrib2sPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRY *glVertexAttrib2fPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRY *glVertexAttrib3sPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRY *glVertexAttrib3fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRY *glVertexAttrib4sPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRY *glVertexAttrib4fPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRY *glVertexAttrib4NubPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRY *glVertexAttribPointerPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * buffer);
|
||||
typedef void (APIENTRY *glEnableVertexAttribArrayPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glDisableVertexAttribArrayPROC) (GLuint index);
|
||||
typedef void (APIENTRY *glGetVertexAttribfvPROC) (GLuint index, GLenum pname, GLfloat * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribivPROC) (GLuint index, GLenum pname, GLint * params);
|
||||
typedef void (APIENTRY *glGetVertexAttribPointervPROC) (GLuint index, GLenum pname, GLvoid ** pointer);
|
||||
typedef void (APIENTRY *glBindAttribLocationPROC) (GLuint program, GLuint index, const GLchar * name);
|
||||
typedef void (APIENTRY *glGetActiveAttribPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, const GLchar * name);
|
||||
typedef GLint (APIENTRY *glGetAttribLocationPROC) (GLuint program, const GLchar * name);
|
||||
typedef void (APIENTRY *glDrawBuffersPROC) (GLsizei size, const GLenum * buffers);
|
||||
typedef void (APIENTRY *glStencilOpSeparatePROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
typedef void (APIENTRY *glStencilFuncSeparatePROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||
typedef void (APIENTRY *glStencilMaskSeparatePROC) (GLenum face, GLuint mask);
|
||||
typedef void (APIENTRY *glBlendEquationSeparatePROC) (GLenum modeRGB, GLenum modeAlpha);
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBlendEquationSeparate(JNIEnv *env, jclass clazz, jint modeRGB, jint modeAlpha, jlong function_pointer) {
|
||||
glBlendEquationSeparatePROC glBlendEquationSeparate = (glBlendEquationSeparatePROC)((intptr_t)function_pointer);
|
||||
glBlendEquationSeparate(modeRGB, modeAlpha);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglShaderSource(JNIEnv *env, jclass clazz, jint shader, jint count, jobject string, jint string_position, jint length, jlong function_pointer) {
|
||||
const GLchar *string_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, string)) + string_position;
|
||||
glShaderSourcePROC glShaderSource = (glShaderSourcePROC)((intptr_t)function_pointer);
|
||||
glShaderSource(shader, count, &string_address, &length);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilMaskSeparate(JNIEnv *env, jclass clazz, jint face, jint mask, jlong function_pointer) {
|
||||
glStencilMaskSeparatePROC glStencilMaskSeparate = (glStencilMaskSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilMaskSeparate(face, mask);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilFuncSeparate(JNIEnv *env, jclass clazz, jint face, jint func, jint ref, jint mask, jlong function_pointer) {
|
||||
glStencilFuncSeparatePROC glStencilFuncSeparate = (glStencilFuncSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilFuncSeparate(face, func, ref, mask);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilOpSeparate(JNIEnv *env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass, jlong function_pointer) {
|
||||
glStencilOpSeparatePROC glStencilOpSeparate = (glStencilOpSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilOpSeparate(face, sfail, dpfail, dppass);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDrawBuffers(JNIEnv *env, jclass clazz, jint size, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
const GLenum *buffers_address = ((const GLenum *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glDrawBuffersPROC glDrawBuffers = (glDrawBuffersPROC)((intptr_t)function_pointer);
|
||||
glDrawBuffers(size, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttribLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetAttribLocationPROC glGetAttribLocation = (glGetAttribLocationPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetAttribLocation(program, name_address);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateShader(JNIEnv *env, jclass clazz, jint type, jlong function_pointer) {
|
||||
glCreateShaderPROC glCreateShader = (glCreateShaderPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glCreateShader(type);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveAttrib(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLint *size_address = ((GLint *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
||||
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetActiveAttribPROC glGetActiveAttrib = (glGetActiveAttribPROC)((intptr_t)function_pointer);
|
||||
glGetActiveAttrib(program, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glIsShaderPROC glIsShader = (glIsShaderPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsShader(shader);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBindAttribLocation(JNIEnv *env, jclass clazz, jint program, jint index, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glBindAttribLocationPROC glBindAttribLocation = (glBindAttribLocationPROC)((intptr_t)function_pointer);
|
||||
glBindAttribLocation(program, index, name_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglCompileShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glCompileShaderPROC glCompileShader = (glCompileShaderPROC)((intptr_t)function_pointer);
|
||||
glCompileShader(shader);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribPointerv(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervPROC glGetVertexAttribPointerv = (glGetVertexAttribPointervPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointerv(index, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glDeleteShaderPROC glDeleteShader = (glDeleteShaderPROC)((intptr_t)function_pointer);
|
||||
glDeleteShader(shader);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribiv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateProgram(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glCreateProgramPROC glCreateProgram = (glCreateProgramPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glCreateProgram();
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glIsProgramPROC glIsProgram = (glIsProgramPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgram(program);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglAttachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
||||
glAttachShaderPROC glAttachShader = (glAttachShaderPROC)((intptr_t)function_pointer);
|
||||
glAttachShader(program, shader);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDetachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
||||
glDetachShaderPROC glDetachShader = (glDetachShaderPROC)((intptr_t)function_pointer);
|
||||
glDetachShader(program, shader);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglLinkProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glLinkProgramPROC glLinkProgram = (glLinkProgramPROC)((intptr_t)function_pointer);
|
||||
glLinkProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUseProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glUseProgramPROC glUseProgram = (glUseProgramPROC)((intptr_t)function_pointer);
|
||||
glUseProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglValidateProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glValidateProgramPROC glValidateProgram = (glValidateProgramPROC)((intptr_t)function_pointer);
|
||||
glValidateProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glDeleteProgramPROC glDeleteProgram = (glDeleteProgramPROC)((intptr_t)function_pointer);
|
||||
glDeleteProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jlong function_pointer) {
|
||||
glUniform1fPROC glUniform1f = (glUniform1fPROC)((intptr_t)function_pointer);
|
||||
glUniform1f(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jlong function_pointer) {
|
||||
glUniform2fPROC glUniform2f = (glUniform2fPROC)((intptr_t)function_pointer);
|
||||
glUniform2f(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jlong function_pointer) {
|
||||
glUniform3fPROC glUniform3f = (glUniform3fPROC)((intptr_t)function_pointer);
|
||||
glUniform3f(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3, jlong function_pointer) {
|
||||
glUniform4fPROC glUniform4f = (glUniform4fPROC)((intptr_t)function_pointer);
|
||||
glUniform4f(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1i(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
|
||||
glUniform1iPROC glUniform1i = (glUniform1iPROC)((intptr_t)function_pointer);
|
||||
glUniform1i(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
|
||||
glUniform2iPROC glUniform2i = (glUniform2iPROC)((intptr_t)function_pointer);
|
||||
glUniform2i(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
|
||||
glUniform3iPROC glUniform3i = (glUniform3iPROC)((intptr_t)function_pointer);
|
||||
glUniform3i(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
|
||||
glUniform4iPROC glUniform4i = (glUniform4iPROC)((intptr_t)function_pointer);
|
||||
glUniform4i(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1fvPROC glUniform1fv = (glUniform1fvPROC)((intptr_t)function_pointer);
|
||||
glUniform1fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2fvPROC glUniform2fv = (glUniform2fvPROC)((intptr_t)function_pointer);
|
||||
glUniform2fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3fvPROC glUniform3fv = (glUniform3fvPROC)((intptr_t)function_pointer);
|
||||
glUniform3fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4fvPROC glUniform4fv = (glUniform4fvPROC)((intptr_t)function_pointer);
|
||||
glUniform4fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1ivPROC glUniform1iv = (glUniform1ivPROC)((intptr_t)function_pointer);
|
||||
glUniform1iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2ivPROC glUniform2iv = (glUniform2ivPROC)((intptr_t)function_pointer);
|
||||
glUniform2iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3ivPROC glUniform3iv = (glUniform3ivPROC)((intptr_t)function_pointer);
|
||||
glUniform3iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4ivPROC glUniform4iv = (glUniform4ivPROC)((intptr_t)function_pointer);
|
||||
glUniform4iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix2fvPROC glUniformMatrix2fv = (glUniformMatrix2fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix2fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix3fvPROC glUniformMatrix3fv = (glUniformMatrix3fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix3fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix4fvPROC glUniformMatrix4fv = (glUniformMatrix4fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix4fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderiv(JNIEnv *env, jclass clazz, jint shader, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivPROC glGetVertexAttribiv = (glGetVertexAttribivPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribiv(index, pname, params_address);
|
||||
glGetShaderivPROC glGetShaderiv = (glGetShaderivPROC)((intptr_t)function_pointer);
|
||||
glGetShaderiv(shader, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribfv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramiv(JNIEnv *env, jclass clazz, jint program, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivPROC glGetProgramiv = (glGetProgramivPROC)((intptr_t)function_pointer);
|
||||
glGetProgramiv(program, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderInfoLog(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetShaderInfoLogPROC glGetShaderInfoLog = (glGetShaderInfoLogPROC)((intptr_t)function_pointer);
|
||||
glGetShaderInfoLog(shader, maxLength, length_address, infoLog_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramInfoLog(JNIEnv *env, jclass clazz, jint program, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetProgramInfoLogPROC glGetProgramInfoLog = (glGetProgramInfoLogPROC)((intptr_t)function_pointer);
|
||||
glGetProgramInfoLog(program, maxLength, length_address, infoLog_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttachedShaders(JNIEnv *env, jclass clazz, jint program, jint maxCount, jobject count, jint count_position, jobject shaders, jint shaders_position, jlong function_pointer) {
|
||||
GLsizei *count_address = ((GLsizei *)safeGetBufferAddress(env, count)) + count_position;
|
||||
GLuint *shaders_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, shaders)) + shaders_position;
|
||||
glGetAttachedShadersPROC glGetAttachedShaders = (glGetAttachedShadersPROC)((intptr_t)function_pointer);
|
||||
glGetAttachedShaders(program, maxCount, count_address, shaders_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetUniformLocationPROC glGetUniformLocation = (glGetUniformLocationPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetUniformLocation(program, name_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveUniform(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
||||
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
||||
GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetActiveUniformPROC glGetActiveUniform = (glGetActiveUniformPROC)((intptr_t)function_pointer);
|
||||
glGetActiveUniform(program, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformfv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribfvPROC glGetVertexAttribfv = (glGetVertexAttribfvPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfv(index, pname, params_address);
|
||||
glGetUniformfvPROC glGetUniformfv = (glGetUniformfvPROC)((intptr_t)function_pointer);
|
||||
glGetUniformfv(program, location, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDisableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glDisableVertexAttribArrayPROC glDisableVertexAttribArray = (glDisableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
||||
glDisableVertexAttribArray(index);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformiv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformivPROC glGetUniformiv = (glGetUniformivPROC)((intptr_t)function_pointer);
|
||||
glGetUniformiv(program, location, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglEnableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glEnableVertexAttribArrayPROC glEnableVertexAttribArray = (glEnableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
||||
glEnableVertexAttribArray(index);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderSource(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject source, jint source_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *source_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, source)) + source_position;
|
||||
glGetShaderSourcePROC glGetShaderSource = (glGetShaderSourcePROC)((intptr_t)function_pointer);
|
||||
glGetShaderSource(shader, maxLength, length_address, source_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1s(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sPROC glVertexAttrib1s = (glVertexAttrib1sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1s(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1f(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fPROC glVertexAttrib1f = (glVertexAttrib1fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1f(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sPROC glVertexAttrib2s = (glVertexAttrib2sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2s(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fPROC glVertexAttrib2f = (glVertexAttrib2fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2f(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sPROC glVertexAttrib3s = (glVertexAttrib3sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3s(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fPROC glVertexAttrib3f = (glVertexAttrib3fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3f(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sPROC glVertexAttrib4s = (glVertexAttrib4sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4s(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fPROC glVertexAttrib4f = (glVertexAttrib4fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4f(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4Nub(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4NubPROC glVertexAttrib4Nub = (glVertexAttrib4NubPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4Nub(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttribPointer(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) {
|
||||
|
@ -158,292 +370,80 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttribPointerBO(JNIEn
|
|||
glVertexAttribPointer(index, size, type, normalized, stride, buffer_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4Nub(JNIEnv *env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w, jlong function_pointer) {
|
||||
glVertexAttrib4NubPROC glVertexAttrib4Nub = (glVertexAttrib4NubPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4Nub(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglEnableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glEnableVertexAttribArrayPROC glEnableVertexAttribArray = (glEnableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
||||
glEnableVertexAttribArray(index);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w, jlong function_pointer) {
|
||||
glVertexAttrib4fPROC glVertexAttrib4f = (glVertexAttrib4fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4f(index, x, y, z, w);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDisableVertexAttribArray(JNIEnv *env, jclass clazz, jint index, jlong function_pointer) {
|
||||
glDisableVertexAttribArrayPROC glDisableVertexAttribArray = (glDisableVertexAttribArrayPROC)((intptr_t)function_pointer);
|
||||
glDisableVertexAttribArray(index);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib4s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w, jlong function_pointer) {
|
||||
glVertexAttrib4sPROC glVertexAttrib4s = (glVertexAttrib4sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib4s(index, x, y, z, w);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jlong function_pointer) {
|
||||
glVertexAttrib3fPROC glVertexAttrib3f = (glVertexAttrib3fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3f(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib3s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jshort z, jlong function_pointer) {
|
||||
glVertexAttrib3sPROC glVertexAttrib3s = (glVertexAttrib3sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib3s(index, x, y, z);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2f(JNIEnv *env, jclass clazz, jint index, jfloat x, jfloat y, jlong function_pointer) {
|
||||
glVertexAttrib2fPROC glVertexAttrib2f = (glVertexAttrib2fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2f(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) {
|
||||
glVertexAttrib2sPROC glVertexAttrib2s = (glVertexAttrib2sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib2s(index, x, y);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1f(JNIEnv *env, jclass clazz, jint index, jfloat x, jlong function_pointer) {
|
||||
glVertexAttrib1fPROC glVertexAttrib1f = (glVertexAttrib1fPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1f(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib1s(JNIEnv *env, jclass clazz, jint index, jshort x, jlong function_pointer) {
|
||||
glVertexAttrib1sPROC glVertexAttrib1s = (glVertexAttrib1sPROC)((intptr_t)function_pointer);
|
||||
glVertexAttrib1s(index, x);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderSource(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject source, jint source_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *source_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, source)) + source_position;
|
||||
glGetShaderSourcePROC glGetShaderSource = (glGetShaderSourcePROC)((intptr_t)function_pointer);
|
||||
glGetShaderSource(shader, maxLength, length_address, source_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformiv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformivPROC glGetUniformiv = (glGetUniformivPROC)((intptr_t)function_pointer);
|
||||
glGetUniformiv(program, location, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformfv(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribfv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLfloat *params_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetUniformfvPROC glGetUniformfv = (glGetUniformfvPROC)((intptr_t)function_pointer);
|
||||
glGetUniformfv(program, location, params_address);
|
||||
glGetVertexAttribfvPROC glGetVertexAttribfv = (glGetVertexAttribfvPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribfv(index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveUniform(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
||||
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
||||
GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetActiveUniformPROC glGetActiveUniform = (glGetActiveUniformPROC)((intptr_t)function_pointer);
|
||||
glGetActiveUniform(program, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribiv(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetVertexAttribivPROC glGetVertexAttribiv = (glGetVertexAttribivPROC)((intptr_t)function_pointer);
|
||||
glGetVertexAttribiv(index, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetUniformLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL20_nglGetVertexAttribPointerv(JNIEnv *env, jclass clazz, jint index, jint pname, jint result_size, jlong function_pointer) {
|
||||
glGetVertexAttribPointervPROC glGetVertexAttribPointerv = (glGetVertexAttribPointervPROC)((intptr_t)function_pointer);
|
||||
GLvoid * __result;
|
||||
glGetVertexAttribPointerv(index, pname, &__result);
|
||||
return safeNewBuffer(env, __result, result_size);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBindAttribLocation(JNIEnv *env, jclass clazz, jint program, jint index, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetUniformLocationPROC glGetUniformLocation = (glGetUniformLocationPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetUniformLocation(program, name_address);
|
||||
return __result;
|
||||
glBindAttribLocationPROC glBindAttribLocation = (glBindAttribLocationPROC)((intptr_t)function_pointer);
|
||||
glBindAttribLocation(program, index, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttachedShaders(JNIEnv *env, jclass clazz, jint program, jint maxCount, jobject count, jint count_position, jobject shaders, jint shaders_position, jlong function_pointer) {
|
||||
GLsizei *count_address = ((GLsizei *)safeGetBufferAddress(env, count)) + count_position;
|
||||
GLuint *shaders_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, shaders)) + shaders_position;
|
||||
glGetAttachedShadersPROC glGetAttachedShaders = (glGetAttachedShadersPROC)((intptr_t)function_pointer);
|
||||
glGetAttachedShaders(program, maxCount, count_address, shaders_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramInfoLog(JNIEnv *env, jclass clazz, jint program, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetActiveAttrib(JNIEnv *env, jclass clazz, jint program, jint index, jint maxLength, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetProgramInfoLogPROC glGetProgramInfoLog = (glGetProgramInfoLogPROC)((intptr_t)function_pointer);
|
||||
glGetProgramInfoLog(program, maxLength, length_address, infoLog_address);
|
||||
GLint *size_address = ((GLint *)(*env)->GetDirectBufferAddress(env, size)) + size_position;
|
||||
GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position;
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetActiveAttribPROC glGetActiveAttrib = (glGetActiveAttribPROC)((intptr_t)function_pointer);
|
||||
glGetActiveAttrib(program, index, maxLength, length_address, size_address, type_address, name_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderInfoLog(JNIEnv *env, jclass clazz, jint shader, jint maxLength, jobject length, jint length_position, jobject infoLog, jint infoLog_position, jlong function_pointer) {
|
||||
GLsizei *length_address = ((GLsizei *)safeGetBufferAddress(env, length)) + length_position;
|
||||
GLchar *infoLog_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, infoLog)) + infoLog_position;
|
||||
glGetShaderInfoLogPROC glGetShaderInfoLog = (glGetShaderInfoLogPROC)((intptr_t)function_pointer);
|
||||
glGetShaderInfoLog(shader, maxLength, length_address, infoLog_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetProgramiv(JNIEnv *env, jclass clazz, jint program, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetProgramivPROC glGetProgramiv = (glGetProgramivPROC)((intptr_t)function_pointer);
|
||||
glGetProgramiv(program, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglGetShaderiv(JNIEnv *env, jclass clazz, jint shader, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||
GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||
glGetShaderivPROC glGetShaderiv = (glGetShaderivPROC)((intptr_t)function_pointer);
|
||||
glGetShaderiv(shader, pname, params_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix4fvPROC glUniformMatrix4fv = (glUniformMatrix4fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix4fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix3fvPROC glUniformMatrix3fv = (glUniformMatrix3fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix3fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniformMatrix2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) {
|
||||
GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position;
|
||||
glUniformMatrix2fvPROC glUniformMatrix2fv = (glUniformMatrix2fvPROC)((intptr_t)function_pointer);
|
||||
glUniformMatrix2fv(location, count, transpose, matrices_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4ivPROC glUniform4iv = (glUniform4ivPROC)((intptr_t)function_pointer);
|
||||
glUniform4iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3ivPROC glUniform3iv = (glUniform3ivPROC)((intptr_t)function_pointer);
|
||||
glUniform3iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2ivPROC glUniform2iv = (glUniform2ivPROC)((intptr_t)function_pointer);
|
||||
glUniform2iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1iv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLint *values_address = ((GLint *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1ivPROC glUniform1iv = (glUniform1ivPROC)((intptr_t)function_pointer);
|
||||
glUniform1iv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform4fvPROC glUniform4fv = (glUniform4fvPROC)((intptr_t)function_pointer);
|
||||
glUniform4fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform3fvPROC glUniform3fv = (glUniform3fvPROC)((intptr_t)function_pointer);
|
||||
glUniform3fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform2fvPROC glUniform2fv = (glUniform2fvPROC)((intptr_t)function_pointer);
|
||||
glUniform2fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1fv(JNIEnv *env, jclass clazz, jint location, jint count, jobject values, jint values_position, jlong function_pointer) {
|
||||
GLfloat *values_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, values)) + values_position;
|
||||
glUniform1fvPROC glUniform1fv = (glUniform1fvPROC)((intptr_t)function_pointer);
|
||||
glUniform1fv(location, count, values_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
|
||||
glUniform4iPROC glUniform4i = (glUniform4iPROC)((intptr_t)function_pointer);
|
||||
glUniform4i(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
|
||||
glUniform3iPROC glUniform3i = (glUniform3iPROC)((intptr_t)function_pointer);
|
||||
glUniform3i(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2i(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
|
||||
glUniform2iPROC glUniform2i = (glUniform2iPROC)((intptr_t)function_pointer);
|
||||
glUniform2i(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1i(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
|
||||
glUniform1iPROC glUniform1i = (glUniform1iPROC)((intptr_t)function_pointer);
|
||||
glUniform1i(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform4f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3, jlong function_pointer) {
|
||||
glUniform4fPROC glUniform4f = (glUniform4fPROC)((intptr_t)function_pointer);
|
||||
glUniform4f(location, v0, v1, v2, v3);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform3f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jlong function_pointer) {
|
||||
glUniform3fPROC glUniform3f = (glUniform3fPROC)((intptr_t)function_pointer);
|
||||
glUniform3f(location, v0, v1, v2);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform2f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jfloat v1, jlong function_pointer) {
|
||||
glUniform2fPROC glUniform2f = (glUniform2fPROC)((intptr_t)function_pointer);
|
||||
glUniform2f(location, v0, v1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUniform1f(JNIEnv *env, jclass clazz, jint location, jfloat v0, jlong function_pointer) {
|
||||
glUniform1fPROC glUniform1f = (glUniform1fPROC)((intptr_t)function_pointer);
|
||||
glUniform1f(location, v0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glDeleteProgramPROC glDeleteProgram = (glDeleteProgramPROC)((intptr_t)function_pointer);
|
||||
glDeleteProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglValidateProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glValidateProgramPROC glValidateProgram = (glValidateProgramPROC)((intptr_t)function_pointer);
|
||||
glValidateProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglUseProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glUseProgramPROC glUseProgram = (glUseProgramPROC)((intptr_t)function_pointer);
|
||||
glUseProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglLinkProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glLinkProgramPROC glLinkProgram = (glLinkProgramPROC)((intptr_t)function_pointer);
|
||||
glLinkProgram(program);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDetachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
||||
glDetachShaderPROC glDetachShader = (glDetachShaderPROC)((intptr_t)function_pointer);
|
||||
glDetachShader(program, shader);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglAttachShader(JNIEnv *env, jclass clazz, jint program, jint shader, jlong function_pointer) {
|
||||
glAttachShaderPROC glAttachShader = (glAttachShaderPROC)((intptr_t)function_pointer);
|
||||
glAttachShader(program, shader);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsProgram(JNIEnv *env, jclass clazz, jint program, jlong function_pointer) {
|
||||
glIsProgramPROC glIsProgram = (glIsProgramPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsProgram(program);
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglGetAttribLocation(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) {
|
||||
const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position;
|
||||
glGetAttribLocationPROC glGetAttribLocation = (glGetAttribLocationPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glGetAttribLocation(program, name_address);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateProgram(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
||||
glCreateProgramPROC glCreateProgram = (glCreateProgramPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glCreateProgram();
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDrawBuffers(JNIEnv *env, jclass clazz, jint size, jobject buffers, jint buffers_position, jlong function_pointer) {
|
||||
const GLenum *buffers_address = ((const GLenum *)(*env)->GetDirectBufferAddress(env, buffers)) + buffers_position;
|
||||
glDrawBuffersPROC glDrawBuffers = (glDrawBuffersPROC)((intptr_t)function_pointer);
|
||||
glDrawBuffers(size, buffers_address);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglDeleteShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glDeleteShaderPROC glDeleteShader = (glDeleteShaderPROC)((intptr_t)function_pointer);
|
||||
glDeleteShader(shader);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilOpSeparate(JNIEnv *env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass, jlong function_pointer) {
|
||||
glStencilOpSeparatePROC glStencilOpSeparate = (glStencilOpSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilOpSeparate(face, sfail, dpfail, dppass);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglCompileShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glCompileShaderPROC glCompileShader = (glCompileShaderPROC)((intptr_t)function_pointer);
|
||||
glCompileShader(shader);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilFuncSeparate(JNIEnv *env, jclass clazz, jint face, jint func, jint ref, jint mask, jlong function_pointer) {
|
||||
glStencilFuncSeparatePROC glStencilFuncSeparate = (glStencilFuncSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilFuncSeparate(face, func, ref, mask);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL20_nglIsShader(JNIEnv *env, jclass clazz, jint shader, jlong function_pointer) {
|
||||
glIsShaderPROC glIsShader = (glIsShaderPROC)((intptr_t)function_pointer);
|
||||
GLboolean __result = glIsShader(shader);
|
||||
return __result;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglStencilMaskSeparate(JNIEnv *env, jclass clazz, jint face, jint mask, jlong function_pointer) {
|
||||
glStencilMaskSeparatePROC glStencilMaskSeparate = (glStencilMaskSeparatePROC)((intptr_t)function_pointer);
|
||||
glStencilMaskSeparate(face, mask);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL20_nglCreateShader(JNIEnv *env, jclass clazz, jint type, jlong function_pointer) {
|
||||
glCreateShaderPROC glCreateShader = (glCreateShaderPROC)((intptr_t)function_pointer);
|
||||
GLint __result = glCreateShader(type);
|
||||
return __result;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglShaderSource(JNIEnv *env, jclass clazz, jint shader, jint count, jobject string, jint string_position, jint length, jlong function_pointer) {
|
||||
const GLchar *string_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, string)) + string_position;
|
||||
glShaderSourcePROC glShaderSource = (glShaderSourcePROC)((intptr_t)function_pointer);
|
||||
glShaderSource(shader, count, &string_address, &length);
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglBlendEquationSeparate(JNIEnv *env, jclass clazz, jint modeRGB, jint modeAlpha, jlong function_pointer) {
|
||||
glBlendEquationSeparatePROC glBlendEquationSeparate = (glBlendEquationSeparatePROC)((intptr_t)function_pointer);
|
||||
glBlendEquationSeparate(modeRGB, modeAlpha);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue