19# pragma warning(disable: 4251)
27#include <agx/config.h>
181 template <
typename T>
187 template <
typename T>
189 return val == (T) - 1;
192 template <
typename T>
194 return val != (T) - 1;
200 template <
typename T>
203 return val == (T) - 1;
206 template <
typename T>
209 return val != (T) - 1;
#define AGXPHYSICS_EXPORT
Convenience class to automatically call agx::init / agx::shutdown.
agx::Thread is a representation of an OS specific implementation of a computational thread.
Contains function for initialization and shutdown of agxCore library when agxPhysics is not used.
bool AGXCORE_EXPORT isShutdown()
void AGXCORE_EXPORT shutdown()
Shutdown the AGX API, after this call no AGX API calls should be done.
void AGXCORE_EXPORT init()
Deprecated, no need for explicit initialization.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
bool AGXPHYSICS_EXPORT isShutdown()
This method indicates if agx::shutdown() has been started or already done.
std::string AGXCORE_EXPORT getBuildConfigurationString(BuildConfiguration config)
void AGXCORE_EXPORT resetStartTick()
Reset the startTick value to the current tick.
void AGXCORE_EXPORT setNumThreads(size_t numThreads)
Set the number of threads to use (including the main thread).
AGXCORE_EXPORT Thread * getCurrentThread()
BuildConfiguration
Specifies flags set at build time. Used when querying what is enabled in this current build.
@ NUM_BUILD_CONFIGURATIONS
AGXCORE_EXPORT bool getEntityCreationThreadSafe()
agx::Index AGXCORE_EXPORT getNumThreads()
bool operator!=(T val, InvalidIndexStruct)
bool operator==(T val, InvalidIndexStruct)
UInt64 AGXCORE_EXPORT getStartTick()
bool AGXCORE_EXPORT isBuiltWith(BuildConfiguration config)
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
bool AGXPHYSICS_EXPORT isInitialized()
AGXCORE_EXPORT const InvalidIndexStruct InvalidIndex
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API.
agx::Index AGXCORE_EXPORT getNumThreadsIncludingRegistered()
AGXCORE_EXPORT void setEntityCreationThreadSafe(bool)
Iff true you can move the entity to another thread (but you may only use it from one thread at the ti...
Tag for invalid UInt values.