Sign in to follow this  
utilae

Text (ID3DXFont)

Recommended Posts

utilae    188
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
blackpawn    195
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this