Public Member Functions | |
virtual MCCOMErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj) |
virtual uint32 MCCOMAPI | AddRef () |
virtual boolean MCCOMAPI | GetGelValues (const TVector2 &gelScreenPosition, TMCColorRGB &result) |
Basic Gel class. Derive from this for a default implementation of I3DExLightsourceGel
virtual uint32 MCCOMAPI TBasicGel::AddRef | ( | ) | [inline, virtual] |
Increments the reference count of the object
Reimplemented from TBasicDataExchanger.
virtual boolean MCCOMAPI TBasicGel::GetGelValues | ( | const TVector2 & | gelScreenPosition, | |
TMCColorRGB & | result | |||
) | [virtual] |
Modifies the color of the light.
gelScreenPosition | The position in the gel [0,1]x[0,1] | |
result | On Enter, it contains the light emitted from the light source. On Exit, it contains the color of light filtered by the gel. |
Implements I3DExLightsourceGel.
virtual MCCOMErr MCCOMAPI TBasicGel::QueryInterface | ( | const MCIID & | riid, | |
void ** | ppvObj | |||
) | [virtual] |
Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.
riid | GUID of the interface | |
ppvObj | A pointer to the pointer being returned. |
Reimplemented from TBasicDataExchanger.