MCPcopy Create free account
hub / github.com/ZDoom/Raze / Display

Function Display

source/core/mainloop.cpp:415–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413CVAR(String, drawtile, "", 0) // debug stuff. Draws the tile with the given number on top of thze HUD
414
415void Display()
416{
417 if (screen == nullptr || (!AppActive && (screen->IsFullscreen() || !vid_activeinbackground)))
418 {
419 return;
420 }
421
422 FTexture* wipestart = nullptr;
423 if (nextwipe != wipe_None)
424 {
425 wipestart = screen->WipeStartScreen();
426 }
427
428 screen->FrameTime = I_msTimeFS();
429 tileUpdateAnimations();
430 screen->BeginFrame();
431 twodpsp.Clear();
432 twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
433 twodpsp.ClearClipRect();
434 twod->Clear();
435 //twod->SetSize(screen->GetWidth(), screen->GetHeight());
436 twod->Begin(screen->GetWidth(), screen->GetHeight());
437 twod->ClearClipRect();
438 switch (gamestate)
439 {
440 case GS_MENUSCREEN:
441 case GS_FULLCONSOLE:
442 gi->DrawBackground();
443 break;
444
445 case GS_INTRO:
446 case GS_CUTSCENE:
447 ScreenJobDraw();
448 break;
449
450 case GS_LEVEL:
451 if (gametic != 0)
452 {
453 screen->FrameTime = I_msTimeFS();
454 screen->BeginFrame();
455 screen->SetSceneRenderTarget(gl_ssao != 0);
456 //updateModelInterpolation();
457 gi->Render();
458 DrawFullscreenBlends();
459 drawMapTitle();
460 break;
461 }
462 [[fallthrough]];
463
464 default:
465 twod->ClearScreen();
466 break;
467 }
468
469 if (nextwipe == wipe_None)
470 {
471 DrawOverlays();
472 if (drawtile[0])

Callers 1

MainLoopFunction · 0.85

Calls 15

I_msTimeFSFunction · 0.85
tileUpdateAnimationsFunction · 0.85
ScreenJobDrawFunction · 0.85
DrawFullscreenBlendsFunction · 0.85
drawMapTitleFunction · 0.85
DrawOverlaysFunction · 0.85
tileGetTextureIDFunction · 0.85
DrawTextureFunction · 0.85
PerformWipeFunction · 0.85
ClearClipRectMethod · 0.80
CheckForTextureMethod · 0.80
GetGameTextureMethod · 0.80

Tested by

no test coverage detected