# TBasicAmbient Class Reference
[Base Classes for plugins]

Inheritance diagram for TBasicAmbient:

List of all members.

## Public Member Functions
virtual MCCOMErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj)
virtual uint32 MCCOMAPI | AddRef ()
virtual MCCOMErr MCCOMAPI | GetColor (TMCColorRGB *resultColor)

## Detailed Description

Basic Ambient light class. Derive from this for a default implementation of an I3DExAmbientLight

See also:
  I3DExAmbientLight

## Member Function Documentation

virtual uint32 MCCOMAPI TBasicAmbient::AddRef | ( |  | ) | `[inline, virtual]`

Increments the reference count of the object

Reimplemented from TBasicDataExchanger.

virtual MCCOMErr MCCOMAPI TBasicAmbient::GetColor | ( | TMCColorRGB * | resultColor | ) | `[virtual]`

Returns the color of the ambient light.

Parameters:

  | resultColor | A pointer to the color returned.

Implements I3DExAmbientLight.

virtual MCCOMErr MCCOMAPI TBasicAmbient::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.

Parameters:

  | riid | GUID of the interface
  | ppvObj | A pointer to the pointer being returned.

Reimplemented from TBasicDataExchanger.

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

- BasicEnvironment.h