Jump to content
  • Advertisement

Archived

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

brekehan

Lesson 13 Bitmapped fonts

This topic is 5895 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 am somewhat confused on whats going on here: // Selects The Font We Want oldfont = (HFONT)SelectObject(hDC, font); // Builds 96 Characters Starting At Character 32 wglUseFontBitmaps(hDC, 32, 96, base); // Selects The Font We Want SelectObject(hDC, oldfont); // Delete The Font DeleteObject(font); Is he selecting the new font we made and storing the old one, making some glfont thingy with the open gl function and then selecting the default we started with again? Is there a description somewhere of what wglUseFontBitmaps does exactly? and what happens if you don''t reselect the oldfont? Thanx, Christopher

Share this post


Link to post
Share on other sites
Advertisement
Yes. He selects in the new font, creates a display list based on that font, then puts the old font back into place.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

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!