MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / PrintLoadingMessage

Method PrintLoadingMessage

neo/framework/Common.cpp:2466–2475  ·  view source on GitHub ↗

================= idCommonLocal::PrintLoadingMessage ================= */

Source from the content-addressed store, hash-verified

2464=================
2465*/
2466void idCommonLocal::PrintLoadingMessage( const char *msg ) {
2467 if ( !( msg && *msg ) ) {
2468 return;
2469 }
2470 renderSystem->BeginFrame( renderSystem->GetScreenWidth(), renderSystem->GetScreenHeight() );
2471 renderSystem->DrawStretchPic( 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 1, 1, declManager->FindMaterial( "splashScreen" ) );
2472 int len = strlen( msg );
2473 renderSystem->DrawSmallStringExt( ( 640 - len * SMALLCHAR_WIDTH ) / 2, 410, msg, idVec4( 0.0f, 0.81f, 0.94f, 1.0f ), true, declManager->FindMaterial( "textures/bigchars" ) );
2474 renderSystem->EndFrame( NULL, NULL );
2475}
2476
2477/*
2478=================

Callers

nothing calls this directly

Calls 8

BeginFrameMethod · 0.80
GetScreenWidthMethod · 0.80
GetScreenHeightMethod · 0.80
DrawSmallStringExtMethod · 0.80
idVec4Class · 0.50
DrawStretchPicMethod · 0.45
FindMaterialMethod · 0.45
EndFrameMethod · 0.45

Tested by

no test coverage detected