private void AssertNotZero(PoseF position) { Assert.AreNotEqual(0, position.Orientation.W); Assert.AreNotEqual(0, position.Orientation.X); Assert.AreNotEqual(0, position.Orientation.Y); Assert.AreNotEqual(0, position.Orientation.Z); Assert.AreNotEqual(0, position.Position.X); Assert.AreNotEqual(0, position.Position.Y); Assert.AreNotEqual(0, position.Position.Z); }
public Renderer(GraphicsDeviceManager graphicsDeviceManager) { // Initialize the SharpOVR library OVR.Initialize(); // Create our HMD or if not present, a dummy one HMD = OVR.HmdCreate(0) ?? OVR.HmdCreateDebug(HMDType.DK2); // Match back buffer size with HMD resolution graphicsDeviceManager.PreferredBackBufferWidth = HMD.Resolution.Width; graphicsDeviceManager.PreferredBackBufferHeight = HMD.Resolution.Height; EyePose = new PoseF[2]; EyeOffset = new Vector3[2]; EyeViewport = new Rect[2]; FPS = new FPS(); }