|
Wasabi
|
#include <WLight.hpp>
Public Member Functions | |
| WLightManager (class Wasabi *const app) | |
| WError | Load () |
| WLight * | GetDefaultLight () const |
Public Member Functions inherited from WManager< WLight > | |
| 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 | |
Public Attributes inherited from WManager< WLight > | |
| class Wasabi *const | m_app |
Protected Attributes inherited from WManager< WLight > | |
| 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.
1.8.17