PDA

View Full Version : Finding Length



suresh kannan
03-27-2001, 05: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, 08: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, 08: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