Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

GraphicsDevice.GetRenderTarget Method

Gets a render target surface.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public RenderTarget GetRenderTarget (
         int renderTargetIndex
)

Parameters

renderTargetIndex
Index of the render target.

Return Value

The render target surface of the current graphics device.
Exception typeCondition
ArgumentOutOfRangeExceptionAn invalid render target index was requested. On Xbox 360, there is only one render target available and renderTargetIndex must be zero.

The GraphicsDevice can support multiple render targets. The number of render targets supported by a GraphicsDevice is contained in MaxSimultaneousRenderTargets.

Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.