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

Method Printf

trinity/RenderJob/TriStepRenderDebug.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void TriStepRenderDebug::Printf( int x, int y, uint32_t color, const char* msg, ... )
140{
141 va_list args;
142 va_start( args, msg );
143
144 Tr2Rect rect;
145 rect.top = y;
146 rect.left = x;
147 rect.bottom = rect.top + 512;
148 rect.right = rect.left + 1024;
149
150 m_textRenderer->Vprintf( TRI_DBG_FONT_SMALL, rect, TRI_DFS_LEFT, ColorToVec4( color ), msg, args );
151 va_end( args );
152}
153
154void TriStepRenderDebug::Printf( const Tr2Rect& rect, uint32_t format, uint32_t color, const char* msg, ... )
155{

Callers 2

PickObjectMethod · 0.45
UpdateValueMethod · 0.45

Calls 2

ColorToVec4Function · 0.85
VprintfMethod · 0.80

Tested by

no test coverage detected