From: Elias N. <eli...@us...> - 2003-07-29 11:09:47
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory sc8-pr-cvs1:/tmp/cvs-serv11343/src/java/org/lwjgl Modified Files: Sys.java Log Message: Renamed Sys.createARBVBOBuffer to Sys.createIndexBuffer Index: Sys.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- Sys.java 17 Jul 2003 09:16:50 -0000 1.22 +++ Sys.java 29 Jul 2003 11:09:44 -0000 1.23 @@ -102,7 +102,7 @@ } finally { DEBUG = _debug; initialize(); - NULL = nGetNULLValue(); + NULL = nGetNULLValue(); } } @@ -129,27 +129,29 @@ setTime(0); } - /** - * Gets the native NULL constant value - */ - private static native ByteBuffer nGetNULLValue(); + /** + * Gets the native NULL constant value + */ + private static native ByteBuffer nGetNULLValue(); /** - * Create a buffer representing an index into a ARB_vertex_buffer_object buffer. + * 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.createARBVBOBuffer(0); + * 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 VBO index to represent - * @return a ByteBuffer representing the VBO index + * @param index The index to represent + * @return a ByteBuffer representing the index */ - public static native ByteBuffer createARBVBOBuffer(int index); + public static native ByteBuffer createIndexBuffer(int index); /** * Obtains the number of ticks that the hires timer does in a second. |