Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Texture2D() [4/6]

Microsoft.Xna.Framework.Graphics.Texture2D.Texture2D ( GraphicsDevice graphicsDevice,
int width,
int height,
[MarshalAs(UnmanagedType.U1)] bool mipMap,
SurfaceFormat format )
inline

Definition at line 84 of file Texture2D.cs.

85 {
86 try
87 {
88 CreateTexture(graphicsDevice, width, height, mipMap, 0u, (_D3DPOOL)1, format);
89 return;
90 }
91 catch
92 {
93 //try-fault
94 base.Dispose(true);
95 throw;
96 }
97 }
unsafe void CreateTexture(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, uint usage, _D3DPOOL pool, SurfaceFormat format)
Definition Texture2D.cs:609

References Microsoft.Xna.Framework.Graphics.Texture2D.CreateTexture(), and System.format.