Jump to content
  • Advertisement
Sign in to follow this  
Thevenin

[MDX] 2D Font Problems (With screenshots :O)

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

Indeed I'm making quite a few posts on the DirectX thread recently; I'm trying to get as much of my game ported as possible before the holidays are over. :P I've now ran into a problem with the DirectX Fonts. When I use 'null' as my sprite, it works.... ... however, when I specify it with MySprite...
MySprite = new Sprite(MyDevice);
MyFont.DrawText(MySprite, "Well, hello fellows.", 0, 0, Color.White);
I get this... Why is that happening? [bawling]

Share this post


Link to post
Share on other sites
Advertisement
I found it.

MySprite.Begin(SpriteFlags.None);


Is what I was using start my sprite drawings, which worked fine for textures and such, but didn't like the fonts. I changed it to...

MySprite.Begin(SpriteFlags.AlphaBlend);


.. and the textures still worked fine, but the font worked fine too. [looksaround]

Thanks anyways.

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!