Exemple #1
0
        internal static void RegisterInterface(CompositorLayerCreateInfo info, FoveInterface xface)
        {
            if (Instance == null)             // query forces it to exist
            {
                return;
            }

            unregisteredInterfaces.Add(new InterfaceInfo {
                info = info, xface = xface
            });
        }
Exemple #2
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);
        }
Exemple #4
0
 private static extern int GetLayerForCreateInfo(CompositorLayerCreateInfo info);