#pragma once #include "ofMain.h" #include "ofxMsdfgen.h" #include "Layer.h" #include namespace ofxVariableLab { class LayerComposition { public: void setup(); void update(); void draw() const; shared_ptr getAtlasImage(); #ifdef TARGET_EMSCRIPTEN #else #endif private: ofxMsdfgen::Atlas atlas; shared_ptr atlasImage; vector glyphGeometries; shared_ptr msdfShader; vector > layers; }; }