7 #ifndef CAFU_GUISYS_COMPONENT_IMAGE_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_IMAGE_HPP_INCLUDED
10 #include "CompBase.hpp"
13 namespace MatSys {
class RenderMaterialT; }
36 const std::string&
GetMatName()
const {
return m_MatName.Get(); }
40 const char*
GetName()
const {
return "Image"; }
54 static int toString(lua_State* LuaState);
57 static const char* DocClass;
70 VarMatNameT(
const char* Name,
const std::string& Value,
const char* Flags[],
ComponentImageT& CompImg);
74 void Set(
const std::string& v);
83 void FillMemberVars();
85 VarMatNameT m_MatName;
ComponentImageT()
The constructor.
Definition: CompImage.cpp:93
ComponentImageT * Clone() const
The virtual copy constructor.
Definition: CompImage.cpp:138
This class represents a surface render material.
Definition: RenderMaterial.hpp:25
const std::string & GetMatName() const
Returns the name of the MatSys material that is used for the image.
Definition: CompImage.hpp:36
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
~ComponentImageT()
The destructor.
Definition: CompImage.cpp:126
This is the base class for the components that a window is composed/aggregated of.
Definition: CompBase.hpp:51
void UpdateDependencies(WindowT *Window)
This method is called whenever something "external" to this component has changed: ...
Definition: CompImage.cpp:144
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompImage.hpp:56
This component adds an image to its window.
Definition: CompImage.hpp:21
This class represents a window of the GuiSys.
Definition: Window.hpp:54
const char * GetName() const
Returns the name of this component.
Definition: CompImage.hpp:40
void Render() const
This method implements the graphical output of this component.
Definition: CompImage.cpp:180
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
Definition: TypeSys.hpp:68