File: gl-impl-CustomCCode-gles3.c

package info (click to toggle)
libjogl2-java 2.3.2%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 43,876 kB
  • sloc: java: 218,529; ansic: 75,727; xml: 6,703; objc: 3,139; sh: 2,736; cpp: 139; awk: 46; makefile: 29
file content (11 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11

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