| 617 | } |
| 618 | |
| 619 | void Tr2Renderer::Printf( int x, int y, uint32_t color, const char* msg, ... ) |
| 620 | { |
| 621 | if( !s_debugTextRenderer ) |
| 622 | { |
| 623 | return; |
| 624 | } |
| 625 | |
| 626 | va_list args; |
| 627 | va_start( args, msg ); |
| 628 | |
| 629 | Tr2Rect rect; |
| 630 | rect.top = y; |
| 631 | rect.left = x; |
| 632 | rect.bottom = rect.top + 512; |
| 633 | rect.right = rect.left + 1024; |
| 634 | s_debugTextRenderer->Vprintf( TRI_DBG_FONT_SMALL, rect, TRI_DFS_LEFT, ColorToVec4( color ), msg, args ); |
| 635 | } |
| 636 | |
| 637 | void Tr2Renderer::PrintfImmediate( Tr2RenderContext& renderContext, int x, int y, uint32_t color, uint32_t format, const char* msg, ... ) |
| 638 | { |
no test coverage detected