Callbacks.h File Reference

All functions to initialize and use user provided callbacks are declared in this header. More...

#include <foundation/PxPreprocessor.h>
#include <foundation/PxProfiler.h>
#include <foundation/PxAssert.h>

Go to the source code of this file.

Classes

class  nv::cloth::NvClothProfileScoped

Defines

#define NV_CLOTH_API(ret_type)   NV_CLOTH_LINKAGE ret_type NV_CLOTH_CALL_CONV
#define NV_CLOTH_ASSERT(exp)   ((void)0)
#define NV_CLOTH_ASSERT_WITH_MESSAGE(message, exp)   ((void)0)
#define NV_CLOTH_CALL_CONV   PX_CALL_CONV
#define NV_CLOTH_DLL_ID   0x2
#define NV_CLOTH_IMPORT   PX_DLL_IMPORT
#define NV_CLOTH_LINKAGE   PX_C_EXPORT NV_CLOTH_IMPORT
#define NV_CLOTH_LOG_ERROR(...)   nv::cloth::LogErrorFn(__FILE__,__LINE__,__VA_ARGS__)
 arguments: NV_CLOTH_LOG_ERROR("format %s %s\n","additional","arguments");
#define NV_CLOTH_LOG_INFO(...)   nv::cloth::LogInfoFn(__FILE__,__LINE__,__VA_ARGS__)
#define NV_CLOTH_LOG_INVALID_PARAMETER(...)   nv::cloth::LogInvalidParameterFn(__FILE__,__LINE__,__VA_ARGS__)
#define NV_CLOTH_LOG_WARNING(...)   nv::cloth::LogWarningFn(__FILE__,__LINE__,__VA_ARGS__)
#define NV_CLOTH_PROFILE_START_CROSSTHREAD(x, y)
#define NV_CLOTH_PROFILE_STOP_CROSSTHREAD(profilerData, x, y)
#define NV_CLOTH_PROFILE_ZONE(x, y)   nv::cloth::NvClothProfileScoped PX_CONCAT(_scoped, __LINE__)(x, false, y, __FILE__, __LINE__, nv::cloth::GetNvClothProfiler())

Functions

PX_C_EXPORT PX_DLL_IMPORT
physx::PxAllocatorCallback
*PX_CALL_CONV 
GetNvClothAllocator ()
PX_C_EXPORT PX_DLL_IMPORT
physx::PxAssertHandler
*PX_CALL_CONV 
nv::cloth::GetNvClothAssertHandler ()
physx::PxProfilerCallback * nv::cloth::GetNvClothProfiler ()
PX_C_EXPORT PX_DLL_IMPORT void
PX_CALL_CONV 
nv::cloth::InitializeNvCloth (physx::PxAllocatorCallback *allocatorCallback, physx::PxErrorCallback *errorCallback, physx::PxAssertHandler *assertHandler, physx::PxProfilerCallback *profilerCallback, int autoDllIDCheck=0x2)
 Initialize the library by passing in callback functions.
void nv::cloth::LogErrorFn (const char *fileName, int lineNumber, const char *msg,...)
void nv::cloth::LogInfoFn (const char *fileName, int lineNumber, const char *msg,...)
void nv::cloth::LogInvalidParameterFn (const char *fileName, int lineNumber, const char *msg,...)
void nv::cloth::LogWarningFn (const char *fileName, int lineNumber, const char *msg,...)


Detailed Description

All functions to initialize and use user provided callbacks are declared in this header.

Initialize the callbacks with InitializeNvCloth(...) before using any other NvCloth API. The other functions defined in this header are used to access the functionality provided by the callbacks, and are mostly for internal use.


Define Documentation

#define NV_CLOTH_API ( ret_type   )     NV_CLOTH_LINKAGE ret_type NV_CLOTH_CALL_CONV

#define NV_CLOTH_ASSERT ( exp   )     ((void)0)

#define NV_CLOTH_ASSERT_WITH_MESSAGE ( message,
exp   )     ((void)0)

#define NV_CLOTH_CALL_CONV   PX_CALL_CONV

#define NV_CLOTH_DLL_ID   0x2

#define NV_CLOTH_IMPORT   PX_DLL_IMPORT

#define NV_CLOTH_LINKAGE   PX_C_EXPORT NV_CLOTH_IMPORT

#define NV_CLOTH_LOG_ERROR ( ...   )     nv::cloth::LogErrorFn(__FILE__,__LINE__,__VA_ARGS__)

arguments: NV_CLOTH_LOG_ERROR("format %s %s\n","additional","arguments");

#define NV_CLOTH_LOG_INFO ( ...   )     nv::cloth::LogInfoFn(__FILE__,__LINE__,__VA_ARGS__)

#define NV_CLOTH_LOG_INVALID_PARAMETER ( ...   )     nv::cloth::LogInvalidParameterFn(__FILE__,__LINE__,__VA_ARGS__)

#define NV_CLOTH_LOG_WARNING ( ...   )     nv::cloth::LogWarningFn(__FILE__,__LINE__,__VA_ARGS__)

#define NV_CLOTH_PROFILE_START_CROSSTHREAD ( x,
 ) 

Value:

(GetNvClothProfiler()!=nullptr?                                                                                        \
    GetNvClothProfiler()->zoneStart(x, true, y):nullptr)

#define NV_CLOTH_PROFILE_STOP_CROSSTHREAD ( profilerData,
x,
 ) 

Value:

if (GetNvClothProfiler())                                                                                           \
    GetNvClothProfiler()->zoneEnd(profilerData, x, true, y)

#define NV_CLOTH_PROFILE_ZONE ( x,
 )     nv::cloth::NvClothProfileScoped PX_CONCAT(_scoped, __LINE__)(x, false, y, __FILE__, __LINE__, nv::cloth::GetNvClothProfiler())


Function Documentation

PX_C_EXPORT PX_DLL_IMPORT physx::PxAllocatorCallback* PX_CALL_CONV GetNvClothAllocator (  )