Added glMultiDrawArrays and glMultiDrawElements

This commit is contained in:
Elias Naur 2003-02-17 15:13:41 +00:00
parent 55ac8dd74c
commit c84ab8669d
3 changed files with 48 additions and 0 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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