mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
Buffer checking code
This commit is contained in:
parent
fd56dd232a
commit
061e1a76d1
51 changed files with 499 additions and 655 deletions
|
|
@ -47,17 +47,11 @@ public class ARBPointParameters {
|
|||
public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128;
|
||||
public static final int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129;
|
||||
|
||||
static {
|
||||
BufferChecks.putGetMap(GL_POINT_SIZE_MIN_ARB, 1);
|
||||
BufferChecks.putGetMap(GL_POINT_SIZE_MAX_ARB, 1);
|
||||
BufferChecks.putGetMap(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 1);
|
||||
BufferChecks.putGetMap(GL_POINT_DISTANCE_ATTENUATION_ARB, 3);
|
||||
}
|
||||
|
||||
|
||||
public static native void glPointParameterfARB(int pname, float param);
|
||||
|
||||
public static void glPointParameterARB(int pname, FloatBuffer pfParams) {
|
||||
// TODO: check buffer size
|
||||
BufferChecks.checkBuffer(pfParams);
|
||||
nglPointParameterfvARB(pname, pfParams, pfParams.position());
|
||||
}
|
||||
private static native void nglPointParameterfvARB(int pname, FloatBuffer pfParams, int pfParams_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue