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

◆ Texture2D() [3/6]

Microsoft.Xna.Framework.Graphics.Texture2D.Texture2D ( GraphicsDevice graphicsDevice,
int width,
int height )
inline

Definition at line 69 of file Texture2D.cs.

70 {
71 try
72 {
73 CreateTexture(graphicsDevice, width, height, mipMap: false, 0u, (_D3DPOOL)1, SurfaceFormat.Color);
74 return;
75 }
76 catch
77 {
78 //try-fault
79 base.Dispose(true);
80 throw;
81 }
82 }
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().