How to NOT refresh screen between draw() calls?

Greetings,

For one of the pieces I’m working on, I’d like to have openFrameworks not redraw the background before each draw() call. In other words, each time draw() is called, I’d like it’s output to layer on-top of the previously drawn screen.

I’ve poked around in some sample code that looked like it was doing what I wanted, but upon inspection, it was actually redrawing every pixel with each pass. That’s no way to do it.

I’ve also tried switching the glutInitDisplayMode to not use GLUT_DOUBLE, thinking that this was a single-buffer vs. double-buffer issue… But that didn’t work.

And ideas would help. Seems like it should be a simple thing to do, so it feel like I’m just missing something obvious.

Cheers!

just call ofSetBackgroundAuto(false) in setup

1 Like

Perfect! I knew it had to be something simple. Thank you!!