Ejemplo n.º 1
0
 public static bool SetBoundaryLookAndFeel(BoundaryLookAndFeel lookAndFeel)
 {
     if (version >= OVRP_1_8_0.version)
     {
         return(OVRP_1_8_0.ovrp_SetBoundaryLookAndFeel(lookAndFeel) == OVRPlugin.Bool.True);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public void Session_SetBoundaryLookAndFeel()
        {
            IntPtr sessionPtr = CreateSession();

            Assert.AreNotEqual(IntPtr.Zero, sessionPtr);

            var boundaryLookAndFeel = new BoundaryLookAndFeel()
            {
                Color = new Colorf(1, 0, 0, 1)
            };

            Result result = OVR.SetBoundaryLookAndFeel(sessionPtr, ref boundaryLookAndFeel);

            Assert.IsFalse(result == Result.Success_BoundaryInvalid, "Boundaries are not set on Oculus. Boundaries require Oculus Touch. Please run a full setup in Oculus settings to set up boundaries before runing the test.");

            Assert.IsTrue(result >= Result.Success, "Failed to call SetBoundaryLookAndFeel");
        }
Ejemplo n.º 3
0
 public static extern Bool ovrp_SetBoundaryLookAndFeel(BoundaryLookAndFeel lookAndFeel);
Ejemplo n.º 4
0
 public static extern Result ovr_SetBoundaryLookAndFeel(ovrSession session, ref BoundaryLookAndFeel lookAndFeel);