Lesson 13 Bitmapped fonts
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
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
---
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement