summaryrefslogtreecommitdiff
path: root/gui/src/chainImage.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2017-09-18 22:32:45 +0100
committerTim Redfern <tim@getdrop.com>2017-09-18 22:32:45 +0100
commitb28a850a8ab4532ee425439446f5b4e01f9471a9 (patch)
tree21609dc7bf5a96336fbb4e071e0c15146d57caa5 /gui/src/chainImage.h
parentb4972d6ba659cec3759fd87d6f0489a040e0fbf6 (diff)
threading working
Diffstat (limited to 'gui/src/chainImage.h')
-rw-r--r--gui/src/chainImage.h11
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;
};