Exemplo n.º 1
0
        //TODO: ovrHmd_ConfigureRendering().
        public ovrEyeRenderDesc? ConfigureRendering(ovrEyeDesc[] eyeDescIn, uint distortionCaps)
        {
            ovrEyeRenderDesc[] eyeRenderDesc = new ovrEyeRenderDesc[] { new ovrEyeRenderDesc(), new ovrEyeRenderDesc() };
            ovrRenderAPIConfig renderAPIConfig = new ovrRenderAPIConfig();

            if (ovrHmd_ConfigureRendering(HmdPtr, renderAPIConfig, distortionCaps, eyeDescIn, eyeRenderDesc))
                return eyeRenderDesc;
            return null;
        }
Exemplo n.º 2
0
		private static extern bool ovrHmd_ConfigureRendering(IntPtr hmd,
						                                     ref ovrRenderAPIConfig apiConfig,
						                                     uint distortionCaps,
					                                         ovrFovPort[] eyeFovIn,
						                                     ovrEyeRenderDesc[] eyeRenderDescOut);