Original Post
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;
}