28 #include <unordered_map>
89 std::map<size_t, LightPtr> _lights;
90 std::unordered_map<LightPtr, size_t> _lightsInverse;
Manages light sources in a scene.
PLATFORM_API void clearLights()
clearLights Removes all light sources managed by the LightManager object.
PLATFORM_API void removeLight(const size_t id)
removeLight Removes a light source from the scene for a given ID.
PLATFORM_API const std::map< size_t, LightPtr > & getLights() const
getLights Gets all light sources currently managed by the LightManager object.
PLATFORM_API size_t addLight(LightPtr light)
addLight Attaches a light source to the scene.
PLATFORM_API LightPtr getLight(const size_t id)
getLight Gets a light source from the scene for a given ID. Note: If changing the light then call mar...
std::shared_ptr< Light > LightPtr