public static bool SetTrackingOriginType(TrackingOrigin originType) { if (version >= OVRP_1_0_0.version) { return(OVRP_1_0_0.ovrp_SetTrackingOriginType(originType) == Bool.True); } else { return(false); } }
public void Session_GetSetTrackingOriginType() { IntPtr sessionPtr = CreateSession(); Assert.AreNotEqual(IntPtr.Zero, sessionPtr, "Failed to create session."); Result result = OVR.SetTrackingOriginType(sessionPtr, TrackingOrigin.EyeLevel); Assert.IsTrue(result >= Result.Success); TrackingOrigin trackingOrigin = OVR.GetTrackingOriginType(sessionPtr); Assert.AreEqual(TrackingOrigin.EyeLevel, trackingOrigin); result = OVR.SetTrackingOriginType(sessionPtr, TrackingOrigin.FloorLevel); Assert.IsTrue(result >= Result.Success); trackingOrigin = OVR.GetTrackingOriginType(sessionPtr); Assert.AreEqual(TrackingOrigin.FloorLevel, trackingOrigin); }
/// <inheritdoc /> public override Result SetTrackingOriginType(IntPtr sessionPtr, TrackingOrigin origin) { return(SafeNativeMethods.ovr_SetTrackingOriginType(sessionPtr, origin)); }
public static extern Bool ovrp_SetTrackingOriginType(TrackingOrigin originType);
public static bool SetTrackingOriginType(TrackingOrigin originType) { return(OVRP_1_0_0.ovrp_SetTrackingOriginType(originType) == Bool.True); }
public static extern Bool ovrp_SetTrackingOriginType(TrackingOrigin originType);
public static bool SetTrackingOriginType(TrackingOrigin originType) { if (version >= OVRP_1_0_0.version) return OVRP_1_0_0.ovrp_SetTrackingOriginType(originType) == Bool.True; else return false; }
public static bool SetTrackingOriginType(TrackingOrigin originType) { return OVRP_1_0_0.ovrp_SetTrackingOriginType(originType) == Bool.True; }
public static extern Result ovr_SetTrackingOriginType(ovrSession session, TrackingOrigin origin);
private static extern Bool ovrp_SetTrackingOriginType(TrackingOrigin originType);