Skip to content

Commit

Permalink
set image anchor point to center of image
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenmothersele committed May 7, 2014
1 parent 4e4ade8 commit c352a14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file not shown.
3 changes: 3 additions & 0 deletions src/cyrilApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ void cyrilApp::draw(){
ofDisableLighting();
}

//ofEnableAlphaBlending();

_state.ms->clearStacks();
float X_MAX = (*_state.sym)[REG_X_MAX];
float Y_MAX = (*_state.sym)[REG_Y_MAX];
Expand Down Expand Up @@ -340,6 +342,7 @@ void cyrilApp::reloadFileBuffer(std::string filePath) {
//cout << "Loading image " << file.getFileName() << endl;
int whichImg = ofToInt(removeExtension(file.getFileName()));
(*_state.img)[whichImg] = new ofImage(filePath);
(*_state.img)[whichImg]->setAnchorPercent(0.5, 0.5);
}
}

Expand Down

0 comments on commit c352a14

Please sign in to comment.