mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Split extgl functions into separate cpp files. Added some extensions
This commit is contained in:
parent
f874cd8fc3
commit
4510847487
51 changed files with 3013 additions and 4434 deletions
|
|
@ -114,176 +114,6 @@ public class ARBVertexProgram extends ARBProgram {
|
|||
|
||||
public static native void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w);
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib1ARB(int index, ShortBuffer values) {
|
||||
nglVertexAttrib1svARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib1svARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib1ARB(int index, FloatBuffer values) {
|
||||
nglVertexAttrib1fvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib1fvARB(int index, FloatBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib2ARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 2: "<values> must have 2 shorts available.";
|
||||
nglVertexAttrib2svARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib2svARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib2ARB(int index, FloatBuffer values) {
|
||||
assert values.remaining() >= 2: "<values> must have 2 floats available.";
|
||||
nglVertexAttrib2fvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib2fvARB(int index, FloatBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib3ARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 3: "<values> must have 3 shorts available.";
|
||||
nglVertexAttrib3svARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib3svARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib3ARB(int index, FloatBuffer values) {
|
||||
assert values.remaining() >= 3: "<values> must have 3 floats available.";
|
||||
nglVertexAttrib3fvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib3fvARB(int index, FloatBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4ARB(int index, ByteBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 bytes available.";
|
||||
nglVertexAttrib4bvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4bvARB(int index, ByteBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4ARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 shorts available.";
|
||||
nglVertexAttrib4svARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4svARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4ARB(int index, IntBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 ints available.";
|
||||
nglVertexAttrib4ivARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4ivARB(int index, IntBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4uARB(int index, ByteBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 bytes available.";
|
||||
nglVertexAttrib4ubvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4ubvARB(int index, ByteBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4uARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 shorts available.";
|
||||
nglVertexAttrib4usvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4usvARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4uARB(int index, IntBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 ints available.";
|
||||
nglVertexAttrib4uivARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4uivARB(int index, IntBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4ARB(int index, FloatBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 floats available.";
|
||||
nglVertexAttrib4fvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4fvARB(int index, FloatBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NARB(int index, ByteBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 bytes available.";
|
||||
nglVertexAttrib4NbvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NbvARB(int index, ByteBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 shorts available.";
|
||||
nglVertexAttrib4NsvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NsvARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NARB(int index, IntBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 ints available.";
|
||||
nglVertexAttrib4NivARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NivARB(int index, IntBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NuARB(int index, ByteBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 bytes available.";
|
||||
nglVertexAttrib4NubvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NubvARB(int index, ByteBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NuARB(int index, ShortBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 shorts available.";
|
||||
nglVertexAttrib4NusvARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NusvARB(int index, ShortBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
// ---------------------------
|
||||
public static void glVertexAttrib4NuARB(int index, IntBuffer values) {
|
||||
assert values.remaining() >= 4: "<values> must have 4 ints available.";
|
||||
nglVertexAttrib4NuivARB(index, values, values.position());
|
||||
}
|
||||
|
||||
private static native void nglVertexAttrib4NuivARB(int index, IntBuffer values, int valuesOffset);
|
||||
// ---------------------------
|
||||
|
||||
|
||||
public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled";
|
||||
nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue