Okliis
May 27, 2019, 10:36pm
#1
Hi all,
This has been brought up before here:
I have that code to load an image and draw it on the screen. It should draw it once and keep it shown. Below is the simplified code. However the window stays grey. It works if I let call image.draw() several times before skipping on next calls, but that would mean that when ::draw() of the ofBaseApp is called you can never know if you can start drawing or if something is still initializing in the background. Or is maybe something wrong with my code?
OSX, OF 0.9.3.
#include "ofApp.h"
bool pain…
I just wanted to double check if there was an official way around this by now.
Right now I’m working around this by putting my draw code in to this simple statement:
//in setup():
setBackgroundAuto(false);
//in draw():
if (ofGetFrameNum() > 2) {
//draw code
}
Not a massive deal, just wondering.
Let me know,
Cheers