Wasabi
|
#include <WLight.hpp>
Public Member Functions | |
WLightManager (class Wasabi *const app) | |
WError | Load () |
WLight * | GetDefaultLight () const |
![]() | |
WManager (class Wasabi *const a) | |
bool | RegisterChangeCallback (std::string name, std::function< void(WLight *, bool)> callback) |
void | RemoveChangeCallback (std::string name) |
void | AddEntity (WLight *entity) |
bool | RemoveEntity (WLight *entity) |
void | OnEntityNameChanged (WLight *entity, std::string oldName) |
virtual void | Init () |
WLight * | GetEntity (uint32_t ID) const |
WLight * | GetEntity (std::string name) const |
WLight * | GetEntityByIndex (uint32_t index) const |
uint32_t | GetEntitiesCount (void) const |
Friends | |
class | WLight |
Additional Inherited Members | |
![]() | |
class Wasabi *const | m_app |
![]() | |
std::vector< WLight * > | m_entities [W_HASHTABLESIZE] |
std::unordered_map< std::string, WLight * > | m_entitiesByName |
Manager class for WLight.
WLight* WLightManager::GetDefaultLight | ( | ) | const |
Retrieves the default (directional) light.
WError WLightManager::Load | ( | ) |
Loads the manager and creates the default directional light.