I Have a Really Complex Question...

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
unholysavagery
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 73
Joined: Tue Oct 28, 2008 4:27 am

I Have a Really Complex Question...

Post by unholysavagery »

So I want to draw text to an off screen area in memory then copy it to a DirectX texture, how would I do this? I hear I need to some how draw the text to a HBITMAP and copy that to the texture but how?
Last edited by unholysavagery on Mon Dec 01, 2008 11:10 am, edited 1 time in total.
This is the internet, men are men, women are men and children are the FBI.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: How to use the Windows GDI to draw text?

Post by avansc »

directx accomodates bitmap fonts that you can directly print to textures.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
unholysavagery
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 73
Joined: Tue Oct 28, 2008 4:27 am

Re: How to use the Windows GDI to draw text?

Post by unholysavagery »

avansc wrote:directx accomodates bitmap fonts that you can directly print to textures.
Yeah I'm using them right now but the sprite interface wont let me layer them the way I want. I need to do it this way, it's hard to explain why but I do and I don't know how.
Last edited by unholysavagery on Mon Dec 01, 2008 11:11 am, edited 1 time in total.
This is the internet, men are men, women are men and children are the FBI.
User avatar
unholysavagery
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 73
Joined: Tue Oct 28, 2008 4:27 am

Re: How to use the Windows GDI to draw text?

Post by unholysavagery »

I need a diagram on how the ID3DX10Font interface works, anyone know where I can find one? I'd like to copy the process.
This is the internet, men are men, women are men and children are the FBI.
Post Reply