Jump to content
  • Advertisement
Sign in to follow this  

Text Anomaly

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

I'm using DirectX to display text and graphics, but when I draw sprites and text at the same time, my text appears at the position of the last drawn sprite. I am using a custom sprite to handle all of my drawing. I am explicitly setting the sprite coordinates before each render call so I have no idea where this is coming from. My 2d Object class specifies it's own Rectangle and coordinates, and so does my text class. Could this possibly be caused by the translation matrix that I am using for my sprite? I only use the matrix for 2d objects, not text. Can I specify the matrix to be used for a text call as well? Thanks! [Edit] Whoops, my bad :( I totally figure it out. I wasn't resetting the matrix when I drew the text, since it was actually drawn through the font, rather than the sprite. I fixed it up though, sorry for the useless post {:)

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!