Turbulence (03-17-2011),_Fk127_ (01-20-2011)
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]
Turbulence (03-17-2011),_Fk127_ (01-20-2011)
This is more complicated then it should be..
And theres like 100 already released
Why the hell would i use this and create the font every time that function is called?
D15H (02-07-2011)
Regards,
EvilCow
----------------------------------------------------------------------------------------------------------------
The ocean is full of life. Yet it is not life as we know it. To survive there, we must release our hold on land. Accept a new way to live. So it is with the death. The soul must accept it's departure from the body. If it can't, it will be lost
Thank Me If I Helped!
------♥♥------Put This
-----♥♥♥-----In Your
----♥♥-♥♥----Sig If
---♥♥---♥♥---You Know
---♥♥---♥♥---Someone
---♥♥---♥♥---Who Died
----♥♥-♥♥----Or Is
-----♥♥♥----- Suffering
----♥♥-♥♥----From
---♥♥---♥♥---Cancer
What's it looks like :S
No I do not make game hacks anymore, please stop asking.
Noice memory leak.
Holy fuck, I have never seen anything liek this. Way to go.
seaplusplus (01-21-2011)
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development