19# pragma warning(disable: 4251)
183 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
192 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
195 return val ==
static_cast<T
>(-1);
200 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
203 return val !=
static_cast<T
>(-1);
211 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
215 return val ==
static_cast<T
>(-1);
220 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
224 return val !=
static_cast<T
>(-1);
229 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
233 return val ==
static_cast<T
>(-1);
238 typename EnableT = std::enable_if_t<std::is_integral_v<T> || std::is_enum_v<T>>
242 return val !=
static_cast<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).
bool operator!=(T val, InvalidIndexStruct)
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)
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
bool isInvalidIndex(T val)
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.