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

◆ IsPowerOfTwo()

static bool Terraria.Utils.IsPowerOfTwo ( int x)
inlinestatic

Definition at line 74 of file Utils.cs.

75 {
76 if (x != 0)
77 {
78 return (x & (x - 1)) == 0;
79 }
80 return false;
81 }

Referenced by Terraria.Graphics.Shaders.ScreenShaderData.Apply().