ofxVariableLab/src/LayerComposition.h

30 lines
619 B
C
Raw Normal View History

2023-03-25 18:59:58 +01:00
#pragma once
#include "ofMain.h"
#include "ofxMsdfgen.h"
#include "Layer.h"
#include <unordered_map>
namespace ofxVariableLab {
class LayerComposition {
public:
void setup();
void update();
void draw() const;
shared_ptr <ofImage> getAtlasImage();
#ifdef TARGET_EMSCRIPTEN
#else
#endif
private:
2023-03-26 21:19:37 +02:00
shared_ptr <ofxMsdfgen::Atlas> atlas;
2023-03-25 18:59:58 +01:00
shared_ptr <ofImage> atlasImage;
vector <ofxMsdfgen::GlyphGeometry> glyphGeometries;
shared_ptr <ofShader> msdfShader;
vector <unique_ptr <ofxVariableLab::Layer> > layers;
};
}