glutBitmapCharacter positions text wrong
问题 I'm trying to draw a simple string (overlay) on the screen. From what I've found over the internet, I'm using it this way: void write(string text, int x, int y){ glRasterPos2i(x,y); for(int i = 0; i < text.length(); i++){ glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, text.data()[i]); } } But it draws the string according to the world coordinates. Say, if x and y are set to 10, they are drawn at (10,10,0) coordinates in the world. But I simple need this string at window's (10,10) coordinates