2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::Light< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Light< / A > < / H2 > < / H2 > < BLOCKQUOTE > Light state class which encapsulates OpenGL glLight() functionality< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 125 >
< param name = classes value = "CReferenced,MReferenced.html,CObject,MObject.html,CStateAttribute,MStateAttribute.html,CLight,MLight.html" >
< param name = before value = "M,M,M,M" >
< param name = after value = "Md_SPSP,Md_SP,Md_,M" >
< param name = indent value = "0,1,2,3" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.42.1" > Light< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.42.2" > META_StateAttribute< / A > < / B > (<!1> < A HREF = "Light.html" > Light< / A > , (<!1> < A HREF = "StateAttribute.html#DOC.2.80.5" > Type< / A > )(<!1> < A HREF = "StateAttribute.html#DOC.2.80.6.8" > LIGHT_0< / A > +<!1> < A HREF = "Light.html#DOC.2.42.30" > _lightnum< / A > ))
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual int < B > < A HREF = "#DOC.2.42.3" > compare< / A > < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & sa) const
< DD > < I > return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs< / I >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.4" > on< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Turn the light on.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.5" > off< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Turn the light off.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.42.6" > apply< / A > < / B > (<!1> < A HREF = "State.html" > State< / A > & state) const
2001-09-20 05:19:47 +08:00
< DD > < I > Apply the light's state to the OpenGL state machine.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.7" > setAmbient< / A > < / B > ( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & ambient )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the ambient component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & < B > < A HREF = "#DOC.2.42.8" > getAmbient< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the ambient component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.9" > setDiffuse< / A > < / B > ( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & diffuse )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the diffuse component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & < B > < A HREF = "#DOC.2.42.10" > getDiffuse< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the diffuse component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.11" > setSpecular< / A > < / B > ( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & specular )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the specular component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & < B > < A HREF = "#DOC.2.42.12" > getSpecular< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the specular component of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.13" > setPosition< / A > < / B > ( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & position )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the position of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & < B > < A HREF = "#DOC.2.42.14" > getPosition< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the position of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.15" > setDirection< / A > < / B > ( const <!1> < A HREF = "Vec3.html" > Vec3< / A > & direction )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the direction of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Vec3.html" > Vec3< / A > & < B > < A HREF = "#DOC.2.42.16" > getDirection< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the direction of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.17" > setConstantAttenuation< / A > < / B > ( const float constant_attenuation )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the constant attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const float < B > < A HREF = "#DOC.2.42.18" > getConstantAttenuation< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the constant attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.19" > setLinearAttenuation< / A > < / B > ( const float linear_attenuation )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the linear attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const float < B > < A HREF = "#DOC.2.42.20" > getLinearAttenuation< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the linear attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.21" > setQuadraticAttenuation< / A > < / B > ( const float quadratic_attenuation )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the quadratic attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const float < B > < A HREF = "#DOC.2.42.22" > getQuadraticAttenuation< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the quadratic attenuation of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.23" > setSpotExponent< / A > < / B > ( const float spot_exponent )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the spot exponent of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const float < B > < A HREF = "#DOC.2.42.24" > getSpotExponent< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the spot exponent of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.42.25" > setSpotCutoff< / A > < / B > ( const float spot_cutoff )
2001-09-20 05:19:47 +08:00
< DD > < I > Set the spot cutoff of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const float < B > < A HREF = "#DOC.2.42.26" > getSpotCutoff< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the spot cutoff of the light.< / I >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.42.27" > captureLightState< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Capture the lighting settings of the current OpenGL state and store them in this object< / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.42.30" > _lightnum< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > bool < B > < A HREF = "#DOC.2.42.31" > _on< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Vec4.html" > Vec4< / A > < B > < A HREF = "#DOC.2.42.32" > _ambient< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Vec4.html" > Vec4< / A > < B > < A HREF = "#DOC.2.42.33" > _diffuse< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Vec4.html" > Vec4< / A > < B > < A HREF = "#DOC.2.42.34" > _specular< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Vec4.html" > Vec4< / A > < B > < A HREF = "#DOC.2.42.35" > _position< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Vec3.html" > Vec3< / A > < B > < A HREF = "#DOC.2.42.36" > _direction< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > float < B > < A HREF = "#DOC.2.42.37" > _constant_attenuation< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > float < B > < A HREF = "#DOC.2.42.38" > _linear_attenuation< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > float < B > < A HREF = "#DOC.2.42.39" > _quadratic_attenuation< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > float < B > < A HREF = "#DOC.2.42.40" > _spot_exponent< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > float < B > < A HREF = "#DOC.2.42.41" > _spot_cutoff< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static int < B > < A HREF = "#DOC.2.42.42" > _currentLightNum< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.42.28" > ~Light< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.42.29" > init< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Initialize the light's settings with some decent defaults.< / I >
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "StateAttribute.html" > StateAttribute< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "o" SRC = icon2.gif > virtual <!1> < A HREF = "Object.html" > Object< / A > * < B > clone< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual bool < B > isSameKindAs< / B > (const <!1> < A HREF = "Object.html" > Object< / A > * obj) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual const char* < B > className< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual const <!1> < A HREF = "StateAttribute.html#DOC.2.80.5" > Type< / A > < B > getType< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator < < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator == < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator != < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual void < B > setStateSetModes< / B > (<!1> < A HREF = "StateSet.html" > StateSet< / A > & , const <!1> < A HREF = "StateAttribute.html#DOC.2.80.2" > GLModeValue< / A > ) const
< DT >
2001-09-20 05:19:47 +08:00
< IMG ALT = "o" SRC = icon2.gif > virtual void < B > compile< / B > (<!1> < A HREF = "State.html" > State< / A > & ) const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > typedef GLenum < B > GLMode< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > GLModeValue< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > OverrideValue< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > Values< / B >
< DT >
2001-09-22 10:42:08 +08:00
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > Type< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > Types< / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Object.html" > Object< / A > :< / H3 >
< DL >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Referenced.html" > Referenced< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > & < B > operator = < / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > ref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline const int < B > referenceCount< / B > () const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > mutable int < B > _refCount< / B >
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Light state class which encapsulates OpenGL glLight() functionality< / BLOCKQUOTE >
< DL >
< A NAME = "Light" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.1" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Light()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "META_StateAttribute" > < / A >
< A NAME = "DOC.2.42.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > META_StateAttribute(<!1> < A HREF = "Light.html" > Light< / A > , (<!1> < A HREF = "StateAttribute.html#DOC.2.80.5" > Type< / A > )(<!1> < A HREF = "StateAttribute.html#DOC.2.80.6.8" > LIGHT_0< / A > +<!1> < A HREF = "Light.html#DOC.2.42.30" > _lightnum< / A > ))< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "compare" > < / A >
< A NAME = "DOC.2.42.3" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual int compare(const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & sa) const < / B > < / TT >
< DD > return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "on" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.4" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void on()< / B > < / TT >
< DD >
Turn the light on.
Calling this method doesn't directly affect OpenGL's lighting mode.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "off" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.5" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void off()< / B > < / TT >
< DD >
Turn the light off.
Calling this method doesn't directly affect OpenGL's lighting mode.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.6" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "State.html" > State< / A > & state) const < / B > < / TT >
< DD > Apply the light's state to the OpenGL state machine.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setAmbient" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.7" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setAmbient( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & ambient )< / B > < / TT >
< DD > Set the ambient component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getAmbient" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.8" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & getAmbient() const < / B > < / TT >
< DD > Get the ambient component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDiffuse" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.9" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setDiffuse( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & diffuse )< / B > < / TT >
< DD > Set the diffuse component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDiffuse" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.10" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & getDiffuse() const < / B > < / TT >
< DD > Get the diffuse component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setSpecular" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.11" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setSpecular( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & specular )< / B > < / TT >
< DD > Set the specular component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getSpecular" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.12" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & getSpecular() const < / B > < / TT >
< DD > Get the specular component of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setPosition" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.13" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setPosition( const <!1> < A HREF = "Vec4.html" > Vec4< / A > & position )< / B > < / TT >
< DD > Set the position of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getPosition" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.14" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Vec4.html" > Vec4< / A > & getPosition() const < / B > < / TT >
< DD > Get the position of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setDirection" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.15" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setDirection( const <!1> < A HREF = "Vec3.html" > Vec3< / A > & direction )< / B > < / TT >
< DD > Set the direction of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getDirection" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.16" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Vec3.html" > Vec3< / A > & getDirection() const < / B > < / TT >
< DD > Get the direction of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setConstantAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.17" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setConstantAttenuation( const float constant_attenuation )< / B > < / TT >
< DD > Set the constant attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getConstantAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.18" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const float getConstantAttenuation() const < / B > < / TT >
< DD > Get the constant attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setLinearAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.19" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setLinearAttenuation( const float linear_attenuation )< / B > < / TT >
< DD > Set the linear attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getLinearAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.20" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const float getLinearAttenuation() const < / B > < / TT >
< DD > Get the linear attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setQuadraticAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.21" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setQuadraticAttenuation( const float quadratic_attenuation )< / B > < / TT >
< DD > Set the quadratic attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getQuadraticAttenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.22" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const float getQuadraticAttenuation() const < / B > < / TT >
< DD > Get the quadratic attenuation of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setSpotExponent" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.23" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setSpotExponent( const float spot_exponent )< / B > < / TT >
< DD > Set the spot exponent of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getSpotExponent" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.24" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const float getSpotExponent() const < / B > < / TT >
< DD > Get the spot exponent of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setSpotCutoff" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.25" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setSpotCutoff( const float spot_cutoff )< / B > < / TT >
< DD > Set the spot cutoff of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getSpotCutoff" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.26" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const float getSpotCutoff() const < / B > < / TT >
< DD > Get the spot cutoff of the light.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "captureLightState" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.27" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void captureLightState()< / B > < / TT >
< DD >
Capture the lighting settings of the current OpenGL state
and store them in this object
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Light" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.28" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Light()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "init" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.29" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void init()< / B > < / TT >
< DD > Initialize the light's settings with some decent defaults.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_lightnum" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.30" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _lightnum< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_on" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.31" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > bool _on< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_ambient" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.32" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Vec4.html" > Vec4< / A > _ambient< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_diffuse" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.33" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Vec4.html" > Vec4< / A > _diffuse< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_specular" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.34" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Vec4.html" > Vec4< / A > _specular< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_position" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.35" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Vec4.html" > Vec4< / A > _position< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_direction" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.36" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Vec3.html" > Vec3< / A > _direction< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_constant_attenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.37" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > float _constant_attenuation< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_linear_attenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.38" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > float _linear_attenuation< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_quadratic_attenuation" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.39" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > float _quadratic_attenuation< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_spot_exponent" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.40" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > float _spot_exponent< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_spot_cutoff" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.41" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > float _spot_cutoff< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_currentLightNum" > < / A >
2001-09-22 10:42:08 +08:00
< A NAME = "DOC.2.42.42" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static int _currentLightNum< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR > < DL > < DT > < B > This class has no child classes.< / B > < / DL >
< DL > < DT > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >