Archived

This topic is now archived and is closed to further replies.

pt99rbl

Blitting with GDI to LPDIRECT3DTEXTURE8?

Recommended Posts

Is there any efficient way of using a GDI function to blit a font onto LPDIRECT3DTEXTURE8 privateData. The reason I''m asking is that I''m working on a fontlibrary where I will choose a font (Preferably TFT), get the information about the font through GDI and blit the fonts onto a texture. This texture will then be used as an ordinary texture where I get the u,v coordinates in my vertices in my VB. The VB consists of pairs of triangles where every pair makes up a letter from a text. So...If someone has some ideas of how my question can be answered...(It would be nice to see some actual sourcecode in CPP). Yes, I know that there is a D3DX function for this kinda things! /Richard

Share this post


Link to post
Share on other sites
Take a look at the CD3DFont class that comes with the SDK. I believe that this is how that class creates it''s fonts.

Z.

Share this post


Link to post
Share on other sites
Hmmm...
Actually I knew about this before, but didn''t look closely into it then, but on your command =O) I did. And I think this is what I wanted to do so...

The reason for me to create something that already exists is that I want to learn and to be able to call it "mine".

Thank you Zaei!

Share this post


Link to post
Share on other sites