diff --git a/include/llmr/map/map.hpp b/include/llmr/map/map.hpp index 49050540c..5f46c0e7e 100644 --- a/include/llmr/map/map.hpp +++ b/include/llmr/map/map.hpp @@ -97,13 +97,13 @@ public: public: inline const TransformState &getState() const { return state; } - inline const Style &getStyle() const { return style; } - inline GlyphAtlas &getGlyphAtlas() { return glyphAtlas; } - inline GlyphStore &getGlyphStore() { return glyphStore; } - inline SpriteAtlas &getSpriteAtlas() { return spriteAtlas; } + inline std::shared_ptr getStyle() const { return style; } + inline std::shared_ptr getGlyphAtlas() { return glyphAtlas; } + inline std::shared_ptr getGlyphStore() { return glyphStore; } + inline std::shared_ptr getSpriteAtlas() { return spriteAtlas; } + inline std::shared_ptr getTexturepool() { return texturepool; } inline uv_loop_t *getLoop() { return loop; } inline time getAnimationTime() const { return animationTime; } - inline Texturepool &getTexturepool() { return texturepool; } inline const Sources &getSources() { return sources; } private: @@ -151,11 +151,12 @@ private: Transform transform; TransformState state; - Texturepool texturepool; - Style style; - GlyphAtlas glyphAtlas; - GlyphStore glyphStore; - SpriteAtlas spriteAtlas; + std::shared_ptr