Adds parameters for cylinder volume lights.
#include <AlCylinderLight.h> class AlCylinderLight: public AlVolumeLight AlCylinderLight(); virtual ~AlCylinderLight(); virtual AlObject* copyWrapper() const; statusCode create(); AlObjectType type() const; double arc() const; statusCode setArc(double);
A cylinder light creates light within a cylinder.
Constructs an AlCylinderLight wrapper object.
Deletes an AlCylinderLight wrapper object.
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.
sSuccess - the DAG nodes were created
sInsufficientMemory - not enough memory available
sAlreadyCreated - the light is already created
Returns the class identifier kCylinderLightType.
Returns the sphere light’s arc (that is, how much of the sphere we actually have). This method returns -1 if the light is invalid.
Sets the arc of the light. The given arc must be in the range 0 to 360.
< double arc - portion of the sphere to use
sSuccess - setting arc succeeded
sInvalidObject - not a valid volume light
sInvalidArgument - arc out of the range 0..360
sFailure - an error occurred