MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Draw

Method Draw

engine/Poseidon/Game/TitEffects.cpp:376–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void TitleEffectBasic::DrawRsc()
377{
378 if (_rscOverlayShapes.Size() > 0)
379 {
380 // 4:3 model overlay — preserve 4:3 + pillarbox while bars are on, else stretch.
381 const bool preserve4x3 = AspectRatio::ArePillarboxBarsEnabled();
382 for (int i = 0; i < _rscOverlayShapes.Size(); ++i)
383 Object::Draw2D(_rscOverlayShapes[i], 0, PackedWhite, /*preserveAspect4x3*/ preserve4x3);
384 if (_rscOverlayPillarbox)
385 Object::DrawWidescreenPillarbox(/*requireGameplayActive*/ false);
386 return;
387 }
388 _rsc->DrawHUD(nullptr, _alpha);
389 if (_rscObjectDisplayPillarbox)
390 Object::DrawWidescreenPillarbox(/*requireGameplayActive*/ false, /*force*/ true);
391}
392
393void TitleEffectBasic::Draw()

Callers 1

DrawObjectMethod · 0.45

Calls 13

saturateFunction · 0.85
PackedColorRGBFunction · 0.50
DrawClass · 0.50
SizeMethod · 0.45
PreloadedMethod · 0.45
UseMipmapMethod · 0.45
TextBankMethod · 0.45
SetColorMethod · 0.45
SetUMethod · 0.45
SetVMethod · 0.45
WidthMethod · 0.45
HeightMethod · 0.45

Tested by

no test coverage detected