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