private int InitCameraDevice(int camera) { if (VuforiaRuntimeUtilities.IsPlayMode()) { int result = 0; try { WebCamARController expr_0E = WebCamARController.Instance; expr_0E.InitCamera(); CameraDeviceImpl.mWebCam = expr_0E.ImplementationClass; VuforiaRenderer.Vec2I resampledTextureSize = CameraDeviceImpl.mWebCam.ResampledTextureSize; if (resampledTextureSize.y != 0) { VuforiaWrapper.Instance.CameraDeviceSetCameraConfiguration(resampledTextureSize.x, resampledTextureSize.y); } result = 1; } catch (NullReferenceException arg_4B_0) { Debug.LogError(arg_4B_0.Message); } VuforiaWrapper.Instance.CameraDeviceInitCamera(camera); this.mCameraImages.Clear(); return(result); } return(VuforiaWrapper.Instance.CameraDeviceInitCamera(camera)); }
public void UpdatePlayModeParameters(WebCamARController webCamBehaviour, float cameraOffset) { }