Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
Representation of a light in the render world. More...
#include <Light.h>
Representation of a light in the render world.
render::Light::Light | ( | ) |
References initProperties(), scene::Node::mNodeType, and scene::NT_LIGHT.
render::Light::Light | ( | const std::string & | name | ) |
References initProperties(), scene::Node::mNodeType, and scene::NT_LIGHT.
render::Light::~Light | ( | ) |
const render::Color & render::Light::getAmbientColor | ( | ) | const |
References mAmbient.
f32 render::Light::getAttenuationConstant | ( | ) | const |
References mAttenuationConst.
Referenced by render::ShaderParamData::getCurrentLightAttenuation().
f32 render::Light::getAttenuationLinear | ( | ) | const |
References mAttenuationLinear.
Referenced by render::ShaderParamData::getCurrentLightAttenuation().
f32 render::Light::getAttenuationQuadric | ( | ) | const |
References mAttenuationQuad.
Referenced by render::ShaderParamData::getCurrentLightAttenuation().
f32 render::Light::getAttenuationRange | ( | ) | const |
References mRange.
Referenced by render::ShaderParamData::getCurrentLightAttenuation().
const render::Color & render::Light::getDiffuseColor | ( | ) | const |
References mDiffuse.
Referenced by render::ShaderParamData::getCurrentLightDiffuseColour().
LightType render::Light::getLightType | ( | ) |
References mLightType.
Referenced by render::ShaderParamData::getCurrentLightPositionObjectSpace().
f32 render::Light::getPowerScale | ( | ) | const |
References mPowerScale.
const render::Color & render::Light::getSpecularColor | ( | ) | const |
References mSpecular.
Referenced by render::ShaderParamData::getCurrentLightSpecularColour().
f32 render::Light::getSpotlightFalloff | ( | ) | const |
References mSpotFalloff.
f32 render::Light::getSpotlightInnerAngle | ( | ) | const |
References mSpotInner.
f32 render::Light::getSpotlightOuterAngle | ( | ) | const |
References mSpotOuter.
void render::Light::initProperties | ( | ) | [private] |
Reimplemented from scene::Node.
References render::Color::Black, render::LT_POINT, mAmbient, mAttenuationConst, mAttenuationLinear, mAttenuationQuad, mDiffuse, mLightType, mPowerScale, mRange, mSpecular, mSpotFalloff, mSpotInner, mSpotOuter, mVisible, and render::Color::White.
Referenced by Light().
bool render::Light::isVisible | ( | ) |
References mVisible.
References render::Color::B, render::Color::G, mAmbient, scene::Node::mModifiedAbsoluteTransform, and render::Color::R.
void render::Light::setAmbientColor | ( | const render::Color & | color | ) |
References mAmbient, and scene::Node::mModifiedAbsoluteTransform.
References mAttenuationConst, mAttenuationLinear, mAttenuationQuad, and mRange.
void render::Light::setAttenuationConstant | ( | f32 | constant | ) |
References mAttenuationConst.
void render::Light::setAttenuationLinear | ( | f32 | linear | ) |
References mAttenuationLinear.
void render::Light::setAttenuationQuadric | ( | f32 | quadratic | ) |
References mAttenuationQuad.
void render::Light::setDiffuseColor | ( | const render::Color & | color | ) |
References mDiffuse.
References render::Color::B, render::Color::G, mDiffuse, and render::Color::R.
void render::Light::setLightType | ( | LightType | type | ) |
References mLightType, and scene::Node::mModifiedAbsoluteTransform.
void render::Light::setPowerScale | ( | f32 | power | ) |
References mPowerScale.
References render::Color::B, render::Color::G, mSpecular, and render::Color::R.
void render::Light::setSpecularColor | ( | const render::Color & | color | ) |
References mSpecular.
void render::Light::setSpotlightFalloff | ( | f32 | falloff | ) |
References render::LT_SPOTLIGHT, mLightType, and mSpotFalloff.
void render::Light::setSpotlightInnerAngle | ( | f32 | innerAngle | ) |
References render::LT_SPOTLIGHT, mLightType, and mSpotInner.
void render::Light::setSpotlightOuterAngle | ( | f32 | outerAngle | ) |
References render::LT_SPOTLIGHT, mLightType, and mSpotOuter.
References render::LT_SPOTLIGHT, mLightType, mSpotFalloff, mSpotInner, and mSpotOuter.
void render::Light::setVisible | ( | bool | visible | ) |
References mVisible.
render::Color render::Light::mAmbient [private] |
Referenced by getAmbientColor(), initProperties(), operator=(), and setAmbientColor().
f32 render::Light::mAttenuationConst [private] |
Referenced by getAttenuationConstant(), initProperties(), operator=(), setAttenuation(), and setAttenuationConstant().
f32 render::Light::mAttenuationLinear [private] |
Referenced by getAttenuationLinear(), initProperties(), operator=(), setAttenuation(), and setAttenuationLinear().
f32 render::Light::mAttenuationQuad [private] |
Referenced by getAttenuationQuadric(), initProperties(), operator=(), setAttenuation(), and setAttenuationQuadric().
render::Color render::Light::mDiffuse [private] |
Referenced by getDiffuseColor(), initProperties(), operator=(), and setDiffuseColor().
LightType render::Light::mLightType [private] |
f32 render::Light::mPowerScale [private] |
Referenced by getPowerScale(), initProperties(), operator=(), and setPowerScale().
f32 render::Light::mRange [private] |
Referenced by getAttenuationRange(), initProperties(), operator=(), setAttenuation(), and setAttenuationRange().
u32 render::Light::msNextGeneratedLightIndex = 0 [static, private] |
render::Color render::Light::mSpecular [private] |
Referenced by getSpecularColor(), initProperties(), operator=(), and setSpecularColor().
f32 render::Light::mSpotFalloff [private] |
Referenced by getSpotlightFalloff(), initProperties(), operator=(), setSpotlightFalloff(), and setSpotlightRange().
f32 render::Light::mSpotInner [private] |
Referenced by getSpotlightInnerAngle(), initProperties(), operator=(), setSpotlightInnerAngle(), and setSpotlightRange().
f32 render::Light::mSpotOuter [private] |
Referenced by getSpotlightOuterAngle(), initProperties(), operator=(), setSpotlightOuterAngle(), and setSpotlightRange().
bool render::Light::mVisible [private] |
Referenced by initProperties(), isVisible(), operator=(), and setVisible().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:08 by
Doxygen
(1.7.4)
|