| 2 | #include "Specific/RGBAColor8Byte.h" |
| 3 | |
| 4 | static byte FloatComponentToByte(float value) |
| 5 | { |
| 6 | // TODO: Look into what these actually do and test them to see if they are actually not undefined. |
| 7 | long byteValue = std::lroundf((value / 2.0f) * 255.0f); |
| 8 | return (byte)byteValue; |
| 9 | } |
| 10 | |
| 11 | static float ByteComponentToFloat(byte b) |
| 12 | { |