|
RavEngine
|
Base class for callback reporting an unknown number of items to users. More...
#include <PxReportCallback.h>
Public Member Functions | |
| PxReportCallback (T *buffer=NULL, PxU32 capacity=0) | |
| virtual bool | flushResults (PxU32 nbItems, const T *items)=0 |
| Reports query results to users. | |
Public Attributes | |
| T * | mBuffer |
| PxU32 | mCapacity |
| PxU32 | mSize |
| Current number of items in the buffer. This is entirely managed by the system. | |
Base class for callback reporting an unknown number of items to users.
This can be used as-is and customized by users, or several pre-designed callbacks can be used instead (see below).
This design lets users decide how to retrieve the results of a query:
|
pure virtual |
Reports query results to users.
This will be called by the system as many times as necessary to report all results.
| [in] | nbItems | Number of reported items |
| [in] | items | array of reported items |
Implemented in physx::PxDynamicArrayReportCallback< T >, physx::PxRegularReportCallback< T >, physx::PxLocalStorageReportCallback< T, capacityT >, and physx::PxExternalStorageReportCallback< T >.