replicant-frameworks_native/opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp
Jesse Hall 16f0392874 opengl: Add GLES31 and GLES31Ext class templates
Bug: 15028495
Change-Id: I276d04f029d441e092428fad72f09ca15e1d233a
2014-05-20 13:31:05 -07:00

16 lines
579 B
C++

/* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
static void
android_glBindVertexBuffer__IIJI
(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
if (sizeof(GLintptr) != sizeof(jlong) && (offset < LONG_MIN || offset > LONG_MAX)) {
jniThrowException(_env, "java/lang/IllegalArgumentException", "offset too large");
return;
}
glBindVertexBuffer(
(GLuint)bindingindex,
(GLuint)buffer,
(GLintptr)offset,
(GLsizei)stride
);
}