RavEngine
Loading...
Searching...
No Matches
physx::Foundation Class Reference
Inheritance diagram for physx::Foundation:
[legend]
Collaboration diagram for physx::Foundation:
[legend]

Public Types

typedef PxMutexT< PxAllocator > Mutex
 
typedef PxArray< PxTempAllocatorChunk *, PxAllocator > AllocFreeTable
 

Public Member Functions

void release ()
 Destroys the instance it is called on.
 
virtual PxErrorCallback & getErrorCallback ()
 
PxErrorCallback & getInternalErrorCallback ()
 
virtual void registerErrorCallback (PxErrorCallback &listener)
 
virtual void deregisterErrorCallback (PxErrorCallback &listener)
 
virtual void setErrorLevel (PxErrorCode::Enum mask)
 
virtual PxErrorCode::Enum getErrorLevel () const
 
virtual bool error (PxErrorCode::Enum, const char *file, int line, const char *messageFmt,...)
 
virtual bool error (PxErrorCode::Enum, const char *file, int line, const char *messageFmt, va_list)
 
virtual PxAllocatorCallback & getAllocatorCallback ()
 
PxAllocatorCallback & getBroadcastAllocator ()
 
virtual void registerAllocationListener (physx::PxAllocationListener &listener)
 
virtual void deregisterAllocationListener (physx::PxAllocationListener &listener)
 
virtual bool getReportAllocationNames () const
 
virtual void setReportAllocationNames (bool value)
 
PX_INLINE AllocFreeTable & getTempAllocFreeTable ()
 
PX_INLINE Mutex & getTempAllocMutex ()
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Static Public Member Functions

static Foundation * createInstance (PxU32 version, PxErrorCallback &errc, PxAllocatorCallback &alloc)
 
static Foundation & getInstance ()
 
static void setInstance (Foundation &foundation)
 
static void incRefCount ()
 
static void decRefCount ()
 
static PxU32 getRefCount ()
 
static PxU32 getWarnOnceTimestamp ()
 

Member Function Documentation

◆ deregisterAllocationListener()

void physx::Foundation::deregisterAllocationListener ( physx::PxAllocationListener &  listener)
virtual

Implements physx::PxFoundation.

◆ deregisterErrorCallback()

void physx::Foundation::deregisterErrorCallback ( PxErrorCallback &  listener)
virtual

Implements physx::PxFoundation.

◆ error() [1/2]

bool physx::Foundation::error ( PxErrorCode::Enum  e,
const char *  file,
int  line,
const char *  messageFmt,
va_list  va 
)
virtual

Implements physx::PxFoundation.

◆ error() [2/2]

bool physx::Foundation::error ( PxErrorCode::Enum  c,
const char *  file,
int  line,
const char *  messageFmt,
  ... 
)
virtual

Implements physx::PxFoundation.

◆ getAllocatorCallback()

virtual PxAllocatorCallback & physx::Foundation::getAllocatorCallback ( )
inlinevirtual

Retrieves the allocator this object was created with.

Implements physx::PxFoundation.

◆ getErrorCallback()

virtual PxErrorCallback & physx::Foundation::getErrorCallback ( )
inlinevirtual

retrieves error callback

Implements physx::PxFoundation.

◆ getErrorLevel()

virtual PxErrorCode::Enum physx::Foundation::getErrorLevel ( ) const
inlinevirtual

Retrieves mask of errors to be reported.

Implements physx::PxFoundation.

◆ getReportAllocationNames()

virtual bool physx::Foundation::getReportAllocationNames ( ) const
inlinevirtual

Retrieves if allocation names are being passed to allocator callback.

Implements physx::PxFoundation.

◆ registerAllocationListener()

void physx::Foundation::registerAllocationListener ( physx::PxAllocationListener &  listener)
virtual

Implements physx::PxFoundation.

◆ registerErrorCallback()

void physx::Foundation::registerErrorCallback ( PxErrorCallback &  listener)
virtual

Implements physx::PxFoundation.

◆ release()

void physx::Foundation::release ( )
virtual

Destroys the instance it is called on.

The operation will fail, if there are still modules referencing the foundation object. Release all dependent modules prior to calling this method.

See also
PxCreateFoundation()

Implements physx::PxFoundation.

◆ setErrorLevel()

virtual void physx::Foundation::setErrorLevel ( PxErrorCode::Enum  mask)
inlinevirtual

Sets mask of errors to report.

Implements physx::PxFoundation.

◆ setReportAllocationNames()

virtual void physx::Foundation::setReportAllocationNames ( bool  value)
inlinevirtual

Set if allocation names are being passed to allocator callback.

Enabled by default in debug and checked build, disabled by default in profile and release build.

Implements physx::PxFoundation.


The documentation for this class was generated from the following files: