MCPcopy Create free account
hub / github.com/carbonengine/trinity / Printf

Method Printf

trinity/Tr2Renderer.cpp:619–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619void 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
637void Tr2Renderer::PrintfImmediate( Tr2RenderContext& renderContext, int x, int y, uint32_t color, uint32_t format, const char* msg, ... )
638{

Callers 3

UpdateValueMethod · 0.45
UpdateDebugRendererMethod · 0.45
PrePhysicsAnimationMethod · 0.45

Calls 3

ColorToVec4Function · 0.85
VprintfMethod · 0.80
GetViewportMethod · 0.45

Tested by

no test coverage detected