APEX Framework: nvidia::apex::MaterialLookupCallback Class Reference

NVIDIA APEX

nvidia::apex::MaterialLookupCallback Class Reference

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>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.

Parameters:
requestCount[IN] number of requests
reqList[IN/OUT] the pointer to the requests. samplePosition is read and materialID is written to by the user.

The documentation for this class was generated from the following file:

Generated on Fri Dec 15 2017 13:58:38

Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.