Page 1 of 1

I Have a Really Complex Question...

Posted: Sun Nov 30, 2008 12:06 pm
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?

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

Posted: Sun Nov 30, 2008 12:10 pm
by avansc
directx accomodates bitmap fonts that you can directly print to textures.

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

Posted: Sun Nov 30, 2008 2:22 pm
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.

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

Posted: Mon Dec 01, 2008 3:51 am
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.