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

◆ Texture2D() [5/6]

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

Definition at line 99 of file Texture2D.cs.

100 {
101 try
102 {
103 CreateTexture(graphicsDevice, width, height, mipMap, 0u, (_D3DPOOL)1, format);
104 return;
105 }
106 catch
107 {
108 //try-fault
109 base.Dispose(true);
110 throw;
111 }
112 }
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.