Added createARBVBOBuffer to enable VBO indexing with Buffers

This commit is contained in:
Elias Naur 2003-07-17 09:16:51 +00:00
parent 926121d83f
commit 794c802253
5 changed files with 50 additions and 3 deletions

View file

@ -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.
*