• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
2 static void
android_glBindVertexBuffer__IIJI(JNIEnv * _env,jobject _this,jint bindingindex,jint buffer,jlong offset,jint stride)3 android_glBindVertexBuffer__IIJI
4   (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
5     if (sizeof(GLintptr) != sizeof(jlong) && (offset < LONG_MIN || offset > LONG_MAX)) {
6         jniThrowException(_env, "java/lang/IllegalArgumentException", "offset too large");
7         return;
8     }
9     glBindVertexBuffer(
10         (GLuint)bindingindex,
11         (GLuint)buffer,
12         (GLintptr)offset,
13         (GLsizei)stride
14     );
15 }
16