|
RavEngine
|
Dynamic array report callback. More...
#include <PxReportCallback.h>
Public Member Functions | |
| PxDynamicArrayReportCallback (PxArray< T > &results) | |
| virtual bool | flushResults (PxU32 nbItems, const T *) |
| Reports query results to users. | |
Public Member Functions inherited from physx::PxReportCallback< T > | |
| PxReportCallback (T *buffer=NULL, PxU32 capacity=0) | |
Public Attributes | |
| PxArray< T > & | mResults |
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. | |
Dynamic array report callback.
This callback emulates the behavior of pushing results to a (user-provided) dynamic array.
This customized callback does not actually call users back during the query, results are available afterwards in the provided dynamic array. This would be the same as having a PxArray directly in the query interface.
|
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 >.