| 608 | } |
| 609 | |
| 610 | Vector4 ColorToVec4( uint32_t color ) |
| 611 | { |
| 612 | uint8_t r = ( color >> 16 ) & 0xffu; |
| 613 | uint8_t g = ( color >> 8 ) & 0xffu; |
| 614 | uint8_t b = ( color >> 0 ) & 0xffu; |
| 615 | uint8_t a = ( color >> 24 ) & 0xffu; |
| 616 | return Vector4( r, g, b, a ) / 255.0f; |
| 617 | } |
| 618 | |
| 619 | void Tr2Renderer::Printf( int x, int y, uint32_t color, const char* msg, ... ) |
| 620 | { |
no test coverage detected