static void Camera_rotate(JNIEnv* env, jobject obj, jfloat x, jfloat y, jfloat z) { jlong viewHandle = env->GetLongField(obj, gNativeInstanceFieldID); Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); v->rotateX(x); v->rotateY(y); v->rotateZ(z); }
ECode CCamera::RotateZ( /* [in] */ Float deg) { Sk3DView* v = reinterpret_cast<Sk3DView*>(mNativeInstance); v->rotateZ(deg); return NOERROR; }
ECode CCamera::Rotate( /* [in] */ Float x, /* [in] */ Float y, /* [in] */ Float z) { Sk3DView* v = reinterpret_cast<Sk3DView*>(mNativeInstance); v->rotateX(x); v->rotateY(y); v->rotateZ(z); return NOERROR; }
static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { jlong viewHandle = env->GetLongField(obj, gNativeInstanceFieldID); Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); v->rotateZ(degrees); }
static void Camera_rotateZ(JNIEnv* env, jobject obj, float degrees) { Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); v->rotateZ(SkFloatToScalar(degrees)); }