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

Point light illuminates the scene from a given position into all directions. More...

#include <PointLightComponent.hpp>

Public Member Functions

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

Friends

class GameObject
 
class Scene
 

Detailed Description

Point light illuminates the scene from a given position into all directions.

Member Function Documentation

bool ae3d::PointLightComponent::CastsShadow ( ) const
inline
Returns
True, if the light casts a shadow.
class GameObject* ae3d::PointLightComponent::GetGameObject ( ) const
inline
Returns
GameObject that owns this component.
float ae3d::PointLightComponent::GetRadius ( ) const
inline
Returns
radius.
std::string ae3d::PointLightComponent::GetSerialized ( ) const
Returns
Serialized data.
void ae3d::PointLightComponent::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::PointLightComponent::SetRadius ( float  aRadius)
inline
Parameters
aRadiusradius

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