#pragma once #include "TextData.h" #include #include class VisualLayer; class TriMesh; class FontsManager; class RectangleNode; template class Image; class Scene { public: Scene() = default; void syncLayers(const std::vector& layers); void update(FontsManager* fontsManager, Image* image = nullptr); unsigned getNumMeshes() const; TriMesh* getMesh(std::size_t idx) const; Image* getTexture(std::size_t idx) const; const std::vector& getTextData() const; private: void processRectangleNode(RectangleNode* node); std::vector mLayers; std::vector mWorkingMeshs; std::vector* > mTextures; std::vector mTextData; };