Renamed Sys.createARBVBOBuffer to Sys.createIndexBuffer
This commit is contained in:
parent
8b9931560f
commit
baa39830c0
|
@ -102,7 +102,7 @@ public final class Sys {
|
||||||
} finally {
|
} finally {
|
||||||
DEBUG = _debug;
|
DEBUG = _debug;
|
||||||
initialize();
|
initialize();
|
||||||
NULL = nGetNULLValue();
|
NULL = nGetNULLValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,27 +129,29 @@ public final class Sys {
|
||||||
setTime(0);
|
setTime(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the native NULL constant value
|
* Gets the native NULL constant value
|
||||||
*/
|
*/
|
||||||
private static native ByteBuffer nGetNULLValue();
|
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:
|
* Example:
|
||||||
*
|
*
|
||||||
* ByteBuffer b = Sys.createARBVBOBuffer(0);
|
* ByteBuffer b = Sys.createIndexBuffer(0);
|
||||||
* gl.glVertexPointer(3, GL.GL_INT, 0, b);
|
* gl.glVertexPointer(3, GL.GL_INT, 0, b);
|
||||||
*
|
*
|
||||||
* is equivalent to the C call:
|
* is equivalent to the C call:
|
||||||
*
|
*
|
||||||
* glVertexPointer(3, GL.GL_INT, 0, 0);
|
* glVertexPointer(3, GL.GL_INT, 0, 0);
|
||||||
*
|
*
|
||||||
* @param index The VBO index to represent
|
* @param index The index to represent
|
||||||
* @return a ByteBuffer representing the VBO index
|
* @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.
|
* Obtains the number of ticks that the hires timer does in a second.
|
||||||
|
|
|
@ -31,10 +31,10 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_nGetNULLValue
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Sys
|
* Class: org_lwjgl_Sys
|
||||||
* Method: createARBVBOBuffer
|
* Method: createIndexBuffer
|
||||||
* Signature: (I)Ljava/nio/ByteBuffer;
|
* Signature: (I)Ljava/nio/ByteBuffer;
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createARBVBOBuffer
|
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createIndexBuffer
|
||||||
(JNIEnv *, jclass, jint);
|
(JNIEnv *, jclass, jint);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -61,13 +61,13 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_nGetNULLValue
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Sys
|
* Class: org_lwjgl_Sys
|
||||||
* Method: createARBVBOBuffer
|
* Method: createIndexBuffer
|
||||||
* Signature: (I)Ljava/nio/ByteBuffer;
|
* Signature: (I)Ljava/nio/ByteBuffer;
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createARBVBOBuffer
|
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createIndexBuffer
|
||||||
(JNIEnv *env, jclass clazz, jint address)
|
(JNIEnv *env, jclass clazz, jint index)
|
||||||
{
|
{
|
||||||
return env->NewDirectByteBuffer((void *)address, 0);
|
return env->NewDirectByteBuffer((void *)index, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -62,13 +62,13 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_nGetNULLValue
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Sys
|
* Class: org_lwjgl_Sys
|
||||||
* Method: createARBVBOBuffer
|
* Method: createIndexBuffer
|
||||||
* Signature: (I)Ljava/nio/ByteBuffer;
|
* Signature: (I)Ljava/nio/ByteBuffer;
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createARBVBOBuffer
|
JNIEXPORT jobject JNICALL Java_org_lwjgl_Sys_createIndexBuffer
|
||||||
(JNIEnv *env, jclass clazz, jint address)
|
(JNIEnv *env, jclass clazz, jint index)
|
||||||
{
|
{
|
||||||
return env->NewDirectByteBuffer((void *)address, 0);
|
return env->NewDirectByteBuffer((void *)index, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue