public void SetVideoBackgroundConfigInternal(VuforiaRenderer.VideoBGCfgData config)
        {
            if (VuforiaRuntimeUtilities.IsPlayMode())
            {
                config.reflection      = VuforiaRenderer.VideoBackgroundReflection.OFF;
                this.mVideoBGConfig    = config;
                this.mVideoBGConfigSet = true;
            }
            this.mLastSetReflection = config.reflection;
            IntPtr intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VuforiaRenderer.VideoBGCfgData)));

            Marshal.StructureToPtr(config, intPtr, true);
            VuforiaWrapper.Instance.RendererSetVideoBackgroundCfg(intPtr);
            Marshal.FreeHGlobal(intPtr);
        }
 protected override void Awake()
 {
     VuforiaAbstractConfiguration.GenericVuforiaConfiguration vuforia = VuforiaAbstractConfiguration.Instance.Vuforia;
     this.CameraDeviceModeSetting        = vuforia.CameraDeviceMode;
     this.MaxSimultaneousImageTargets    = vuforia.MaxSimultaneousImageTargets;
     this.MaxSimultaneousObjectTargets   = vuforia.MaxSimultaneousObjectTargets;
     this.UseDelayedLoadingObjectTargets = vuforia.UseDelayedLoadingObjectTargets;
     this.CameraDirection       = vuforia.CameraDirection;
     this.MirrorVideoBackground = vuforia.MirrorVideoBackground;
     this.mWorldCenterMode      = base.VuforiaBehaviour.WorldCenterMode;
     this.mWorldCenter          = base.VuforiaBehaviour.WorldCenter;
     this.mEyewearBehaviour     = DigitalEyewearARController.Instance;
     if (this.mEyewearBehaviour == null)
     {
         Debug.LogError("Failed to get an instance of DigitalEyewearBehaviour");
     }
     this.mVideoBackgroundMgr = VideoBackgroundManager.Instance;
     this.mVideoBackgroundMgr.Initialize();
 }
Esempio n. 3
0
 public void InitCameraDevice(CameraDevice.CameraDeviceMode cameraDeviceMode, VuforiaRenderer.VideoBackgroundReflection mirrorVideoBackground, Action onVideoBackgroundConfigChanged)
 {
 }
 internal void InitCameraConfiguration()
 {
     VuforiaRenderer.VideoBackgroundReflection mirrorVideoBackground = this.mCameraConfiguration.IsStereo() ? VuforiaRenderer.VideoBackgroundReflection.OFF : this.MirrorVideoBackground;
     this.mCameraConfiguration.InitCameraDevice(this.CameraDeviceMode, mirrorVideoBackground, new Action(this.OnVideoBackgroundConfigChanged));
 }
 public void InitCameraDevice(CameraDevice.CameraDeviceMode cameraDeviceMode, VuforiaRenderer.VideoBackgroundReflection mirrorVideoBackground, Action onVideoBackgroundConfigChanged)
 {
     this.mCameraDeviceMode  = cameraDeviceMode;
     this.mInitialReflection = mirrorVideoBackground;
     this.mOnVideoBackgroundConfigChanged = onVideoBackgroundConfigChanged;
 }