Fonts && Sprites
Has anyone managed to get the whole rendering to sprite thing with the ID3DXFont -> DrawText method working? If you specify NULL for the first param it draws straight to the buffer, but you're supposedly meant to be able to specify a sprite in that parameter that it'll render to, which speeds up the rendering process. I've tried handing it a sprite, and using the normal sprite rendering function...get a blank sprite...anyone got some working code for this?
When you give ID3DXFont a sprite to use for rendering, it renders to the screen using the sprite, it doesn't render to the sprite. You should not follow the DrawText with a sprite render, otherwise you'll just draw over the rendered text.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement