Class OsvrTimeValueLibrary

java.lang.Object
com.jme3.system.osvr.osvrtimevalue.OsvrTimeValueLibrary
All Implemented Interfaces:
com.sun.jna.Library

public class OsvrTimeValueLibrary extends Object implements com.sun.jna.Library
JNA Wrapper for library osvrTimeValue
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java , Rococoa, or JNA.
  • Field Details

  • Constructor Details

    • OsvrTimeValueLibrary

      public OsvrTimeValueLibrary()
  • Method Details

    • osvrTimeValueGetNow

      public static void osvrTimeValueGetNow(OSVR_TimeValue dest)
      Gets the current time in the TimeValue. Parallel to gettimeofday. Original signature : void osvrTimeValueGetNow(OSVR_TimeValue*)
    • osvrTimeValueToStructTimeval

      public static void osvrTimeValueToStructTimeval(OsvrTimeValueLibrary.timeval dest, OSVR_TimeValue src)
      Converts from a TimeValue struct to your system's struct timeval.
      Parameters:
      dest - Pointer to an empty struct timeval for your platform.
      src - A pointer to an OSVR_TimeValue you'd like to convert from.
      If either parameter is NULL, the function will return without doing
      anything.
      Original signature : void osvrTimeValueToStructTimeval(timeval*, const OSVR_TimeValue*)
    • osvrStructTimevalToTimeValue

      public static void osvrStructTimevalToTimeValue(OSVR_TimeValue dest, OsvrTimeValueLibrary.timeval src)
      Converts from a TimeValue struct to your system's struct timeval.
      Parameters:
      dest - An OSVR_TimeValue destination pointer.
      src - Pointer to a struct timeval you'd like to convert from.
      The result is normalized.
      If either parameter is NULL, the function will return without doing
      anything.
      Original signature : void osvrStructTimevalToTimeValue(OSVR_TimeValue*, timeval*)
    • osvrTimeValueNormalize

      public static void osvrTimeValueNormalize(OSVR_TimeValue tv)
      "Normalizes" a time value so that the absolute number of microseconds is less than 1,000,000, and that the sign of both components is the same.
      Parameters:
      tv - Address of a struct TimeValue to normalize in place.
      If the given pointer is NULL, this function returns without doing anything.
      Original signature : void osvrTimeValueNormalize(OSVR_TimeValue*)
    • osvrTimeValueSum

      public static void osvrTimeValueSum(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Sums two time values, replacing the first with the result.
      Parameters:
      tvA - Destination and first source.
      tvB - second source
      If a given pointer is NULL, this function returns without doing anything.
      Both parameters are expected to be in normalized form.
      Original signature : void osvrTimeValueSum(OSVR_TimeValue*, const OSVR_TimeValue*)
    • osvrTimeValueDifference

      public static void osvrTimeValueDifference(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Computes the difference between two time values, replacing the first with the result.
      Effectively, `*tvA = *tvA - *tvB`
      Parameters:
      tvA - Destination and first source.
      tvB - second source
      If a given pointer is NULL, this function returns without doing anything.
      Both parameters are expected to be in normalized form.
      Original signature : void osvrTimeValueDifference(OSVR_TimeValue*, const OSVR_TimeValue*)
    • osvrTimeValueCmp

      public static int osvrTimeValueCmp(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Compares two time values (assumed to be normalized), returning the same values as strcmp
      Returns:
      <0 if A is earlier than B, 0 if they are the same, and >0 if A
      is later than B.
      Original signature : int osvrTimeValueCmp(const OSVR_TimeValue*, const OSVR_TimeValue*)
    • osvrTimeValueDurationSeconds

      public static double osvrTimeValueDurationSeconds(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Compute the difference between the two time values, returning the duration as a double-precision floating-point number of seconds.
      Effectively, `ret = *tvA - *tvB`
      Parameters:
      tvA - first source.
      tvB - second source
      Returns:
      Duration of timespan in seconds (floating-point)
      Original signature : double osvrTimeValueDurationSeconds(const OSVR_TimeValue*, const OSVR_TimeValue*)
    • osvrTimeValueGreater

      public static byte osvrTimeValueGreater(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      True if A is later than B. Original signature : OSVR_CBool osvrTimeValueGreater(const OSVR_TimeValue*, const OSVR_TimeValue*)
    • osvrTimeValueIsNormalized

      public static byte osvrTimeValueIsNormalized(OSVR_TimeValue tv)
      Returns true if the time value is normalized. Typically used in assertions.
      Original signature : bool osvrTimeValueIsNormalized(const OSVR_TimeValue&)
    • operatorGreater

      public static byte operatorGreater(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Operator > overload for time values
      Original signature : bool operator>(const OSVR_TimeValue&, const OSVR_TimeValue&)
    • operatorIsEqual

      public static byte operatorIsEqual(OSVR_TimeValue tvA, OSVR_TimeValue tvB)
      Operator == overload for time values
      Original signature : bool operator==(const OSVR_TimeValue&, const OSVR_TimeValue&)