Archived

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

Direct3D & Text

This topic is 6363 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

Hey, I''m painfully new at DirectX, so please bear with me. Basically I want to be able to write text onto the screen while using Direct3D. I tried to use the GDI TextOut(), but it visibly slowed down a simple example, so I definately want to avoid that. I''ve thought about maybe using a sprite alphabet...but my DX knowledge is too limited to know exactly how to implement it. ANY info would be of use. Thanks.

Share this post


Link to post
Share on other sites
Have a texture containing all the characters, store U and V coordinates for each character, render vertices mapped to the selected character to the screen.

Rhe characters are stored in ASCHII-order, btw.

I know this was not a very good answer to your question, but I''m very tired and hopefully it will give you some ideas.

/CMN

Share this post


Link to post
Share on other sites