Outline Fonts
I coded a font class based on Nehe''s tutorial on 3D outline fonts. When I tried to print something using the class, the characters it outputs are one character before the ones inputted. I would normally just alter the display list base in my font build code, but every other instance of the font class in the same application output correctly. The most recent font created also seems to override the previous fonts, making them all the same. My code follows along exactly with what the tutorial says, so I dont know where to begin. The only idea I have is that an DC can only have one outline font associated with it. Is this true?
Any suggestions whatsoever will be greatly appretiated
Thanks
Anybody?
If someone happens to know if it''s possible to use more than one outline font in a window, that would REALLY help. I need to know if im wasting my time trying to solve this problem.
If someone happens to know if it''s possible to use more than one outline font in a window, that would REALLY help. I need to know if im wasting my time trying to solve this problem.
I believe NeHe''s font code generates display lists with specific values. Meaning, it starts at list 1 and goes up (list 0 is invalid if I remember correctly). That would be why you are overwriting previous fonts, you just keep putting them into the same spots.
------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
_______________________________________Pixelante Game Studios - Fowl Language
Thank you soooo much. I stepped through my font building code, and noticed that glGenLists was returning 0 for my first font. That''s why it wasn''t building any of the font characters, and why it was printing one character off using the next font''s display lists. But under what conditions does glGenLists return 0? I''m still looking for a reason why, since it seems to work perfectly for the next font generated.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement