Exemple #1
0
ECode CCamera::GetLocationZ(
    /* [out] */ Float* locationZ)
{
    VALIDATE_NOT_NULL(locationZ);
    Sk3DView* v = reinterpret_cast<Sk3DView*>(mNativeInstance);
    *locationZ = SkScalarToFloat(v->getCameraLocationZ());
    return NOERROR;
}
static jfloat Camera_getLocationZ(JNIEnv* env, jobject obj) {
    jlong viewHandle = env->GetLongField(obj, gNativeInstanceFieldID);
    Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle);
    return SkScalarToFloat(v->getCameraLocationZ());
}