Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ManaStone

How do I use CD3DFont?

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

How Do I use the CD3DFont class from DirectX 8.1? Right now I''m just trying to get it to work. I have this as a global variable declared at the beginning: CD3DFont font( _T("Arial"), 12, D3DFONT_BOLD ); I then set the device on the initialize function: font.InitDeviceObjects(dx_device); On my Render function I have font.DrawText( 0, 0, D3DCOLOR_ARGB(255,255,255,0),"asdf"); When I do the last part, the application tries go into full screen mode( which it is supposed to) and then quits the application. What am I doing wrong? When I leave it out my application works fine.

Share this post


Link to post
Share on other sites
Advertisement
call restoredeviceobjects.

all sdk samples use d3dfont for text rendering.


[edited by - niyaw on February 2, 2003 1:39:26 AM]

Share this post


Link to post
Share on other sites

  • 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!