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

Started by
0 comments, last by Thevenin 18 years, 4 months ago
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]
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.

This topic is closed to new replies.

Advertisement