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

◆ CheckCompressedTexture()

static bool Microsoft.Xna.Framework.Graphics.Texture.CheckCompressedTexture ( _D3DFORMAT format)
inlinestaticpackageinherited

Definition at line 272 of file Texture.cs.

273 {
274 int num = ((format == (_D3DFORMAT)827611204 || format == (_D3DFORMAT)844388420 || format == (_D3DFORMAT)861165636 || format == (_D3DFORMAT)877942852 || format == (_D3DFORMAT)894720068) ? 1 : 0);
275 return (byte)num != 0;
276 }

References System.format.

Referenced by Microsoft.Xna.Framework.Graphics.Texture2D.CopyOrRestoreData(), Microsoft.Xna.Framework.Graphics.TextureCube.CopyOrRestoreData(), Microsoft.Xna.Framework.Graphics.TextureCube.ValidateCreationParameters(), and Microsoft.Xna.Framework.Graphics.Texture2D.ValidateCreationParameters().