Class OsvrTimeValueLibrary
java.lang.Object
com.jme3.system.osvr.osvrtimevalue.OsvrTimeValueLibrary
- All Implemented Interfaces:
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.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final com.sun.jna.NativeLibrary
static final int
static final int
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
operatorGreater
(OSVR_TimeValue tvA, OSVR_TimeValue tvB) Operator > overload for time values
Original signature :bool operator>(const OSVR_TimeValue&, const OSVR_TimeValue&)
static byte
operatorIsEqual
(OSVR_TimeValue tvA, OSVR_TimeValue tvB) Operator == overload for time values
Original signature :bool operator==(const OSVR_TimeValue&, const OSVR_TimeValue&)
static void
Converts from a TimeValue struct to your system's struct timeval.static int
osvrTimeValueCmp
(OSVR_TimeValue tvA, OSVR_TimeValue tvB) Compares two time values (assumed to be normalized), returning the same values as strcmpstatic void
Computes the difference between two time values, replacing the first with the result.
Effectively, `*tvA = *tvA - *tvB`static double
Compute the difference between the two time values, returning the duration as a double-precision floating-point number of seconds.
Effectively, `ret = *tvA - *tvB`static void
Gets the current time in the TimeValue.static byte
osvrTimeValueGreater
(OSVR_TimeValue tvA, OSVR_TimeValue tvB) True if A is later than B.static byte
Returns true if the time value is normalized.static void
"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.static void
osvrTimeValueSum
(OSVR_TimeValue tvA, OSVR_TimeValue tvB) Sums two time values, replacing the first with the result.static void
Converts from a TimeValue struct to your system's struct timeval.
-
Field Details
-
JNA_LIBRARY_NAME
- See Also:
-
JNA_NATIVE_LIB
public static final com.sun.jna.NativeLibrary JNA_NATIVE_LIB -
OSVR_TRUE
public static final int OSVR_TRUE- See Also:
-
OSVR_FALSE
public static final int OSVR_FALSE- See Also:
-
-
Constructor Details
-
OsvrTimeValueLibrary
public OsvrTimeValueLibrary()
-
-
Method Details
-
osvrTimeValueGetNow
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
"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
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
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
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
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
True if A is later than B. Original signature :OSVR_CBool osvrTimeValueGreater(const OSVR_TimeValue*, const OSVR_TimeValue*)
-
osvrTimeValueIsNormalized
Returns true if the time value is normalized. Typically used in assertions.
Original signature :bool osvrTimeValueIsNormalized(const OSVR_TimeValue&)
-
operatorGreater
Operator > overload for time values
Original signature :bool operator>(const OSVR_TimeValue&, const OSVR_TimeValue&)
-
operatorIsEqual
Operator == overload for time values
Original signature :bool operator==(const OSVR_TimeValue&, const OSVR_TimeValue&)
-