MoonWorks/src/Graphics/Utility/Conversions.cs

16 lines
285 B
C#
Raw Normal View History

2021-01-22 22:41:34 +00:00
namespace MoonWorks
{
public static class Conversions
{
public static byte BoolToByte(bool b)
{
return (byte)(b ? 1 : 0);
}
2021-01-22 22:41:34 +00:00
public static bool ByteToBool(byte b)
{
return b == 0 ? false : true;
}
}
}