MCPcopy Create free account
hub / github.com/Svxy/The-Simpsons-Hit-and-Run / AddScreenText

Method AddScreenText

game/code/debug/section.cpp:106–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void Section::AddScreenText(const char* szName, tColour colour )
107{
108 assert(szName);
109 ScreenText &pST = _pScreenText[_NumScreenText];
110
111 if(_NumScreenText<MaxScreenText && pST._pText)
112 {
113 strncpy(pST._pText, szName, sizeof(pST._pText));
114 pST._Colour = colour;
115 pST._Pos = rmt::Vector(0.05f,_ScreenTextPos, 0);
116
117 //TODO:get correct debug font height!
118 _ScreenTextPos += 0.03f;
119 _NumScreenText++;
120 }
121}
122void Section::AddScreenText(const char* szName, const rmt::Vector &a, tColour colour)
123{
124 assert(szName);

Callers 2

DebugInfoDisplayMethod · 0.45
DisplayLightsMethod · 0.45

Calls 1

VectorClass · 0.85

Tested by

no test coverage detected