Ejemplo n.º 1
0
        private void RecreateLayer()
        {
            FoveManager.UnregisterInterface(this);

            var createInfo = new CompositorLayerCreateInfo
            {
                alphaMode         = AlphaMode.Auto,
                disableDistortion = disableDistortion,
                disableFading     = disableFading,
                disableTimewarp   = disableTimewarp,
                type = layerType
            };

            FoveManager.RegisterInterface(createInfo, this);
        }
        // Private callbacks and support for HMD events
        private void RegisterEventCallbacks()
        {
            var createInfo = new CompositorLayerCreateInfo
            {
                alphaMode         = AlphaMode.Auto,
                disableDistortion = disableDistortion,
                disableFading     = disableFading,
                disableTimewarp   = disableTimewarp,
                type = layerType
            };

            FoveManager.RegisterInterface(createInfo, this);
            FoveManager.PoseUpdate.AddListener(UpdatePoseData);
            FoveManager.EyeProjectionUpdate.AddListener(UpdateGazeMatrices);
            FoveManager.EyePositionUpdate.AddListener(UpdateEyePosition);
            FoveManager.GazeUpdate.AddListener(UpdateGaze);
        }