27Mar/100
Render Target Changes in XNA Game Studio 4.0
The Shawn of Hargreaves details the changes to the render target API in XNA Framework 4.0. The high level summary of these changes are:
RenderTarget2Dinherits fromTexture2DandRenderTargetCubefromTextureCubeto properly denote the Is-a in the API (no moreRenderTarget*.GetTexture())- Multiple render targets are set at once without explicitly specifying its index and all previous set render targets are unset automatically
- An optional depth buffer for a render target is now a property of the render target itself, which might be shared across multiple render targets if certain conditions are met
For the motivation and details of these changes see Rendertarget changes in XNA Game Studio 4.0.