Lumino
ln::DirectionalLight Class Reference

ディレクショナルライトのオブジェクトです。 More...

#include <Light.hpp>

Inheritance diagram for ln::DirectionalLight:
ln::WorldObject

Public Member Functions

void setEnabled (bool enabled)
 ライトの有効状態を設定します。false の場合、ライトはシーンに影響しません。(default: true)
 
bool isEnabled () const
 ライトの有効状態を取得します。
 
void setColor (const Color &color)
 ライトカラーを設定します。(default: White)
 
const ColorgetColor () const
 ライトカラーを取得します。
 
void setIntensity (float intensity)
 ライトの明るさを設定します。(default: 0.5)
 
float getIntensity () const
 ライトの明るさを取得します。
 
void setShadowEffectiveDistance (float value)
 視点からの、影を生成できる距離を指定します。 (default: 0.0f)
 
float shadowEffectiveDistance () const
 視点からの、影を生成できる距離を取得します。
 
void setShadowEffectiveDepth (float value)
 光源方向からの、影を生成できる距離を指定します。 (default: 0.0f) ※これはシャドウマップの深度値の範囲となります。
 
float shadowEffectiveDepth () const
 光源方向からの、影を生成できる距離を指定します。
 
DirectionalLightComponentgetDirectionalLightComponent () const
 コンポーネントを取得します。
 
- Public Member Functions inherited from ln::WorldObject
void setPosition (const Vector3 &pos)
 このオブジェクトの位置を設定します。
 
void setPosition (float x, float y, float z=0.0f)
 このオブジェクトの位置を設定します。
 
const Vector3position () const
 このオブジェクトの位置を位置を取得します。
 
void setRotation (const Quaternion &rot)
 このオブジェクトの回転を設定します。
 
void setRotation (float x, float y, float z)
 このオブジェクトの回転をオイラー角から設定します(radian単位) 。回転順序は Z(Roll) > X(Pich) > Y(Yaw) です。
 
const Quaternionrotation () const
 このオブジェクトの回転を取得します。
 
void setScale (const Vector3 &scale)
 このオブジェクトの拡大率を設定します。
 
void setScale (float xyz)
 このオブジェクトの拡大率を設定します。
 
void setScale (float x, float y, float z=1.0f)
 このオブジェクトの拡大率を設定します。
 
const Vector3scale () const
 このオブジェクトの拡大率を取得します。
 
void setCenterPoint (const Vector3 &value)
 このオブジェクトのローカルの中心位置を設定します。
 
void setCenterPoint (float x, float y, float z=0.0f)
 このオブジェクトのローカルの中心位置を設定します。
 
const Vector3centerPoint () const
 このオブジェクトのローカルの中心位置を取得します。
 
void lookAt (const Vector3 &target)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (float x, float y, float z)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (const Vector3 &target, const Vector3 &up)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (float x, float y, float z, const Vector3 &up)
 指定した座標を向くように、オブジェクトを回転させます。
 
void addComponent (Component *component)
 Component を追加します。
 
void removeComponent (Component *component)
 Component を除外します。
 
void addTag (const StringRef &tag)
 タグを追加します。
 
void removeTag (const StringRef &tag)
 タグを除外します。
 
bool hasTag (const StringRef &tag) const
 指定したタグを持っているかを確認します。
 
void destroy ()
 WorldObject を破棄します。 More...
 
bool destroyed () const
 destroy() が呼び出され、オブジェクトが破棄されようとしているか、または破棄されたかを確認します。実際の削除は、現在のフレームのアップデート処理後に行われます。
 
void removeFromParent ()
 このオブジェクトを直ちに World から除外します。このメソッドは World のアップデートシーケンス中に呼び出してはなりません。
 
Component * findComponentByType (const TypeInfo *type) const
 この WorldObject に含まれている Component のうち、指定した型である最初の Component を返します。
 
void addInto (World *world=nullptr)
 この WorldObject を指定した World へ追加します。省略した場合はデフォルトの World へ追加します。
 

Static Public Member Functions

static Ref< DirectionalLightcreate ()
 既定の設定でディレクショナルライトを作成します。
 
static Ref< DirectionalLightcreate (const Color &color)
 色を指定してディレクショナルライトを作成します。
 

Protected Member Functions

void init ()
 既定の設定でディレクショナルライトを作成します。
 
void init (const Color &color)
 色を指定してディレクショナルライトを作成します。
 
- Protected Member Functions inherited from ln::WorldObject
virtual void onPreUpdate ()
 物理演算・衝突判定の前 (onCollisionStay() などはこの後)
 
virtual void onUpdate (float elapsedSeconds)
 フレーム更新
 
bool init ()
 WorldObject を作成します。
 

Detailed Description

ディレクショナルライトのオブジェクトです。


The documentation for this class was generated from the following file: