Jump to content
  • Advertisement
Sign in to follow this  
utilae

Text (ID3DXFont)

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

Hi, I am using C++ and Direct3D9. I am also using ID3DXFont. I am using the DrawText function to draw text. The only problem with this is if I draw a texture and a font in the same place, the font will always be at the top. So there is no way to make a texture go above the font, ie alter the z order of the font and texture. The main way I think to get around my problems is to somehow make the text become vertices and be rendered along with my other textures with one call to drawprimitive. So, anyone know how to make ID3DXFont text become vertices so that it can be drawn using drawprimitive? For example if there was a function that could be like drawtext, but instead of drawing the text to the screen, it would create vertices somehow which would be drawn by drawprimitive.

Share this post


Link to post
Share on other sites
Advertisement
what about creating the ID3DXSprite yourself and using that with DrawText? you should be able to set the transform for the sprite then so you can position it at whatever depth you like.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!