question about tutorial #13
what would i do without NeHe''s tutorials? i just got through tut 13 and everything works great. but i''m wondering if there''s any way to get the width of the text that printed. i''d like to be able to know exactly how wide a string is so that i can center it, or clip it if necessary. anybody know how to do this?
>>what would i do without NeHe''s tutorials?
Uhmmm, you''d probably read the red and blue opengl books, and like it! (You''d have to, coz there wouldn''t be many (any?) alternatives!)
>>i just got through tut 13 and everything works great. but i''m
>>wondering if there''s any way to get the width of the text that
>>printed. i''d like to be able to know exactly how wide a string is
>>so that i can center it, or clip it if necessary. anybody know how
>>to do this?
You should probably start by looking up GetTextExtentPoint32 in your copy of the Win32 Programmers Reference manual. That should tell you everything you need to know.
Uhmmm, you''d probably read the red and blue opengl books, and like it! (You''d have to, coz there wouldn''t be many (any?) alternatives!)
>>i just got through tut 13 and everything works great. but i''m
>>wondering if there''s any way to get the width of the text that
>>printed. i''d like to be able to know exactly how wide a string is
>>so that i can center it, or clip it if necessary. anybody know how
>>to do this?
You should probably start by looking up GetTextExtentPoint32 in your copy of the Win32 Programmers Reference manual. That should tell you everything you need to know.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement