Sdílet prostřednictvím


RenderTarget2D Constructor

Initializes a new instance of this class.

Overload List

Name Description
RenderTarget2D (GraphicsDevice, Int32, Int32, Int32, SurfaceFormat) Initializes a new instance of this class.
RenderTarget2D (GraphicsDevice, Int32, Int32, Int32, SurfaceFormat, MultiSampleType, Int32) Initializes a new instance of this class.

Remarks

After a render pass the render target contains the color information of a rendered image.

Render targets represent a linear area of display memory and usually resides in the display memory of the display card. Because of this, objects must be recreated when the device is reset.

See Also

Tasks

How to: Load Resources

Reference

GraphicsDeviceManager.DeviceReset Event
RenderTarget2D Class
RenderTarget2D Members
Microsoft.Xna.Framework.Graphics Namespace