Exemple #1
0
 public bool AttachToWindow(ovrRecti destMirrorRect, ovrRecti sourceRenderTargetRect)
 {
     return ovrHmd_AttachToWindow(HmdPtr, IntPtr.Zero, destMirrorRect, sourceRenderTargetRect);
 }
Exemple #2
0
 private static extern bool ovrHmd_AttachToWindow(IntPtr hmd, IntPtr window, ovrRecti destMirrorRect, ovrRecti sourceRenderTargetRect);
Exemple #3
0
 private static extern void ovrHmd_GetRenderScaleAndOffset(ovrFovPort fov,
     ovrSizei textureSize,
     ovrRecti renderViewport,
     [MarshalAs(UnmanagedType.LPArray, SizeConst = 2)]
     [Out] out ovrVector2f[] uvScaleOffsetOut);
Exemple #4
0
 // Computes updated 'uvScaleOffsetOut' to be used with a distortion if render target size or
 // viewport changes after the fact. This can be used to adjust render size every frame, if desired.
 public ovrVector2f[] GetRenderScaleAndOffset(ovrFovPort fov,
     ovrSizei textureSize,
     ovrRecti renderViewport)
 {
     ovrVector2f[] uvScaleOffsetOut;
     ovrHmd_GetRenderScaleAndOffset(fov, textureSize, renderViewport, out uvScaleOffsetOut);
     return uvScaleOffsetOut;
 }