Exemplo n.º 1
0
 public static int arwGetError()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         return(ARNativePluginStatic.arwGetError());
     }
     else
     {
         return(ARNativePlugin.arwGetError());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Return error information.
 ///
 /// Initially, all error flags are set to AR_ERROR_NONE.
 /// </summary>
 /// <returns>enum with error code.</returns>
 /// <remarks>
 /// Returns the value of the error flag.  Each detectable error
 /// is assigned a numeric code and symbolic name.  When  an  error  occurs,
 /// the  error  flag  is set to the appropriate error code value.  No other
 /// errors are recorded until arwGetError  is  called,  the  error  code  is
 /// returned,  and  the  flag  is  reset  to  AR_ERROR_NONE.   If  a  call to
 /// arwGetError returns AR_ERROR_NONE, there  has  been  no  detectable  error
 /// since the last call to arwGetError, or since the the library was initialized.
 ///
 /// To  allow  for  distributed implementations, there may be several error
 /// flags.  If any single error flag has recorded an error,  the  value  of
 /// that  flag  is  returned  and  that  flag  is reset to AR_ERROR_NONE when
 /// arwGetError is called.  If more than one flag  has  recorded  an  error,
 /// arwGetError  returns  and  clears  an arbitrary error flag value.  Thus,
 /// arwGetError should  always  be  called  in  a  loop,  until  it  returns
 /// AR_ERROR_NONE, if all error flags are to be reset.
 /// </remarks>
 public int arwGetError()
 {
     return(ARNativePlugin.arwGetError());
 }