public void SetFlag(VROverlayFlags flag, bool val)
 {
     if (OverlayExists && validHandle)
     {
         error = Overlay.SetOverlayFlag(_overlayHandle, flag, val);
     }
 }
    // Overlay Flags

    public bool GetFlag(VROverlayFlags flag)
    {
        if (!OverlayExists || !validHandle)
        {
            return(false);
        }

        bool flagged = false;

        error = Overlay.GetOverlayFlag(_overlayHandle, flag, ref flagged);

        return(flagged);
    }
Пример #3
0
	public abstract EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled);
Пример #4
0
	public abstract EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled);
Пример #5
0
	internal static extern EVROverlayError VR_IVROverlay_GetOverlayFlag(IntPtr instancePtr, ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled);
Пример #6
0
	public override EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled)
	{
		CheckIfUsable();
		pbEnabled = false;
		EVROverlayError result = VRNativeEntrypoints.VR_IVROverlay_GetOverlayFlag(m_pVROverlay,ulOverlayHandle,eOverlayFlag,ref pbEnabled);
		return result;
	}
Пример #7
0
	public override EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled)
	{
		CheckIfUsable();
		EVROverlayError result = VRNativeEntrypoints.VR_IVROverlay_SetOverlayFlag(m_pVROverlay,ulOverlayHandle,eOverlayFlag,bEnabled);
		return result;
	}
Пример #8
0
 public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled) => default;                                                                                                                                                                            // 0x00000001811DEC20-0x00000001811DEC50
 public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled) => default;                                                                                                                                                                       // 0x00000001811DE2F0-0x00000001811DE320
Пример #9
0
 public uint GetOverlayRenderingPid(ulong ulOverlayHandle) => default;                                                                                                                                                                                                                           // 0x00000001811DE480-0x00000001811DE4A0
 public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled) => default;                                                                                                                                                                            // 0x00000001811DEC20-0x00000001811DEC50
Пример #10
0
 internal static extern VROverlayError VR_IVROverlay_SetOverlayFlag(IntPtr instancePtr, ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled);
Пример #11
0
 public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled)
 {
     pbEnabled = false;
     return(this.FnTable.GetOverlayFlag(ulOverlayHandle, eOverlayFlag, ref pbEnabled));
 }
Пример #12
0
 public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled)
 {
     return(this.FnTable.SetOverlayFlag(ulOverlayHandle, eOverlayFlag, bEnabled));
 }
Пример #13
0
	public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled)
	{
		pbEnabled = false;
		EVROverlayError result = FnTable.GetOverlayFlag(ulOverlayHandle,eOverlayFlag,ref pbEnabled);
		return result;
	}
Пример #14
0
	public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled)
	{
		EVROverlayError result = FnTable.SetOverlayFlag(ulOverlayHandle,eOverlayFlag,bEnabled);
		return result;
	}
Пример #15
0
 /// <summary>
 /// Sets or gets the specified flag for the specified overlay.
 /// </summary>
 ///
 /// <param name="flag">Flag to set</param>
 /// <param name="value">Flag value to set</param>
 public void SetFlag(VROverlayFlags flag, bool value)
 {
     AssertNoError(OpenVR.Overlay.SetOverlayFlag(overlayHandle, flag, value));
 }