mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
Added createARBVBOBuffer to enable VBO indexing with Buffers
This commit is contained in:
parent
926121d83f
commit
794c802253
5 changed files with 50 additions and 3 deletions
|
|
@ -127,13 +127,30 @@ public final class Sys {
|
|||
private static void initialize() {
|
||||
System.loadLibrary(LIBRARY_NAME);
|
||||
setTime(0);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the native NULL constant value
|
||||
*/
|
||||
private static native ByteBuffer nGetNULLValue();
|
||||
|
||||
/**
|
||||
* Create a buffer representing an index into a ARB_vertex_buffer_object buffer.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ByteBuffer b = Sys.createARBVBOBuffer(0);
|
||||
* gl.glVertexPointer(3, GL.GL_INT, 0, b);
|
||||
*
|
||||
* is equivalent to the C call:
|
||||
*
|
||||
* glVertexPointer(3, GL.GL_INT, 0, 0);
|
||||
*
|
||||
* @param index The VBO index to represent
|
||||
* @return a ByteBuffer representing the VBO index
|
||||
*/
|
||||
public static native ByteBuffer createARBVBOBuffer(int index);
|
||||
|
||||
/**
|
||||
* Obtains the number of ticks that the hires timer does in a second.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue