AlPointLight
 
 
 

Encapsulates the creation, deletion and manipulation of a point light.

Synopsis

#include <AlPointLight.h> class AlPointLight: public AlNonAmbientLight AlPointLight(); virtual	~AlPointLight(); virtual AlObject*   copyWrapper() const; statusCode	create(); AlObjectType	type() const;

Description

Point lights are like incandescent light bulbs. They emit light in all directions.

To create a point light, the user must instantiate and call the create method on an AlPointLight object. (For more information on lights in general, see the Class Description of the AlNonAmbientLight object.)

AlPointLight::AlPointLight()

Description

Constructs an AlPointLight wrapper object.

AlPointLight::~AlPointLight()

Description

Deletes an AlPointLight wrapper object.

statusCode AlPointLight::create()

Description

Creates all the DAG nodes for this light and adds them to the universe. The DAG nodes are for ’position’, ’look at’ and ’up’, and another DAG node that groups these three together.

Return Codes

sSuccess - everything was successful

sInsufficientMemory - not enough memory available

sAlreadyCreated - light is already created

AlObjectType AlPointLight::type() const

Description

Returns the class identifier, kPointLightType.