#pragma once #include "ofMain.h" #include "AtlasLayerCombo.h" #include "MsdfAtlasLayerCombo.h" #include "MsdfLayer.h" #include "GPUFontAtlasLayerCombo.h" #include "GPUFontLayer.h" namespace ofxVariableLab { class LayerComposition { public: void setup(); void update(); void draw() const; LayerID addLayer(const ComboIdentifier & identifier, const string & text, const std::vector & variations); LayerID addLayer(const ComboIdentifier & identifier, const Layer::Props & props, const std::vector & variations); shared_ptr getLayer(const LayerID & layerID); const unordered_map > & getAtlasLayerCombos() const; void setVFlip(bool vFlip); private: VFlipState vFlipState = V_FLIP_UNKNOWN; unordered_map > layers; unordered_map > atlasLayerCombos; //unordered_map > layers; }; }