Added glMultiDrawArrays and glMultiDrawElements
This commit is contained in:
parent
55ac8dd74c
commit
c84ab8669d
|
@ -495,7 +495,18 @@ public class CoreGL extends BaseGL implements CoreGLConstants {
|
|||
public native void stencilOp(int fail, int zfail, int zpass);
|
||||
public native void stencilMask(int mask);
|
||||
public native void viewport(int x, int y, int width, int height);
|
||||
public native void multiDrawArrays(
|
||||
int mode,
|
||||
int piFirst,
|
||||
int piCount,
|
||||
int primcount);
|
||||
|
||||
public native void multiDrawElements(
|
||||
int mode,
|
||||
int piCount,
|
||||
int type,
|
||||
int pIndices,
|
||||
int primcount);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -3885,6 +3885,27 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getCompressedTexImage
|
|||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL
|
||||
* Method: multiDrawArrays
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiDrawArrays
|
||||
(JNIEnv *, jobject, jint mode, jint first, jint count, jint primcount) {
|
||||
glMultiDrawArrays(mode, (GLint *)first, (GLsizei *)count, primcount);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL
|
||||
* Method: multiDrawElements
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiDrawElements
|
||||
(JNIEnv *, jobject, jint mode, jint count, jint type, jint indices, jint primcount) {
|
||||
glMultiDrawElements(mode, (GLsizei *)count, type, (const void **)indices, primcount);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL
|
||||
* Method: multiTexCoord1d
|
||||
|
|
|
@ -3346,6 +3346,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_stencilMask
|
|||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_viewport
|
||||
(JNIEnv *, jobject, jint, jint, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL
|
||||
* Method: multiDrawArrays
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiDrawArrays
|
||||
(JNIEnv *, jobject, jint, jint, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL
|
||||
* Method: multiDrawElements
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiDrawElements
|
||||
(JNIEnv *, jobject, jint, jint, jint, jint, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue