Blitting with GDI to LPDIRECT3DTEXTURE8?
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
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.
Z.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement