a user calback interface used to map raycast hitpoints to material ID If an instance of this class is registered with a ground emitter actor, the actor will call requestMaterialLookups() in lieu of doing raycasts. The call will occur from within the scope of the ApexScene thread, so the callback must be thread safe. More...
#include <GroundEmitterActor.h>
Classes | |
struct | MaterialRequest |
Material request structure. More... | |
Public Member Functions | |
virtual void | requestMaterialLookups (uint32_t requestCount, MaterialRequest *reqList)=0 |
Submit the meterial lookup request. This method is called by the emitter and implemented by the user. | |
virtual | ~MaterialLookupCallback () |
a user calback interface used to map raycast hitpoints to material ID If an instance of this class is registered with a ground emitter actor, the actor will call requestMaterialLookups() in lieu of doing raycasts. The call will occur from within the scope of the ApexScene thread, so the callback must be thread safe.
virtual nvidia::apex::MaterialLookupCallback::~MaterialLookupCallback | ( | ) | [inline, virtual] |
virtual void nvidia::apex::MaterialLookupCallback::requestMaterialLookups | ( | uint32_t | requestCount, |
MaterialRequest * | reqList | ||
) | [pure virtual] |
Submit the meterial lookup request. This method is called by the emitter and implemented by the user.
requestCount | [IN] number of requests |
reqList | [IN/OUT] the pointer to the requests. samplePosition is read and materialID is written to by the user. |