Classes | Public Member Functions
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.
virtual ~MaterialLookupCallback ()

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.


Constructor & Destructor Documentation

virtual nvidia::apex::MaterialLookupCallback::~MaterialLookupCallback ( ) [inline, virtual]

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 Tue Aug 1 2017 22:43:59

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