| 1008 | } |
| 1009 | |
| 1010 | void CGraphics_Threaded::QuadsText(float x, float y, float Size, const char *pText) |
| 1011 | { |
| 1012 | float StartX = x; |
| 1013 | |
| 1014 | while(*pText) |
| 1015 | { |
| 1016 | char c = *pText; |
| 1017 | pText++; |
| 1018 | |
| 1019 | if(c == '\n') |
| 1020 | { |
| 1021 | x = StartX; |
| 1022 | y += Size; |
| 1023 | } |
| 1024 | else |
| 1025 | { |
| 1026 | QuadsSetSubset( |
| 1027 | (c % 16) / 16.0f, |
| 1028 | (c / 16) / 16.0f, |
| 1029 | (c % 16) / 16.0f + 1.0f / 16.0f, |
| 1030 | (c / 16) / 16.0f + 1.0f / 16.0f); |
| 1031 | |
| 1032 | CQuadItem QuadItem(x, y, Size, Size); |
| 1033 | QuadsDrawTL(&QuadItem, 1); |
| 1034 | x += Size / 2; |
| 1035 | } |
| 1036 | } |
| 1037 | } |
| 1038 | |
| 1039 | void CGraphics_Threaded::DrawRectExt(float x, float y, float w, float h, float r, int Corners) |
| 1040 | { |
no outgoing calls
no test coverage detected