Implemented safe VBO indices (phew)

This commit is contained in:
Elias Naur 2003-08-04 23:00:49 +00:00
parent e6cca3fda8
commit 35a1538f82
24 changed files with 821 additions and 100 deletions

View file

@ -128,25 +128,6 @@ public final class Sys {
setTime(0);
}
/**
* Create a buffer representing an integer index. Use it with functions that in C can take
* both a pointer and an integer argument, like the ARB_vertex_buffer_object extension specifies
* gl*Pointer to do (among others).
*
* Example:
*
* ByteBuffer b = Sys.createIndexBuffer(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 index to represent
* @return a ByteBuffer representing the index
*/
public static native ByteBuffer createIndexBuffer(int index);
/**
* Obtains the number of ticks that the hires timer does in a second.
*