Sign in to follow this  
mess

Transforming D3DXFont

Recommended Posts

hi, I am trying to apply a world transform matrix to my D3DXFont but it isnt working, same goes for D3DXSprite. I've used the SetTransform() member function for sprite and that works fine, but I cant find a method for transforming my font. thanks.

Share this post


Link to post
Share on other sites
Pass the sprite as the first parameter to DrawText. Call DrawText inside your sprite's Begin/End block. Use D3DXSPRITE_OBJECTSPACE flag on sprite Begin to apply Wrold/View mats to text.

hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this