mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Win32: fixed compilation
This commit is contained in:
parent
ef7fea20ab
commit
5d53187baa
84 changed files with 1044 additions and 1097 deletions
|
|
@ -206,8 +206,6 @@ public class GeneratorVisitor extends SimpleDeclarationVisitor {
|
|||
native_writer.println("/* MACHINE GENERATED FILE, DO NOT EDIT */");
|
||||
native_writer.println();
|
||||
native_writer.println("#include <jni.h>");
|
||||
if (context_specific)
|
||||
native_writer.println("#include <inttypes.h>");
|
||||
type_map.printNativeIncludes(native_writer);
|
||||
native_writer.println();
|
||||
TypedefsGenerator.generateNativeTypedefs(type_map, native_writer, d.getMethods());
|
||||
|
|
|
|||
|
|
@ -581,9 +581,9 @@ public final class AL10 {
|
|||
* @param data location of data
|
||||
* @param freq frequency of data
|
||||
*/
|
||||
public static void alBufferData(int buffer, int format, IntBuffer data, int freq) {
|
||||
public static void alBufferData(int buffer, int format, ShortBuffer data, int freq) {
|
||||
BufferChecks.checkDirect(data);
|
||||
nalBufferData(buffer, format, data, data.position() << 2, (data.remaining() << 2), freq);
|
||||
nalBufferData(buffer, format, data, data.position() << 1, (data.remaining() << 1), freq);
|
||||
Util.checkALError();
|
||||
}
|
||||
/**
|
||||
|
|
@ -612,9 +612,9 @@ public final class AL10 {
|
|||
* @param data location of data
|
||||
* @param freq frequency of data
|
||||
*/
|
||||
public static void alBufferData(int buffer, int format, ShortBuffer data, int freq) {
|
||||
public static void alBufferData(int buffer, int format, IntBuffer data, int freq) {
|
||||
BufferChecks.checkDirect(data);
|
||||
nalBufferData(buffer, format, data, data.position() << 1, (data.remaining() << 1), freq);
|
||||
nalBufferData(buffer, format, data, data.position() << 2, (data.remaining() << 2), freq);
|
||||
Util.checkALError();
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -72,11 +72,11 @@ public class ARBBufferObject {
|
|||
}
|
||||
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) {
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -84,25 +84,25 @@ public class ARBBufferObject {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), 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) {
|
||||
public static void glBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -110,18 +110,18 @@ public class ARBBufferObject {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, FloatBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubDataARB(int target, int offset, ByteBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubDataARB(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glBufferDataARB(int target, int size, int usage) {
|
||||
|
|
@ -129,11 +129,11 @@ public class ARBBufferObject {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, size, null, 0, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferDataARB(int target, ByteBuffer data, int usage) {
|
||||
public static void glBufferDataARB(int target, ShortBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining()), data, data.position(), usage, function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferDataARB(int target, IntBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -141,18 +141,18 @@ public class ARBBufferObject {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferDataARB(int target, ShortBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferDataARB(int target, FloatBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferDataARB(int target, ByteBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferDataARB(target, (data.remaining()), data, data.position(), usage, function_pointer);
|
||||
}
|
||||
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) {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -47,13 +47,6 @@ public final class ARBMatrixPalette {
|
|||
}
|
||||
private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_position, long function_pointer);
|
||||
|
||||
public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_BYTE, stride, pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glMatrixIndexPointerARB(int size, int stride, IntBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
@ -61,6 +54,13 @@ public final class ARBMatrixPalette {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_INT, stride, pPointer, pPointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_BYTE, stride, pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glMatrixIndexPointerARB(int size, int stride, ShortBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ public final class ARBTextureCompression {
|
|||
|
||||
static native void initNativeStubs() throws LWJGLException;
|
||||
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position(), function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
|
|
@ -38,13 +38,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, FloatBuffer pImg) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
|
|
@ -52,6 +45,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(pImg);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImageARB(target, lod, pImg, pImg.position(), 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) {
|
||||
GLBufferChecks.ensurePackPBOenabled();
|
||||
|
|
@ -61,12 +61,12 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
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) {
|
||||
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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 1, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -75,13 +75,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 1, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -89,6 +82,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -98,12 +98,12 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
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) {
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -112,13 +112,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -126,6 +119,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -135,12 +135,12 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
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) {
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -149,13 +149,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -163,6 +156,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -172,12 +172,12 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
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) {
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -186,13 +186,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -200,6 +193,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -209,12 +209,12 @@ public final class ARBTextureCompression {
|
|||
}
|
||||
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 glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) {
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -223,13 +223,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -237,6 +230,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position(), function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer pData, int pData_position, long function_pointer);
|
||||
public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, int pData_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -246,12 +246,12 @@ 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) {
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position(), function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
|
|
@ -260,13 +260,6 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
|
|
@ -274,6 +267,13 @@ public final class ARBTextureCompression {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(pData);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
|
|||
|
|
@ -62,13 +62,6 @@ public final class ARBVertexBlend {
|
|||
}
|
||||
private static native void nglVertexBlendARB(int count, long function_pointer);
|
||||
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, IntBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
@ -83,6 +76,13 @@ public final class ARBVertexBlend {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWeightPointerARB(size, GL11.GL_FLOAT, stride, pPointer, pPointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ShortBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
|
|||
|
|
@ -67,13 +67,6 @@ public final class ARBVertexProgram extends ARBProgram {
|
|||
}
|
||||
private static native void nglEnableVertexAttribArrayARB(int index, long function_pointer);
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position(), function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
@ -88,6 +81,13 @@ public final class ARBVertexProgram extends ARBProgram {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerARB(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position(), function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
|
|||
|
|
@ -30,6 +30,13 @@ public final class ATIElementArray {
|
|||
}
|
||||
private static native void nglDrawElementArrayATI(int mode, int count, long function_pointer);
|
||||
|
||||
public static void glElementPointerATI(ShortBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglElementPointerATI(GL11.GL_UNSIGNED_SHORT, pPointer, pPointer.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glElementPointerATI(IntBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
@ -44,13 +51,6 @@ public final class ATIElementArray {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglElementPointerATI(GL11.GL_UNSIGNED_BYTE, pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glElementPointerATI(ShortBuffer pPointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglElementPointerATI(GL11.GL_UNSIGNED_SHORT, pPointer, pPointer.position() << 1, function_pointer);
|
||||
}
|
||||
private static native void nglElementPointerATI(int type, Buffer pPointer, int pPointer_position, long function_pointer);
|
||||
public static void glElementPointerATI(int type, int pPointer_buffer_offset) {
|
||||
GLBufferChecks.ensureArrayVBOenabled();
|
||||
|
|
|
|||
|
|
@ -90,30 +90,30 @@ public final class ATIVertexArrayObject {
|
|||
}
|
||||
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, IntBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 1), pPointer, pPointer.position() << 1, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining()), pPointer, pPointer.position(), preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, 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) {
|
||||
|
|
@ -130,20 +130,6 @@ public final class ATIVertexArrayObject {
|
|||
int __result = nglNewObjectBufferATI(size, null, 0, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(IntBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(FloatBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(ShortBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
|
|
@ -151,6 +137,13 @@ public final class ATIVertexArrayObject {
|
|||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(IntBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(ByteBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
|
|
@ -158,5 +151,12 @@ public final class ATIVertexArrayObject {
|
|||
int __result = nglNewObjectBufferATI((pPointer.remaining()), pPointer, pPointer.position(), usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(FloatBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
private static native int nglNewObjectBufferATI(int size, Buffer pPointer, int pPointer_position, int usage, long function_pointer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,13 +15,6 @@ public final class EXTDrawRangeElements {
|
|||
|
||||
static native void initNativeStubs() throws LWJGLException;
|
||||
|
||||
public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_SHORT, pIndices, pIndices.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElementsEXT(int mode, int start, int end, IntBuffer pIndices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
|
|
@ -29,6 +22,13 @@ public final class EXTDrawRangeElements {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_INT, pIndices, pIndices.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_SHORT, pIndices, pIndices.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(pIndices);
|
||||
|
|
|
|||
|
|
@ -50,12 +50,6 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
|
|
@ -68,6 +62,12 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetColorTableEXT(int target, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglGetColorTableEXT(int target, 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) {
|
||||
|
|
@ -76,12 +76,6 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorSubTableEXT(target, start, count, format, type, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glColorSubTableEXT(int target, int start, int count, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, count, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorSubTableEXT(int target, int start, int count, int format, int type, ShortBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, count, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer;
|
||||
|
|
@ -94,6 +88,12 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorSubTableEXT(int target, int start, int count, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, count, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
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) {
|
||||
|
|
@ -102,12 +102,6 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ShortBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
|
|
@ -120,5 +114,11 @@ public final class EXTPalettedTexture {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, IntBuffer data) {
|
||||
BufferChecks.checkBuffer(data, GLBufferChecks.calculateImageStorage(data, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, 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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,13 +265,6 @@ public final class EXTVertexShader {
|
|||
}
|
||||
private static native void nglEnableVariantClientStateEXT(int id, long function_pointer);
|
||||
|
||||
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pAddr);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pAddr);
|
||||
|
|
@ -279,6 +272,13 @@ public final class EXTVertexShader {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pAddr, pAddr.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pAddr);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pAddr);
|
||||
|
|
@ -358,18 +358,18 @@ public final class EXTVertexShader {
|
|||
}
|
||||
private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer;
|
||||
|
|
@ -384,18 +384,18 @@ public final class EXTVertexShader {
|
|||
}
|
||||
private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer);
|
||||
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glSetInvariantEXT(int id, FloatBuffer pAddr) {
|
||||
BufferChecks.checkBuffer(pAddr, 4);
|
||||
long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer;
|
||||
|
|
|
|||
|
|
@ -700,20 +700,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglTexParameterf(int target, int pname, float param, long function_pointer);
|
||||
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, FloatBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
|
|
@ -728,6 +714,20 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -737,20 +737,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
||||
|
|
@ -765,6 +751,20 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -774,22 +774,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, FloatBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
|
|
@ -806,6 +790,22 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
private static native void nglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -815,22 +815,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int format, int type, int pixels_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
|
|
@ -847,6 +831,22 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage1DStorage(pixels, format, type, width, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
private static native void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -905,13 +905,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglVertex2f(float x, float y, long function_pointer);
|
||||
|
||||
public static void glVertexPointer(int size, int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexPointer(size, GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexPointer(int size, int stride, FloatBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
|
|
@ -919,6 +912,13 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexPointer(int size, int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexPointer(size, GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglVertexPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
|
||||
public static void glVertexPointer(int size, int type, int stride, int pointer_buffer_offset) {
|
||||
GLBufferChecks.ensureArrayVBOenabled();
|
||||
|
|
@ -1042,6 +1042,13 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglReadBuffer(int mode, long function_pointer);
|
||||
|
||||
public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglReadPixels(x, y, width, height, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glReadPixels(int x, int y, int width, int height, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
|
|
@ -1056,13 +1063,6 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglReadPixels(x, y, width, height, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
private static native void nglReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glReadPixels(int x, int y, int width, int height, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensurePackPBOenabled();
|
||||
|
|
@ -1173,13 +1173,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglNormal3b(byte nx, byte ny, byte nz, long function_pointer);
|
||||
|
||||
public static void glNormalPointer(int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalPointer(GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glNormalPointer(int stride, FloatBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
|
|
@ -1194,6 +1187,13 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalPointer(GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer);
|
||||
}
|
||||
public static void glNormalPointer(int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglNormalPointer(GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglNormalPointer(int type, int stride, Buffer pointer, int pointer_position, long function_pointer);
|
||||
public static void glNormalPointer(int type, int stride, int pointer_buffer_offset) {
|
||||
GLBufferChecks.ensureArrayVBOenabled();
|
||||
|
|
@ -1586,6 +1586,13 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglGetTexGeniv(int coord, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetTexImage(target, level, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
||||
|
|
@ -1600,13 +1607,6 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, 1, 1, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetTexImage(target, level, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glGetTexImage(int target, int level, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensurePackPBOenabled();
|
||||
|
|
@ -1662,20 +1662,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglInitNames(long function_pointer);
|
||||
|
||||
public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInterleavedArrays(format, stride, pointer, pointer.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
|
|
@ -1690,6 +1676,20 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInterleavedArrays(format, stride, pointer, pointer.position(), function_pointer);
|
||||
}
|
||||
public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInterleavedArrays(format, stride, pointer, pointer.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(pointer);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglInterleavedArrays(int format, int stride, Buffer pointer, int pointer_position, long function_pointer);
|
||||
public static void glInterleavedArrays(int format, int stride, int pointer_buffer_offset) {
|
||||
GLBufferChecks.ensureArrayVBOenabled();
|
||||
|
|
@ -1976,13 +1976,6 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglDrawBuffer(int mode, long function_pointer);
|
||||
|
||||
public static void glDrawElements(int mode, IntBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawElements(int mode, ShortBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
|
|
@ -1990,6 +1983,13 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glDrawElements(int mode, IntBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawElements(int mode, ByteBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
|
|
@ -2006,6 +2006,13 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglDrawElementsBO(int mode, int count, int type, int indices_buffer_offset, long function_pointer);
|
||||
|
||||
public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawPixels(width, height, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
|
|
@ -2020,13 +2027,6 @@ public final class GL11 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawPixels(width, height, format, type, pixels, pixels.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, 1));
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawPixels(width, height, format, type, pixels, pixels.position(), function_pointer);
|
||||
}
|
||||
private static native void nglDrawPixels(int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer);
|
||||
public static void glDrawPixels(int width, int height, int format, int type, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -2352,18 +2352,18 @@ public final class GL11 {
|
|||
}
|
||||
private static native void nglCallList(int list, long function_pointer);
|
||||
|
||||
public static void glCallLists(IntBuffer lists) {
|
||||
BufferChecks.checkDirect(lists);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_INT, lists, lists.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCallLists(ShortBuffer lists) {
|
||||
BufferChecks.checkDirect(lists);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_SHORT, lists, lists.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCallLists(IntBuffer lists) {
|
||||
BufferChecks.checkDirect(lists);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_INT, lists, lists.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCallLists(ByteBuffer lists) {
|
||||
BufferChecks.checkDirect(lists);
|
||||
long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer;
|
||||
|
|
|
|||
|
|
@ -57,20 +57,6 @@ public final class GL12 {
|
|||
}
|
||||
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, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
|
|
@ -85,6 +71,20 @@ public final class GL12 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position(), 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateImageStorage(pixels, format, type, width, height, depth));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -94,22 +94,6 @@ public final class GL12 {
|
|||
}
|
||||
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 glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, FloatBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
|
|
@ -126,6 +110,22 @@ public final class GL12 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer);
|
||||
}
|
||||
public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
if (pixels != null)
|
||||
BufferChecks.checkBuffer(pixels, GLBufferChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border));
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer);
|
||||
}
|
||||
private static native void nglTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, Buffer pixels, int pixels_position, 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, int pixels_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -135,13 +135,6 @@ 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, IntBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
|
|
@ -149,6 +142,13 @@ public final class GL12 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) {
|
||||
GLBufferChecks.ensureElementVBOdisabled();
|
||||
BufferChecks.checkDirect(indices);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,13 @@ public final class GL13 {
|
|||
}
|
||||
private static native void nglMultiTexCoord1f(int target, float s, long function_pointer);
|
||||
|
||||
public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position(), function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, ShortBuffer img) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
|
|
@ -174,13 +181,6 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) {
|
||||
GLBufferChecks.ensurePackPBOdisabled();
|
||||
BufferChecks.checkDirect(img);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetCompressedTexImage(target, lod, img, img.position(), 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) {
|
||||
GLBufferChecks.ensurePackPBOenabled();
|
||||
|
|
@ -190,20 +190,6 @@ public final class GL13 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -218,6 +204,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -227,20 +227,6 @@ public final class GL13 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -255,6 +241,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -264,20 +264,6 @@ public final class GL13 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -292,6 +278,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -301,20 +301,6 @@ public final class GL13 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -329,6 +315,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -338,20 +338,6 @@ public final class GL13 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -366,6 +352,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
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, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, 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) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
@ -375,20 +375,6 @@ public final class GL13 {
|
|||
}
|
||||
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 glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -403,6 +389,20 @@ public final class GL13 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer data) {
|
||||
GLBufferChecks.ensureUnpackPBOdisabled();
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, Buffer data, int data_position, long function_pointer);
|
||||
public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, int data_buffer_offset) {
|
||||
GLBufferChecks.ensureUnpackPBOenabled();
|
||||
|
|
|
|||
|
|
@ -158,18 +158,6 @@ public final class GL15 {
|
|||
}
|
||||
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, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
|
|
@ -182,20 +170,20 @@ public final class GL15 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glGetBufferSubData(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, 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, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, FloatBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
|
|
@ -208,6 +196,18 @@ public final class GL15 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glBufferSubData(int target, int offset, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglBufferSubData(int target, int offset, int size, Buffer data, int data_position, long function_pointer);
|
||||
|
||||
public static void glBufferData(int target, int size, int usage) {
|
||||
|
|
@ -215,18 +215,6 @@ public final class GL15 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, size, null, 0, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferData(int target, ShortBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferData(int target, IntBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferData(int target, FloatBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
|
|
@ -239,6 +227,18 @@ public final class GL15 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, (data.remaining()), data, data.position(), usage, function_pointer);
|
||||
}
|
||||
public static void glBufferData(int target, ShortBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer);
|
||||
}
|
||||
public static void glBufferData(int target, IntBuffer data, int usage) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglBufferData(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer);
|
||||
}
|
||||
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) {
|
||||
|
|
|
|||
|
|
@ -203,13 +203,6 @@ public final class GL20 {
|
|||
}
|
||||
private static native void nglEnableVertexAttribArray(int index, long function_pointer);
|
||||
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
@ -224,6 +217,13 @@ public final class GL20 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@ public final class NVPixelDataRange {
|
|||
}
|
||||
private static native void nglFlushPixelDataRangeNV(int target, long function_pointer);
|
||||
|
||||
public static void glPixelDataRangeNV(int target, IntBuffer data) {
|
||||
public static void glPixelDataRangeNV(int target, ShortBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPixelDataRangeNV(target, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
nglPixelDataRangeNV(target, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glPixelDataRangeNV(int target, ByteBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
|
|
@ -38,13 +38,13 @@ public final class NVPixelDataRange {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPixelDataRangeNV(target, (data.remaining()), data, data.position(), function_pointer);
|
||||
}
|
||||
public static void glPixelDataRangeNV(int target, ShortBuffer data) {
|
||||
public static void glPixelDataRangeNV(int target, FloatBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglPixelDataRangeNV(target, (data.remaining() << 1), data, data.position() << 1, function_pointer);
|
||||
nglPixelDataRangeNV(target, (data.remaining() << 2), data, data.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glPixelDataRangeNV(int target, FloatBuffer data) {
|
||||
public static void glPixelDataRangeNV(int target, IntBuffer data) {
|
||||
BufferChecks.checkDirect(data);
|
||||
long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ public final class NVVertexArrayRange {
|
|||
}
|
||||
private static native void nglFlushVertexArrayRangeNV(long function_pointer);
|
||||
|
||||
public static void glVertexArrayRangeNV(IntBuffer pPointer) {
|
||||
public static void glVertexArrayRangeNV(ShortBuffer pPointer) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexArrayRangeNV((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, function_pointer);
|
||||
nglVertexArrayRangeNV((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glVertexArrayRangeNV(ByteBuffer pPointer) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
|
|
@ -53,13 +53,13 @@ public final class NVVertexArrayRange {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexArrayRangeNV((pPointer.remaining()), pPointer, pPointer.position(), function_pointer);
|
||||
}
|
||||
public static void glVertexArrayRangeNV(ShortBuffer pPointer) {
|
||||
public static void glVertexArrayRangeNV(FloatBuffer pPointer) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexArrayRangeNV((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, function_pointer);
|
||||
nglVertexArrayRangeNV((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexArrayRangeNV(FloatBuffer pPointer) {
|
||||
public static void glVertexArrayRangeNV(IntBuffer pPointer) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
|
|
|
|||
|
|
@ -225,13 +225,6 @@ public final class NVVertexProgram extends NVProgram {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 1, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, ByteBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
@ -246,6 +239,13 @@ public final class NVVertexProgram extends NVProgram {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
private static native void nglVertexAttribPointerNV(int index, int size, int type, int stride, Buffer buffer, int buffer_position, long function_pointer);
|
||||
public static void glVertexAttribPointerNV(int index, int size, int type, int stride, int buffer_buffer_offset) {
|
||||
GLBufferChecks.ensureArrayVBOenabled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue