nick5454

Does anyone know of an example that shows how to use a back buffer and flipping a 2D app

Re: XNA Framework Looking for an example using a 2D back buffer

Derek Nedelman

You won't find such an example because the flipping is done for you automatically.





Re: XNA Framework Looking for an example using a 2D back buffer

nick5454

Yeah, but just a simple example showing how to set it up.

Do you use SetRenderTarget, keep a reference to it and then call present

I see the backbuffer property in the PresentationParameters, but no BackBuffer property. Is there any tutorials or code to look at to see how its done

Nick





Re: XNA Framework Looking for an example using a 2D back buffer

Jim Perry

I think this is what you're looking for.




Re: XNA Framework Looking for an example using a 2D back buffer

nick5454

I looked through all of those yesterday.

But, none of them use the Present method or refer to the back buffer technique. Is there one in particular that i'm over looking

 

 

Or am I looking at this wrong and that the Draw method is actually drawing to the back buffer surface





Re: XNA Framework Looking for an example using a 2D back buffer

Teebeutel

hi,

working on the same things at the moment. On the tutorial in this site (postprocessing effects) maby you can find some hints.





Re: XNA Framework Looking for an example using a 2D back buffer

Jim Perry

nick5454 wrote:
I looked through all of those yesterday.

But, none of them use the Present method or refer to the back buffer technique.

Because you don't need to. You need to discard the old way of thinking.

nick5454 wrote:
Or am I looking at this wrong and that the Draw method is actually drawing to the back buffer surface

Correct. All the stuff you used to have to handle yourself is now done for you with XNA. That's one of the great things about it.