PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Back Buffer in ProcessNextFrame changes?

I just wanted to verify something. Is it true that I should expect the backbuffer parameter to ProcessNextFrame to be different each time it is called?

I am forwarding to my own frame processing function, and want to know if I need to pass the backbuffer along, or if I can just save the backbuffer the first time and use it for subsequent frames. I assume I can't, but I wanted to check.
I have some older code I had written ported over to use the GapiApplication framework.

For these, I set the back buffer at the beginning and the games worked just fine.
mlepage: The "backbuffer" parameter sent to ProcessNextFrame will always point to the same object. You can save it the first time...
That's awesome. I didn't think I could rely on that, else why would it be a parameter? But since it is, it allows me to clean up my code a little bit, improve the abstraction. (I'm just trying to keep my code isolated from GapiDraw's code, something I've learned from much experience porting software.)