| 104 | } |
| 105 | |
| 106 | void 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 | } |
| 122 | void Section::AddScreenText(const char* szName, const rmt::Vector &a, tColour colour) |
| 123 | { |
| 124 | assert(szName); |
no test coverage detected