diff options
Diffstat (limited to 'liveengine/src/layers.h')
| -rwxr-xr-x | liveengine/src/layers.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/liveengine/src/layers.h b/liveengine/src/layers.h index 6155626..3218264 100755 --- a/liveengine/src/layers.h +++ b/liveengine/src/layers.h @@ -10,12 +10,13 @@ class layer layer(string _f) {load(_f);};
virtual ~layer(){};
virtual void load(string _f){};
- virtual void draw(float a){}; - virtual void draw(float a,unsigned char* controllers,bool transparentBlack=false){ draw(a);}; + virtual void draw(float a,int cx,int cy){}; + virtual void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack=false){ draw(a,cx,cy);}; bool getLoaded() {return isLoaded;};
protected: - bool isLoaded;
+ bool isLoaded;
private:
+
};
class svglayer: public layer
@@ -25,9 +26,9 @@ class svglayer: public layer svglayer(string _f);
virtual ~svglayer();
void load(string _f);
- void draw(float a); - void draw(float a,unsigned char* controllers,bool transparentBlack=false);
- void getCentre();
+ void draw(float a,int cx,int cy); + void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack=false);
+ void getCentre(int cx,int cy);
protected:
private:
ofxSVGTiny svg; @@ -43,8 +44,8 @@ class imglayer: public layer imglayer(string _f);
virtual ~imglayer();
void load(string _f);
- void draw(float a); - void draw(float a,unsigned char* controllers);
+ void draw(float a,int cx,int cy); + void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack);
protected:
private:
ofImage img;
|
