mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Win32: fixed compilation
This commit is contained in:
parent
ef7fea20ab
commit
5d53187baa
84 changed files with 1044 additions and 1097 deletions
|
|
@ -203,13 +203,6 @@ public final class GL20 {
|
|||
}
|
||||
private static native void nglEnableVertexAttribArray(int index, long function_pointer);
|
||||
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
@ -224,6 +217,13 @@ public final class GL20 {
|
|||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer;
|
||||
BufferChecks.checkFunctionAddress(function_pointer);
|
||||
nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer);
|
||||
}
|
||||
public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) {
|
||||
GLBufferChecks.ensureArrayVBOdisabled();
|
||||
BufferChecks.checkDirect(buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue