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

◆ IsPowerOfTwo()

static bool Microsoft.Xna.Framework.Graphics.Texture.IsPowerOfTwo ( uint dwNumber)
inlinestaticpackageinherited

Definition at line 353 of file Texture.cs.

354 {
355 if (dwNumber != 0 && ((dwNumber - 1) & dwNumber) == 0)
356 {
357 return true;
358 }
359 return false;
360 }

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