Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DrawString(int x, int y, D3DCOLOR dwColour, DWORD Flag, LPD3DXFONT Font, const char* text, ...)
- {
- D3DCOLOR colour = dwColour;
- RECT rct;
- rct.left = x - 1;
- rct.right = x + 1;
- rct.top = y - 1;
- rct.bottom = y + 1;
- va_list va_alist;
- char logbuf[256] = { 0 };
- va_start(va_alist, text);
- _vsnprintf(logbuf + strlen(logbuf), sizeof(logbuf)-strlen(logbuf), text, va_alist);
- va_end(va_alist);
- textSprite->Begin(D3DXSPRITE_ALPHABLEND);
- Font->DrawText(textSprite, logbuf, -1, &rct, Flag | DT_NOCLIP, colour);
- textSprite->End();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement