MySprite = new Sprite(MyDevice);
MyFont.DrawText(MySprite, "Well, hello fellows.", 0, 0, Color.White);
I get this...
Why is that happening? [bawling]
[MDX] 2D Font Problems (With screenshots :O)
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...
I found it.
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...
.. and the textures still worked fine, but the font worked fine too. [looksaround]
Thanks anyways.
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
Popular Topics
Advertisement