#pragma once #include "assetFactory/lights.h" #include "gfx/gl/instanceVertices.h" #include class AssetLights { protected: bool persist(Persistence::PersistenceStore & store); template using LightVec = std::vector; LightVec spotLight; LightVec pointLight; friend class InstanceLights; }; class InstanceLights { protected: template using LightInstanceMap = std::flat_map::InstanceProxy>; LightInstanceMap spotLightInstances; LightInstanceMap pointLightInstances; void lightsEnable(AnyPtr, uint32_t); void lightsDisable(); };