mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Buffer checking code
This commit is contained in:
parent
ecc62164e8
commit
e2f13953d2
7 changed files with 91 additions and 78 deletions
|
|
@ -48,13 +48,13 @@ public class ARBTransposeMatrix {
|
|||
public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6;
|
||||
|
||||
public static void glLoadTransposeMatrixARB(FloatBuffer pfMtx) {
|
||||
BufferChecks.checkBuffer(pfMtx);
|
||||
BufferChecks.checkBuffer(pfMtx, 16);
|
||||
nglLoadTransposeMatrixfARB(pfMtx, pfMtx.position());
|
||||
}
|
||||
private static native void nglLoadTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset);
|
||||
|
||||
public static void glMultTransposeMatrixfARB(FloatBuffer pfMtx) {
|
||||
BufferChecks.checkBuffer(pfMtx);
|
||||
BufferChecks.checkBuffer(pfMtx, 16);
|
||||
nglMultTransposeMatrixfARB(pfMtx, pfMtx.position());
|
||||
}
|
||||
private static native void nglMultTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue