mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
Implemented strong references in glVertexPointer and friends
This commit is contained in:
parent
665839e202
commit
87bf14c698
78 changed files with 1445 additions and 1058 deletions
|
|
@ -22,17 +22,17 @@ public final class ATIVertexArrayObject {
|
|||
static native void initNativeStubs() throws LWJGLException;
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer params) {
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectivATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectivATI(int id, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer params) {
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetVariantArrayObjectfvATI(id, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
|
@ -45,17 +45,17 @@ public final class ATIVertexArrayObject {
|
|||
private static native void nglVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, IntBuffer params) {
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectivATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetArrayObjectATI(int array, int pname, FloatBuffer params) {
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkBuffer(params, 4);
|
||||
nglGetArrayObjectfvATI(array, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
|
@ -75,43 +75,43 @@ public final class ATIVertexArrayObject {
|
|||
private static native void nglFreeObjectBufferATI(int buffer, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer params) {
|
||||
BufferChecks.checkDirect(params);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferivATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferivATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer params) {
|
||||
BufferChecks.checkDirect(params);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferfvATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(params);
|
||||
nglGetObjectBufferfvATI(buffer, pname, params, params.position(), function_pointer);
|
||||
}
|
||||
private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer params, int params_position, long function_pointer);
|
||||
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining()), pPointer, pPointer.position(), preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer);
|
||||
}
|
||||
public static void glUpdateObjectBufferATI(int buffer, int offset, ShortBuffer pPointer, int preserve) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 1), pPointer, pPointer.position() << 1, preserve, function_pointer);
|
||||
}
|
||||
private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_position, int preserve, long function_pointer);
|
||||
|
|
@ -131,30 +131,30 @@ public final class ATIVertexArrayObject {
|
|||
return __result;
|
||||
}
|
||||
public static int glNewObjectBufferATI(ByteBuffer pPointer, int usage) {
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
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);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, 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);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
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;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
BufferChecks.checkDirect(pPointer);
|
||||
int __result = nglNewObjectBufferATI((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, usage, function_pointer);
|
||||
return __result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue