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

◆ TextureCube() [3/3]

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

Definition at line 42 of file TextureCube.cs.

43 {
44 try
45 {
46 CreateTexture(graphicsDevice, size, mipMap, 0u, (_D3DPOOL)1, format);
47 return;
48 }
49 catch
50 {
51 //try-fault
52 base.Dispose(true);
53 throw;
54 }
55 }
unsafe void CreateTexture(GraphicsDevice graphicsDevice, int size, [MarshalAs(UnmanagedType.U1)] bool mipMap, uint usage, _D3DPOOL pool, SurfaceFormat format)

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