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

Method DrawText

engine/Poseidon/Game/TitEffects.cpp:320–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 return;
319 }
320 _rscOverlayShapes.Clear();
321 _rscObjectDisplayPillarbox = useDisplayObjectPath;
322 }
323
324 _rsc = new DisplayTitle;
325 _rsc->Load(rsc);
326}
327
328void TitleEffectBasic::Init(LODShapeWithShadow* shape, Vector3Val camera)
329{
330 _object = new Object(shape, -1);
331 _objectCamera = camera;
332}
333
334void TitleEffectBasic::DrawText()
335{
336 float top = 0.5 + _textYOffset;
337 PackedColor fColor(Color(1, 1, 1, _alpha));
338 const TitleShadowOffset shadow = SubtitleShadowOffset(GEngine->Width2D(), GEngine->Height2D());

Callers 5

RunMainLoopMethod · 0.45
DrawMPTableMethod · 0.45
DrawNetworkStatisticsFunction · 0.45
OnDrawMethod · 0.45
DrawMethod · 0.45

Calls 7

ColorClass · 0.85
SubtitleShadowOffsetFunction · 0.85
Point2DFloatClass · 0.50
Width2DMethod · 0.45
Height2DMethod · 0.45
SizeMethod · 0.45
GetTextWidthMethod · 0.45

Tested by

no test coverage detected