public final class NativeLibrary
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
expectedVersion
expected version string of the native library
|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
static int |
countClampedCcdMotions()
Count the cumulative number of clamped CCD motions (native variable:
gNumClampedCcdMotions).
|
static int |
countThreads()
Count how many threads are available for task scheduling.
|
static void |
crash()
Crash the JVM with an EXCEPTION_ACCESS_VIOLATION or SIGILL.
|
static int |
dumpMemoryLeaks()
Dump all native-memory allocation/free events to standard output.
|
static int |
dumpQuickprof()
Dump all Quickprof data to standard output.
|
static void |
fail()
Execute btAssert(0).
|
static boolean |
isDebug()
Test whether the native library was built with debugging enabled.
|
static boolean |
isDoublePrecision()
Test whether the native library uses double-precision arithmetic.
|
static boolean |
isInsideTriangle(Vector3f testPoint,
float maxSeparation,
Vector3f v0,
Vector3f v1,
Vector3f v2)
Test whether the specified point and triangle are within the specified
distance of each other.
|
static boolean |
isQuickprof()
Test whether the native library includes Quickprof profiling.
|
static boolean |
isThreadSafe()
Test whether the native library was built thread-safe.
|
static long |
jniEnvId()
Return the address of the current thread's JNIEnv.
|
static void |
resetQuickprof()
Reset Quickprof.
|
static void |
setReinitializationCallbackEnabled(boolean callbackFlag)
Alter whether the native library should invoke the reinitialization()
callback.
|
static void |
setStartupMessageEnabled(boolean printFlag)
Alter whether the native library will print its startup message during
initialization.
|
static java.lang.String |
versionNumber()
Determine the native library's version string.
|
public static final java.util.logging.Logger logger
public static final java.lang.String expectedVersion
public static int countClampedCcdMotions()
For debugging. The value shouldn't grow too large.
public static int countThreads()
public static void crash()
public static int dumpMemoryLeaks()
public static int dumpQuickprof()
public static void fail()
public static boolean isDebug()
public static boolean isDoublePrecision()
public static boolean isInsideTriangle(Vector3f testPoint, float maxSeparation, Vector3f v0, Vector3f v1, Vector3f v2)
testPoint - the location of the test point (not null, unaffected)maxSeparation - the maximum separation allowedv0 - the first vertex of the triangle (not null, unaffected)v1 - the 2nd vertex of the triangle (not null, unaffected)v2 - the 3rd vertex of the triangle (not null, unaffected)public static boolean isQuickprof()
public static boolean isThreadSafe()
public static long jniEnvId()
public static void resetQuickprof()
public static void setReinitializationCallbackEnabled(boolean callbackFlag)
callbackFlag - true → invoke, false → don't invoke
(default=false)public static void setStartupMessageEnabled(boolean printFlag)
printFlag - true → print message, false → no message
(default=true)public static java.lang.String versionNumber()