I am trying to get this function to work:
void RenderString(const std::string &string)
{
glColor3d(1.0, 0.0, 0.0);
glRasterPos2d(200, 200);
for (int i = 0; i < string.size(); i++) {
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, string[i]);
}
}
I keep getting linking issues when I try to compile though. It says glutBitmapCharacter is deprecated, but I thought it would still work despite this. It seems to have problems with glutBitmapCharacter and GLUT_BITMAP_HELVETICA_18. I was wondering if anyone had come across these problems before and if you'd come up with a workaround. Any help is appreciated.
Aucun commentaire:
Enregistrer un commentaire