| 9 | } |
| 10 | |
| 11 | static float ByteComponentToFloat(byte b) |
| 12 | { |
| 13 | // TODO: Look into what these actually do and test them to see if they are actually not undefined. |
| 14 | float value = (b / 255.0f) * 2; |
| 15 | return value; |
| 16 | } |
| 17 | |
| 18 | RGBAColor8Byte::RGBAColor8Byte(D3DCOLOR color) |
| 19 | { |