View Full Version : Finding Length
suresh kannan
03-27-2001, 04:58 AM
Hi,
I am displaying text using wglUseFontOutlines() function.
For example the string is "OpenGL". How I can find the center position(x,y) of the string.
Thanks,
kannan
Tim Stirling
03-27-2001, 07:53 AM
NeHe.gamedev.net 's tutorials on fonts (the latter ones anyway) have a function that will find the length of the string and automatialy centre it.
suresh kannan
03-27-2001, 07:07 PM
Hi,
In Nehe tutorial 14 (fonts), they are using prespective projecttion. When i am changing from perspective to glOrtho, the text disappears.I dont know what happens,
please explain me.
Thanks,
Kannan
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.