@Regi wrote:
Hi,
I was wondering if there's a way to run ofSetBackgroundAuto while creating a 'multiple window' application.
I currently have a vector of 'windows' being populated on a click. And would like the setting ofSetBackgroundAuto(false) while creating them. Unfortunately I can't figure this one out
header:
std::vector<shared_ptr > windows;
void drawInWindow(ofEventArgs & args);Making the windows:
ofGLFWWindowSettings settings;
settings.width = 300;
settings.height = 300;
settings.setPosition(ofVec2f(ofGetScreenWidth() / 2 - 150, ofGetScreenHeight() / 2 - 150));
settings.decorated = false;
settings.resizable = false;
windows.push_back(ofCreateWindow(settings));
windows.back()->setVerticalSync(false);
ofAddListener(windows.back()->events().draw, this, &ofApp::drawInWindow);The drawInWindow is called repeatedly and I'd like it to not 'refresh' so to say.
Any tips are welcome!
Thanks
Posts: 3
Participants: 2