Wasabi
Public Member Functions | Friends | List of all members
WLightManager Class Reference

#include <WLight.hpp>

Inheritance diagram for WLightManager:
WManager< WLight >

Public Member Functions

 WLightManager (class Wasabi *const app)
 
WError Load ()
 
WLightGetDefaultLight () 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 ()
 
WLightGetEntity (uint32_t ID) const
 
WLightGetEntity (std::string name) const
 
WLightGetEntityByIndex (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
 

Detailed Description

Manager class for WLight.

Member Function Documentation

◆ GetDefaultLight()

WLight* WLightManager::GetDefaultLight ( ) const

Retrieves the default (directional) light.

Returns
Pointer to the default light

◆ Load()

WError WLightManager::Load ( )

Loads the manager and creates the default directional light.

Returns
Error code, see WError.h

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