From 65cf7b27e9d2f9e59da322b4fbad1ed1df27eb8d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 2 Sep 2012 12:18:44 +0100 Subject: v 0.1 --- liveengine/src/layers.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'liveengine/src/layers.h') diff --git a/liveengine/src/layers.h b/liveengine/src/layers.h index f7cbc85..11e50ab 100644 --- a/liveengine/src/layers.h +++ b/liveengine/src/layers.h @@ -6,11 +6,12 @@ class layer { public: - layer(); - layer(string _f); - virtual ~layer(); - virtual void load(string _f); - virtual void draw(float a); + 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){ draw(a);}; protected: private: }; @@ -22,7 +23,8 @@ class svglayer: public layer svglayer(string _f); virtual ~svglayer(); void load(string _f); - void draw(float a); + void draw(float a); + void draw(float a,unsigned char* controllers); protected: private: ofxSVGTiny svg; @@ -38,7 +40,8 @@ class imglayer: public layer imglayer(string _f); virtual ~imglayer(); void load(string _f); - void draw(float a); + void draw(float a); + void draw(float a,unsigned char* controllers); protected: private: ofImage img; -- cgit v1.2.3