void DrawText(int x, int y, DWORD color, const char *fmt, LPD3DXFONT g_pFont )
{
RECT FontPos = { x, y, x + 120, y + 20 };
char buf[1024] = {'\0'};
va_list va_alist;
va_start(va_alist, fmt);
vsprintf_s(buf, fmt, va_alist);
va_end(va_alist);
g_pFont->DrawTextA(NULL, buf, -1, &FontPos, DT_NOCLIP, color);
}