I guess it depends what kind of a screen you are fading. Are you in the middle of live action with things moving around etc, and you want it to fade out to black?
If so. ... use:
SetBlend AlphaBlend
SetAlpha whateverleveloffade
SetColor 0,0,0
DrawRect 0,0,screenwidth,screenheight
at the same time as continuing to draw/update your game screen as normal.
You don't need to grab the backbuffer to do a fade to black.
If so. ... use:
SetBlend AlphaBlend
SetAlpha whateverleveloffade
SetColor 0,0,0
DrawRect 0,0,screenwidth,screenheight
at the same time as continuing to draw/update your game screen as normal.
You don't need to grab the backbuffer to do a fade to black.