mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
Implemented safe VBO indices (phew)
This commit is contained in:
parent
e6cca3fda8
commit
35a1538f82
24 changed files with 821 additions and 100 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue