Sdílet prostřednictvím


Texture2D Constructor

Initializes a new instance of the Texture2D class.

Overload List

Name Description
Texture2D (GraphicsDevice, Int32, Int32, Int32, ResourceUsage, SurfaceFormat) Creates an uninitialized Texture2D resource of the specified dimensions. To initialize a Texture2D from an existing file, see the static method ContentManager.Load or Texture2D.FromFile.
Texture2D (GraphicsDevice, Int32, Int32, Int32, ResourceUsage, SurfaceFormat, ResourceManagementMode) Creates an uninitialized Texture2D resource of the given dimensions, specifying the memory management mode for the resource. To initialize a Texture2D from an existing file, see the static method ContentManager.Load or Texture2D.FromFile.

See Also

Reference

Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace