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 }); }
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); }
private static extern int GetLayerForCreateInfo(CompositorLayerCreateInfo info);