PxLocalStorageReportCallback
Defined in include/geometry/PxReportCallback.h
Inheritance Relationships
Base Type
public PxReportCallback< T >
(PxReportCallback)
-
template<class T, const PxU32 capacityT>
class PxLocalStorageReportCallback : public PxReportCallback<T> Local storage report callback.
This is the same as a regular callback, except the destination buffer is a local buffer within the class.
This customized callback sends results to users via the processResults() function.
The capacity of the embedded buffer (determined by a template 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.
See also
Public Functions
-
inline PxLocalStorageReportCallback()
-
inline virtual bool flushResults(PxU32 nbItems, const T *items)
Reports query results to users.
This will be called by the system as many times as necessary to report all results.
- Parameters
nbItems – [in] Number of reported items
items – [in] array of reported items
- Returns
true to continue the query, false to abort the query
-
inline PxLocalStorageReportCallback()