Advertisement

Loading Fonts

Started by August 20, 2001 08:06 PM
1 comment, last by steveharper101 23 years, 6 months ago
Hi I have read the OpenGL Game Programming Book on how to load font''s. The font''s are loaded into a display list and the base display list is returned in a function. What does the following line of code mean? glListBase(base - 32); Why do you have to minus 32 the text dosen''t display correctly without this. Thanks hope you understand what I mean ~Steve~
The minus 32 is so that if you display list ''a'' (for the ''a'' character) it should actually display ''a''-32, which is 97-32, which means the ''a'' character is the 65th list past ''base''.

[Resist Windows XP''s Invasive Production Activation Technology!]
Advertisement
Thanks. But the display list returned is the first display list of 96 and base - 32 is 4294967265(As it says in the debugger) It set''s this as the base display list and I don''t get it

Thanks Alot for the reply though

~Steve~

This topic is closed to new replies.

Advertisement