Draw Text Function...
I was board so I thought I'd release this...
[PHP]
void cDrawText(char *Text, int x, int y, char *FontName, D3DCOLOR FontColor, int FontWidth, int FontHeight, UINT Weight, IDirect3DDevice9* pDevice)
{
ID3DXFont *Font;
D3DXCreateFontA(pDevice, FontHeight, FontWidth, Weight, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, FontName, &Font);
RECT FontR = {
x,
y,
x+500,
y+30
};
Font->DrawTextA(NULL, Text, -1, &FontR, DT_LEFT | DT_WORDBREAK, FontColor);
}
[/PHP]
This is more complicated then it should be..
And theres like 100 already released