Skip to content

Commit c352a14

Browse files
set image anchor point to center of image
1 parent 4e4ade8 commit c352a14

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/cyrilApp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ void cyrilApp::draw(){
178178
ofDisableLighting();
179179
}
180180

181+
//ofEnableAlphaBlending();
182+
181183
_state.ms->clearStacks();
182184
float X_MAX = (*_state.sym)[REG_X_MAX];
183185
float Y_MAX = (*_state.sym)[REG_Y_MAX];
@@ -340,6 +342,7 @@ void cyrilApp::reloadFileBuffer(std::string filePath) {
340342
//cout << "Loading image " << file.getFileName() << endl;
341343
int whichImg = ofToInt(removeExtension(file.getFileName()));
342344
(*_state.img)[whichImg] = new ofImage(filePath);
345+
(*_state.img)[whichImg]->setAnchorPercent(0.5, 0.5);
343346
}
344347
}
345348

0 commit comments

Comments
 (0)