|
openscenegraph
|
Protected Member Functions | |
| virtual | ~Light () |
| void | init () |
Protected Member Functions inherited from osg::StateAttribute | |
| virtual | ~StateAttribute () |
| void | addParent (osg::StateSet *object) |
| void | removeParent (osg::StateSet *object) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| int | _lightnum |
| Vec4 | _ambient |
| Vec4 | _diffuse |
| Vec4 | _specular |
| Vec4 | _position |
| Vec3 | _direction |
| float | _constant_attenuation |
| float | _linear_attenuation |
| float | _quadratic_attenuation |
| float | _spot_exponent |
| float | _spot_cutoff |
Protected Attributes inherited from osg::StateAttribute | |
| ParentList | _parents |
| ref_ptr< ShaderComponent > | _shaderComponent |
| ref_ptr< StateAttributeCallback > | _updateCallback |
| ref_ptr< StateAttributeCallback > | _eventCallback |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Light state class which encapsulates OpenGL glLight() functionality.
| osg::Light::Light | ( | ) |
| osg::Light::Light | ( | unsigned int | lightnum | ) |
|
inline |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
protectedvirtual |
Apply the light's state to the OpenGL state machine.
Reimplemented from osg::StateAttribute.
| void osg::Light::captureLightState | ( | ) |
Capture the lighting settings of the current OpenGL state and store them in this object.
|
inlinevirtual |
Return the name of the attribute's class type.
Reimplemented from osg::StateAttribute.
|
inlinevirtual |
Clone an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
|
inlinevirtual |
Clone the type of an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
|
inlinevirtual |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
|
inline |
Get the ambient component of the light.
|
inline |
Get the constant attenuation of the light.
|
inline |
Get the diffuse component of the light.
|
inline |
Get the direction of the light.
|
inline |
Get which OpenGL light this osg::Light operates on.
|
inline |
Get the linear attenuation of the light.
|
inlinevirtual |
Return the member identifier within the attribute's class type. Used for light number/clip plane number etc.
Reimplemented from osg::StateAttribute.
|
inlinevirtual |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
References GL_LIGHT0, and osg::StateAttribute::ModeUsage::usesMode().
|
inline |
Get the position of the light.
|
inline |
Get the quadratic attenuation of the light.
|
inline |
Get the specular component of the light.
|
inline |
Get the spot cutoff of the light.
|
inline |
Get the spot exponent of the light.
|
inlinevirtual |
Return the Type identifier of the attribute's class type.
Implements osg::StateAttribute.
|
protected |
Initialize the light's settings with some decent defaults.
|
inlinevirtual |
Return true if this and obj are of the same kind of object.
Reimplemented from osg::StateAttribute.
References NULL.
|
inlinevirtual |
Return the name of the attribute's library.
Reimplemented from osg::StateAttribute.
|
inline |
Set the constant attenuation of the light.
| void osg::Light::setLightNum | ( | int | num | ) |
Set which OpenGL light to operate on.
|
inline |
Set the linear attenuation of the light.
|
inline |
Set the quadratic attenuation of the light.
Set the specular component of the light.
|
inline |
Set the spot cutoff of the light.
|
inline |
Set the spot exponent of the light.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.1.2