Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CLightmap Class Reference
Inheritance diagram for Skylicht::CLightmap:
Skylicht::CComponentSystem Skylicht::IActivatorObject

Public Member Functions

virtual void initComponent ()
virtual void startComponent ()
virtual void updateComponent ()
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
void updateLightmap (bool loadLightmap=true)
void setLightmap (ITexture *texture, int beginIndex)
void changeLightmapShader ()
void changeLightmapShader (const char *shader)
void changeDefaultShader ()
const std::string & getLightmapShader ()
ITexture * getLightmap ()
std::vector< CLightmapData * > & getData ()
const std::vector< std::string > & getLightDataExternal ()
bool isLightmapEmpty ()
bool isLightmapChanged (const std::vector< std::string > &paths)
Public Member Functions inherited from Skylicht::CComponentSystem
const char * getName ()
virtual void reset ()
virtual void endUpdate ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Protected Member Functions

void addLightingData (CEntity *entity)
Protected Member Functions inherited from Skylicht::CComponentSystem
void setOwner (CGameObject *obj)

Protected Attributes

std::vector< std::string > m_lightmapPaths
std::vector< std::string > m_lightDataExternal
ITexture * m_lightmap
std::string m_lightmapShader
bool m_autoLoadLightmap
int m_lightmapBeginIndex
bool m_applyChilds
bool m_textureOwner
std::vector< CLightmapData * > m_data
Protected Attributes inherited from Skylicht::CComponentSystem
CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Additional Inherited Members

Static Public Member Functions inherited from Skylicht::CComponentSystem
static int useComponent (CComponentSystem *used)

Member Function Documentation

◆ createSerializable()

virtual CObjectSerializable * Skylicht::CLightmap::createSerializable ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ initComponent()

virtual void Skylicht::CLightmap::initComponent ( )
virtual

◆ loadSerializable()

virtual void Skylicht::CLightmap::loadSerializable ( CObjectSerializable * object)
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ startComponent()

virtual void Skylicht::CLightmap::startComponent ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ updateComponent()

virtual void Skylicht::CLightmap::updateComponent ( )
virtual

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