Aether3D Game Engine
Public Member Functions | Friends | List of all members
ae3d::DirectionalLightComponent Class Reference

Directional light illuminates the Scene from a given direction. Ideal for sunlight. More...

#include <DirectionalLightComponent.hpp>

Public Member Functions

class GameObjectGetGameObject () const
 
bool CastsShadow () const
 
void SetCastShadow (bool enable, int shadowMapSize)
 
std::string GetSerialized () const
 

Friends

class GameObject
 
class Scene
 

Detailed Description

Directional light illuminates the Scene from a given direction. Ideal for sunlight.

Member Function Documentation

bool ae3d::DirectionalLightComponent::CastsShadow ( ) const
inline
Returns
True, if the light casts a shadow.
class GameObject* ae3d::DirectionalLightComponent::GetGameObject ( ) const
inline
Returns
GameObject that owns this component.
std::string ae3d::DirectionalLightComponent::GetSerialized ( ) const
Returns
Serialized data.
void ae3d::DirectionalLightComponent::SetCastShadow ( bool  enable,
int  shadowMapSize 
)
Parameters
enableIf true, the light will cast a shadow.
shadowMapSizeShadow map size in pixels. If it's invalid, it falls back to 512.

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