cull(engine-cleanup): pass-9 cascade round 1 after NGUIText stub
This commit is contained in:
@@ -78,28 +78,6 @@ public static class NGUIMath
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
[DebuggerStepThrough]
|
||||
public static string DecimalToHex24(int num)
|
||||
{
|
||||
num &= 0xFFFFFF;
|
||||
return num.ToString("X6");
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
[DebuggerStepThrough]
|
||||
public static string DecimalToHex32(int num)
|
||||
{
|
||||
return num.ToString("X8");
|
||||
}
|
||||
|
||||
[DebuggerHidden]
|
||||
[DebuggerStepThrough]
|
||||
public static int ColorToInt(Color c)
|
||||
{
|
||||
return 0 | (Mathf.RoundToInt(c.r * 255f) << 24) | (Mathf.RoundToInt(c.g * 255f) << 16) | (Mathf.RoundToInt(c.b * 255f) << 8) | Mathf.RoundToInt(c.a * 255f);
|
||||
}
|
||||
|
||||
public static Rect ConvertToTexCoords(Rect rect, int width, int height)
|
||||
{
|
||||
Rect result = rect;
|
||||
|
||||
Reference in New Issue
Block a user