Skip to main content
gamedev.net
🔒 Locked

[java] Native code in Java

Started by BTierens Apr 17, 2004 at 10:29 AM 0 replies 400+ views
Original Post
BTierens
BTierens
Hi, How can I edit a Java int array with native code (I''ve made an array of the pixels of an OpenGL scene and I wish to copy these to a Java array): Java: public class OpenGLTest{ ... public int[] pixels; public native void someFunction(); ... } native code: ... JNIEXPORT void JNICALL Java_OpenGLTest_someFunction(JNIEnv *env, jobject obj) { //Here I wish to edit the pixelarray (int[] pixels) return; }

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.