Texture2D Constructor

Texture2D Constructor

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.

NameDescription
Texture2D (GraphicsDevice, Int32, Int32) 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, TextureUsage, 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.

Community Additions

ADD
Show:
© 2016 Microsoft