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

Spot light illuminates the scene from a given position with a viewing cone. More...

#include <SpotLightComponent.hpp>

Public Member Functions

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

Friends

class GameObject
 
class Scene
 

Detailed Description

Spot light illuminates the scene from a given position with a viewing cone.

Member Function Documentation

bool ae3d::SpotLightComponent::CastsShadow ( ) const
inline
Returns
True, if the light casts a shadow.
float ae3d::SpotLightComponent::GetConeAngle ( ) const
inline
Returns
Cone angle in degrees.
class GameObject* ae3d::SpotLightComponent::GetGameObject ( ) const
inline
Returns
GameObject that owns this component.
std::string ae3d::SpotLightComponent::GetSerialized ( ) const
Returns
Serialized data.
void ae3d::SpotLightComponent::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.
void ae3d::SpotLightComponent::SetConeAngle ( float  degrees)
inline
Parameters
degreesAngle in degrees.

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