#include <AlAmbientLight.h>
class AlAmbientLight : public AlLight
AlAmbientLight();
virtual ~AlAmbientLight();
virtual AlObject* copyWrapper() const;
statusCode create();
AlObjectType type() const;
AlAmbientLight* asAmbientLightPtr();
double shadeFactor() const;
double intensity() const;
statusCode setShadeFactor( double );
statusCode setIntensity( double );
(For more information on lights in general, see the Class Description of the AlLight class.)
Summary
AlAmbientLight::AlAmbientLight()
Description
Constructs an AlAmbientLight wrapper object. AlAmbientLight::~AlAmbientLight()
Description
Deletes an AlAmbientLight wrapper object. statusCode AlAmbientLight::create()
Description
This method 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 - if everything was successful AlObjectType AlAmbientLight::type() const
Description
Returns the class identifier, kAmbientLightType. AlAmbientLight* AlAmbientLight::asAmbientLightPtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. double AlAmbientLight::shadeFactor() const
Description
Returns the light's shade factor. Valid shade factors range from 0.0 to 1.0. Shade factor defines the omnidirectionality of the light. Set to 0.0, ambient light will come from all directions and surfaces will not show edge definition. Set to 1.0, the ambient light comes solely from the position of the light and objects will show definite edge contrast. If the light is not valid then -1 will be returned. statusCode AlAmbientLight::setShadeFactor( double newShadeFactor)
Description
Sets the light's shade factor. Valid shade factors range from 0.0 to 1.0. Shade factor defines the omnidirectionality of the light. Set to 0.0, ambient light will come from all directions and surfaces will show not edge definition. Set to 1.0, the ambient light comes solely from the position of the light and objects will show definite edge contrast. Arguments
< double newShadeFactor - is the new shade factor. Return codes
sSuccess - setting shade factor succeeded double AlAmbientLight::intensity() const
Description
Returns the intensity of this ambient light. The value returned is greater than or equal to 0.0. If the light is not valid -1 will be returned. statusCode AlAmbientLight::setIntensity( double newIntensity )
Description
Sets the intensity of this ambient light. The given intensity value must be greater than or equal to 0.0. Arguments
< newIntensity - the intensity that this light is set to. Return codes
sSuccess - setting intensity succeeded