示例#1
0
 /// <summary>
 /// Returns status information for the application.
 /// </summary>
 /// <param name="sessionPtr">Specifies an IntPtr previously returned by ovr_Create.</param>
 /// <param name="sessionStatus">Provides a SessionStatus that is filled in.</param>
 /// <returns>
 /// Returns an ovrResult indicating success or failure. In the case of failure, use ovr_GetLastErrorInfo
 /// to get more information.
 /// Return values include but aren't limited to:
 /// - Result.Success: Completed successfully.
 /// - Result.ServiceConnection: The service connection was lost and the application must destroy the session.
 /// </returns>
 public static Result GetSessionStatus(IntPtr sessionPtr, ref SessionStatus sessionStatus)
 {
     if (Environment.Is64BitProcess)
     {
         return(OculusNative64.ovr_GetSessionStatus(sessionPtr, ref sessionStatus));
     }
     else
     {
         return(OculusNative32.ovr_GetSessionStatus(sessionPtr, ref sessionStatus));
     }
 }
 internal static extern Result ovr_GetSessionStatus(IntPtr sessionPtr, ref SessionStatus sessionStatus);