PDA

View Full Version : Typing on the window



Windsor
02-14-2014, 08:59 AM
Hi ,there.
I want to type on the window.I know one method is glutBitMapCharater(). But I see one method in my techer's PPT. It is gluBitMapString(T x,T y,"Hello");Then it can show the Hello in the location(x,y). I am wondering how he make it? I am seeking an easy method just like the glutBitMapString...
Thanks.

tonyo_au
02-14-2014, 07:48 PM
I think that is a typo by you teacher - the function is glutBitmapString
see http://freeglut.sourceforge.net/docs/api.php

Windsor
02-15-2014, 05:07 AM
Thanks, I have changed glut.h to freeglut.h.