主页 / 库函数目录 / 文字输出 / ege_xyprintf
功能:
在指定位置格式化输出文本(使用 ARGB 颜色,由 setcolor() 或 settextcolor() 指定)。
声明:
void ege_xyprintf(
float x,
float y,
const char* format,
...
);
void ege_xyprintf(
float x,
float y,
const wchar_t* format,
...
);
参数:
x
文本输出位置的 x 坐标(文本实际位置与文本对齐方式、文本倾斜角度等相关)。
y
文本输出位置的 y 坐标(文本实际位置与文本对齐方式、文本倾斜角度等相关)。
format
格式字符串。
...
要输出的内容的参数(支持多个参数,类似 printf)。
返回值:
(无)
示例:
ege_xyprintf(10.0f, 60.5f, "value:%d", 1024);