|
RavEngine
|
External storage report callback. More...
#include <PxReportCallback.h>
Public Member Functions | |
| PxExternalStorageReportCallback (T *buffer, PxU32 capacity) | |
| virtual bool | flushResults (PxU32 nbItems, const T *items) |
| Reports query results to users. | |
| virtual bool | processResults (PxU32 nbItems, const T *items)=0 |
| Reports query results to users. | |
Public Member Functions inherited from physx::PxReportCallback< T > | |
| PxReportCallback (T *buffer=NULL, PxU32 capacity=0) | |
Additional Inherited Members | |
Public Attributes inherited from physx::PxReportCallback< T > | |
| T * | mBuffer |
| PxU32 | mCapacity |
| PxU32 | mSize |
| Current number of items in the buffer. This is entirely managed by the system. | |
External storage report callback.
This is the same as a regular callback, except the destination buffer is a user-provided external buffer.
Typically the provided buffer can be larger here than for PxLocalStorageReportCallback, and it could even be a scratchpad-kind of memory shared by multiple sub-systems.
This would be the same as having a C-style buffer to write out results in the query interface.
This customized callback sends results to users via the processResults() function.
The capacity parameter dictates how many items can be reported at a time, i.e. how many times the flushResults/processResults function will be called by the system.
|
inlinevirtual |
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 |
Implements physx::PxReportCallback< T >.
|
pure virtual |
Reports query results to users.
| [in] | nbItems | Number of reported items |
| [in] | items | array of reported items |