blob: 55f952968915b7a55fc20375d49dde00dbb09368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef SVGLAYER_H
#define SVGLAYER_H
#include "ofxSVGTiny.h"
class layer
{
public:
layer();
layer(string _f);
virtual ~layer();
virtual void load(string _f);
virtual void draw(float a);
protected:
private:
};
class svglayer: public layer
{
public:
svglayer();
svglayer(string _f);
virtual ~svglayer();
void load(string _f);
void draw(float a);
protected:
private:
ofxSVGTiny svg;
vector <ofColor> fills;
vector <ofColor> strokes;
};
class imglayer: public layer
{
public:
imglayer();
imglayer(string _f);
virtual ~imglayer();
void load(string _f);
void draw(float a);
protected:
private:
ofImage img;
};
#endif // SVGLAYER_H
|