7 #ifndef CAFU_GAMESYS_COMPONENT_POINT_LIGHT_HPP_INCLUDED
8 #define CAFU_GAMESYS_COMPONENT_POINT_LIGHT_HPP_INCLUDED
10 #include "CompLight.hpp"
27 enum { NONE = 0, STENCIL };
29 VarShadowTypeT(
const char* Name,
const int& Value,
const char* Flags[]=NULL);
43 bool IsOn()
const {
return m_On.
Get(); }
44 Vector3fT GetColor()
const {
return m_Color.Get(); }
45 float GetRadius()
const {
return m_Radius.
Get(); }
46 bool CastsShadows()
const {
return m_ShadowType.
Get() != VarShadowTypeT::NONE; }
51 const char*
GetName()
const override {
return "PointLight"; }
64 static int toString(lua_State* LuaState);
67 static const char* DocClass;
ComponentPointLightT()
The constructor.
Definition: CompLightPoint.cpp:61
ComponentPointLightT * Clone() const override
The virtual copy constructor.
Definition: CompLightPoint.cpp:89
The common base class for light source components.
Definition: CompLight.hpp:18
const char * GetName() const override
Returns the name of this component.
Definition: CompLightPoint.hpp:51
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
A variable of type int, specifically for the type of shadow that a light source casts.
Definition: CompLightPoint.hpp:23
void GetChoices(ArrayT< std::string > &Strings, ArrayT< int > &Values) const
This method returns a list of acceptable input values for this variable, along with a string represen...
Definition: CompLightPoint.cpp:30
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompLightPoint.hpp:66
This component adds a dynamic point light source to its entity.
Definition: CompLightPoint.hpp:18
BoundingBox3fT GetCullingBB() const override
This method returns a bounding-box that encloses the visual representation of this component...
Definition: CompLightPoint.cpp:95
Definition: TypeSys.hpp:52
Definition: TypeSys.hpp:57
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
const T & Get() const
Returns the value of this variable.
Definition: Variables.hpp:182
Definition: TypeSys.hpp:68