public static bool SetOverlayQuad(bool onTop, bool headLocked, IntPtr texture, IntPtr device, Posef pose, Vector3f scale) { if (version >= v0110) { return(OVRP0110.ovrp_SetOverlayQuad2(ToBool(onTop), ToBool(headLocked), texture, device, pose, scale) == Bool.True); } else { return(OVRP0100.ovrp_SetOverlayQuad(ToBool(onTop), texture, device, pose, scale) == Bool.True); } }
private static bool GetStatus(Status bit) { if (version >= v0120) { return(OVRP0120.ovrp_GetStatus2((uint)(1 << (int)bit)) != 0); } else { return((OVRP0100.ovrp_GetStatus() & (uint)(1 << (int)bit)) != 0); } }
private static bool GetCap(Caps cap) { if (version >= v0130) { return(OVRP0130.ovrp_GetCaps2((uint)(1 << (int)cap)) != 0); } else { return(((int)OVRP0100.ovrp_GetCaps() & (1 << (int)cap)) != 0); } }
private static void SetCap(Caps cap, bool value) { if (GetCap(cap) == value) { return; } int caps = (int)OVRP0100.ovrp_GetCaps(); if (value) { caps |= (1 << (int)cap); } else { caps &= ~(1 << (int)cap); } OVRP0100.ovrp_SetCaps((Caps)caps); }
private static bool GetCap(Caps cap) { return(((int)OVRP0100.ovrp_GetCaps() & (1 << (int)cap)) != 0); }
public static bool ShowUI(PlatformUI ui) { return(OVRP0100.ovrp_ShowUI(ui) == Bool.True); }
public static bool RecenterPose() { return(OVRP0100.ovrp_RecenterPose() == Bool.True); }
public static Posef GetEyeAcceleration(Eye eyeId) { return(OVRP0100.ovrp_GetEyeAcceleration(eyeId)); }
public static IntPtr GetNativePointer() { return(OVRP0100.ovrp_GetNativePointer()); }
public static Posef GetEyePose(Eye eyeId) { return(OVRP0100.ovrp_GetEyePose(eyeId)); }
public static Frustumf GetEyeFrustum(Eye eyeId) { return(OVRP0100.ovrp_GetEyeFrustum(eyeId)); }
public static bool Update(int frameIndex) { return(OVRP0100.ovrp_Update(frameIndex) == Bool.True); }
public static Posef GetEyeVelocity(Eye eyeId) { return(OVRP0100.ovrp_GetEyeVelocity(eyeId)); }
public static bool DismissHSW() { return(OVRP0100.ovrp_DismissHSW() == Bool.True); }
public static Frustumf GetTrackerFrustum(Tracker trackerId) { return(OVRP0100.ovrp_GetTrackerFrustum(trackerId)); }
public static Posef GetTrackerPose(Tracker trackerId) { return(OVRP0100.ovrp_GetTrackerPose(trackerId)); }
public static Sizei GetEyeTextureSize(Eye eyeId) { return(OVRP0100.ovrp_GetEyeTextureSize(eyeId)); }