mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
Buffer checking code
This commit is contained in:
parent
fd56dd232a
commit
061e1a76d1
51 changed files with 499 additions and 655 deletions
|
|
@ -89,7 +89,7 @@ public class ARBVertexBlend {
|
|||
public static final int GL_MODELVIEW29_ARB = 0x873D;
|
||||
public static final int GL_MODELVIEW30_ARB = 0x873E;
|
||||
public static final int GL_MODELVIEW31_ARB = 0x873F;
|
||||
|
||||
|
||||
public static void glWeightARB(ByteBuffer pWeights) {
|
||||
nglWeightbvARB(pWeights.remaining(), pWeights, pWeights.position());
|
||||
}
|
||||
|
|
@ -126,24 +126,24 @@ public class ARBVertexBlend {
|
|||
private static native void nglWeightusvARB(int size, ShortBuffer psWeights, int psWeights_offset);
|
||||
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) {
|
||||
BufferChecks.checkVBOdisabled();
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pPointer, pPointer.position());
|
||||
}
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, ShortBuffer pPointer) {
|
||||
BufferChecks.checkVBOdisabled();
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pPointer, pPointer.position()<<1);
|
||||
}
|
||||
public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) {
|
||||
BufferChecks.checkVBOdisabled();
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
nglWeightPointerARB(size, GL11.GL_FLOAT, stride, pPointer, pPointer.position()<<2);
|
||||
}
|
||||
public static void glWeightPointerARB(int size, boolean unsigned, int stride, IntBuffer pPointer) {
|
||||
BufferChecks.checkVBOdisabled();
|
||||
BufferChecks.ensureVBOdisabled();
|
||||
nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pPointer, pPointer.position()<<2);
|
||||
}
|
||||
private static native void nglWeightPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_offset);
|
||||
public static void glWeightPointerARB(int size, int type, int stride, int buffer_offset) {
|
||||
BufferChecks.checkVBOenabled();
|
||||
BufferChecks.ensureVBOenabled();
|
||||
nglWeightPointerARBVBO(size, type, stride, buffer_offset);
|
||||
}
|
||||
private static native void nglWeightPointerARBVBO(int size, int type, int stride, int buffer_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue