diff options
Diffstat (limited to 'gui/src/chainImage.h')
| -rw-r--r-- | gui/src/chainImage.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gui/src/chainImage.h b/gui/src/chainImage.h index 30a1cd2..367d051 100644 --- a/gui/src/chainImage.h +++ b/gui/src/chainImage.h @@ -20,20 +20,24 @@ class chainImage : public ofImage{ chainImage(){ link=NULL; ofImage(); + isLoaded=false; } void init(ofPoint _linkPos,float _linkScale,float _linkRot); void start(bool reverse=false); - bool load(std::string _filename){ + bool tload(std::string _filename){ + printf("tload : %s\n",_filename.c_str()); filename=_filename; if (ofImage::load(filename)){ makeThumbnail(); - + //could there be a way to load without committing the texture //setUseTexture(false); setAnchorPoint(getWidth()/2,getHeight()/2); + isLoaded=true; return true; } + else printf("could not load : %s\n",_filename.c_str()); return false; } @@ -47,6 +51,7 @@ class chainImage : public ofImage{ ofImage thumbnail; void makeThumbnail(); + void setupTextures(); Json::Value toJson(); bool fromJson(Json::Value json); @@ -66,6 +71,8 @@ class chainImage : public ofImage{ ofPolyline path; + bool isLoaded; + //int totalframes,framecount; }; |
