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);
}
示例#2
0
ECode CCamera::RotateZ(
    /* [in] */ Float deg)
{
    Sk3DView* v = reinterpret_cast<Sk3DView*>(mNativeInstance);
    v->rotateZ(deg);
    return NOERROR;
}
示例#3
0
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);
}
示例#5
0
static void Camera_rotateZ(JNIEnv* env, jobject obj, float degrees) {
    Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID);
    v->rotateZ(SkFloatToScalar(degrees));
}