Displaying fixed location 2D text in a 3D OpenGL world using GLUT

前端 未结 3 1577
遥遥无期
遥遥无期 2021-01-05 06:39

I have an OpenGL project which uses GLUT (not freeglut) wherein I would like to display 2D text on the viewport at a fixed location. The rest of my

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 07:03

    There is a tricky way to solve your problem.

    Please write a code before you call a function or what ever it is as written below:

    glutBitmaCharacter(font, ' ');// 
    

    Does it....! And it should work...

提交回复
热议问题