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

Method Draw

neo/framework/Console.cpp:1211–1257  ·  view source on GitHub ↗

============== Draw ForceFullScreen is used by the editor ============== */

Source from the content-addressed store, hash-verified

1209==============
1210*/
1211void idConsoleLocal::Draw( bool forceFullScreen ) {
1212 float y = 0.0f;
1213
1214 if ( !charSetShader ) {
1215 return;
1216 }
1217
1218 if ( forceFullScreen ) {
1219 // if we are forced full screen because of a disconnect,
1220 // we want the console closed when we go back to a session state
1221 Close();
1222 // we are however catching keyboard input
1223 keyCatching = true;
1224 }
1225
1226 Scroll();
1227
1228 UpdateDisplayFraction();
1229
1230 if ( forceFullScreen ) {
1231 DrawSolidConsole( 1.0f );
1232 } else if ( displayFrac ) {
1233 DrawSolidConsole( displayFrac );
1234 } else {
1235 // only draw the notify lines if the developer cvar is set,
1236 // or we are a debug build
1237 if ( !con_noPrint.GetBool() ) {
1238 DrawNotify();
1239 }
1240 }
1241
1242 if ( com_showFPS.GetBool() ) {
1243 y = SCR_DrawFPS( 0 );
1244 }
1245
1246 if ( com_showMemoryUsage.GetBool() ) {
1247 y = SCR_DrawMemoryUsage( y );
1248 }
1249
1250 if ( com_showAsyncStats.GetBool() ) {
1251 y = SCR_DrawAsyncStats( y );
1252 }
1253
1254 if ( com_showSoundDecoders.GetBool() ) {
1255 y = SCR_DrawSoundDecoders( y );
1256 }
1257}

Callers 1

DrawInputMethod · 0.45

Calls 5

SCR_DrawFPSFunction · 0.85
SCR_DrawMemoryUsageFunction · 0.85
SCR_DrawAsyncStatsFunction · 0.85
SCR_DrawSoundDecodersFunction · 0.85
GetBoolMethod · 0.45

Tested by

no test coverage detected