puts a formatted string in the text buffer
| 402 | |
| 403 | // puts a formatted string in the text buffer |
| 404 | void grtext_Printf(int x, int y, const char *fmt, ...) { |
| 405 | std::va_list arglist; |
| 406 | int len; |
| 407 | char buf[512]; |
| 408 | |
| 409 | va_start(arglist, fmt); |
| 410 | len = std::vsnprintf(buf, 512, fmt, arglist); |
| 411 | va_end(arglist); |
| 412 | if (len < 0) |
| 413 | return; |
| 414 | |
| 415 | grtext_Puts(x, y, buf); |
| 416 | } |
| 417 | |
| 418 | // gets the current font |
| 419 | int grtext_GetFont() { return Grtext_font; } |
no test coverage detected