static void Camera_save(JNIEnv* env, jobject obj) { jlong viewHandle = env->GetLongField(obj, gNativeInstanceFieldID); Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); v->save(); }
static void Camera_save(JNIEnv* env, jobject obj) { Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); v->save(); }