Jump to content
  • Advertisement

Archived

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

pt99rbl

Blitting with GDI to LPDIRECT3DTEXTURE8?

This topic is 6107 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
I am going to have to do the same thing, but for now, I will use ID3DXFont for a quick fix.

Z.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!