#include <Light.h>
Inheritance diagram for Lamp::Light:
Public Member Functions | |
virtual Light * | copyLight () const=0 |
コピー | |
virtual void | setColor (const Color3f &color)=0 |
ライト色の設定 | |
virtual Color3f | getColor () const=0 |
ライト色の取得 | |
virtual float | getLuminance () const |
輝度の取得 | |
virtual void | setLightMask (u_int lightMask) |
ライトマスクの設定 | |
virtual u_int | getLightMask () const |
ライトマスクの取得 | |
virtual bool | isLight () const |
ライトかどうか | |
virtual bool | isGlobalLight () const |
グローバルライトかどうか | |
virtual GlobalLight * | castGlobalLight () const |
グローバルライトへのキャスト | |
virtual bool | isLocalLight () const |
ローカルライトかどうか | |
virtual LocalLight * | castLocalLight () const |
ローカルライトへのキャスト | |
virtual bool | isAmbientLight () const |
アンビエントライトかどうか | |
virtual AmbientLight * | castAmbientLight () const |
アンビエントライトへのキャスト | |
virtual bool | isDirectionalLight () const |
ディレクショナルライトかどうか | |
virtual DirectionalLight * | castDirectionalLight () const |
ディレクショナルライトへのキャスト | |
virtual bool | isPointLight () const |
ポイントライトかどうか | |
virtual PointLight * | castPointLight () const |
ポイントライトへのキャスト | |
Static Public Member Functions | |
int | destroy (Light *light) |
破棄 | |
Protected Member Functions | |
Light (const String &name, Scene *scene) | |
コンストラクタ | |
virtual | ~Light () |
デストラクタ | |
virtual void | copyLightValue (Light *destination) const |
ライトの値コピー | |
Friends | |
class | SceneObjectManagerTemplate< Light > |
class | LightManager |
Definition at line 42 of file Light.h.
|
コンストラクタ
|
|
アンビエントライトへのキャスト
Definition at line 145 of file Light.h. References isAmbientLight(), and NULL. Referenced by Lamp::Renderer::initializeDrawRequest(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
ディレクショナルライトへのキャスト
Definition at line 161 of file Light.h. References isDirectionalLight(), and NULL. Referenced by Lamp::Renderer::initializeDrawRequest(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
グローバルライトへのキャスト
Definition at line 113 of file Light.h. References isGlobalLight(), and NULL. |
|
ローカルライトへのキャスト
Definition at line 129 of file Light.h. References isLocalLight(), and NULL. |
|
ポイントライトへのキャスト
Definition at line 177 of file Light.h. References isPointLight(), and NULL. Referenced by Lamp::Scene::getLocalLightList(), Lamp::FixedShader::setupFixedLight(), Lamp::DrawRequest::sortLocalLightsImprement(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
コピー
Implemented in Lamp::AmbientLight, Lamp::DirectionalLight, and Lamp::PointLight. |
|
ライトの値コピー
Definition at line 43 of file Light.cpp. References Lamp::SceneLeaf::copySceneLeafValue(), and setLightMask(). Referenced by Lamp::AmbientLight::copyAmbientLight(), Lamp::DirectionalLight::copyDirectionalLight(), and Lamp::PointLight::copyPointLight(). |
|
破棄
Definition at line 51 of file Light.cpp. References Assert, Lamp::SceneObjectManagerTemplate< Light >::destroy(), Lamp::Scene::getLightManager(), Lamp::SceneObject::getScene(), and NULL. |
|
ライト色の取得
Implemented in Lamp::AmbientLight, Lamp::DirectionalLight, and Lamp::PointLight. Referenced by getLuminance(). |
|
ライトマスクの取得
Definition at line 91 of file Light.h. References u_int. Referenced by Lamp::DrawRequest::getAmbientColor(), Lamp::Scene::getLocalLightList(), Lamp::FixedShader::setupFixedLight(), Lamp::TextSceneSaver::writeLight(), and Lamp::BinarySceneSaver::writeLight(). |
|
輝度の取得
Definition at line 78 of file Light.h. References getColor(), and Lamp::Color3f::getLuminance(). |
|
アンビエントライトかどうか
Reimplemented in Lamp::AmbientLight. Definition at line 139 of file Light.h. Referenced by castAmbientLight(), Lamp::Renderer::initializeDrawRequest(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
ディレクショナルライトかどうか
Reimplemented in Lamp::DirectionalLight. Definition at line 155 of file Light.h. Referenced by castDirectionalLight(), Lamp::Renderer::initializeDrawRequest(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
グローバルライトかどうか
Reimplemented in Lamp::GlobalLight. Definition at line 107 of file Light.h. Referenced by castGlobalLight(). |
|
ライトかどうか
Reimplemented from Lamp::SceneObject. |
|
ローカルライトかどうか
Reimplemented in Lamp::LocalLight. Definition at line 123 of file Light.h. Referenced by castLocalLight(), and Lamp::Scene::getLocalLightList(). |
|
ポイントライトかどうか
Reimplemented in Lamp::PointLight. Definition at line 171 of file Light.h. Referenced by castPointLight(), Lamp::Scene::getLocalLightList(), Lamp::FixedShader::setupFixedLight(), Lamp::TextSceneSaver::writeLightList(), and Lamp::BinarySceneSaver::writeLightList(). |
|
ライト色の設定
Implemented in Lamp::AmbientLight, Lamp::DirectionalLight, and Lamp::PointLight. |
|
ライトマスクの設定
Definition at line 85 of file Light.h. Referenced by copyLightValue(), Lamp::TextSceneLoader::readLight(), and Lamp::BinarySceneLoader::readLight(). |