aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomCCode-gl4bc.c
blob: 9fbbba9e2f977d541c0015e3ff8e8ac6dcd47e41 (plain)
1
2
3
4
5
6
7
8
9
10
11

/*   Java->C glue code:
 *   Java package: jogamp.opengl.gl4.GL4bcImpl
 *    Java method: ByteBuffer newDirectByteBuffer(long addr, long capacity);
 *     C function: jobject newDirectByteBuffer(jlong addr, jlong capacity);
 */
JNIEXPORT jobject JNICALL
Java_jogamp_opengl_gl4_GL4bcImpl_newDirectByteBuffer(JNIEnv *env, jobject _unused, jlong addr, jlong capacity) {
  return (*env)->NewDirectByteBuffer(env, (void*) (intptr_t) addr, capacity);
}