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