Hi!
I got a problem with my font code in glut with codeblocks.
I got this anoying warning that says “warning: deprecated conversion from string constant to 'char*”
So here is the code :
void renderBitmapString(
float x,
float y,
void *font,
char *string) {
char *c;
glRasterPos2f(x, y);
for (c=string; *c != ‘\0’; c++) {
glutBitmapCharacter(font, *c);
}
}
And for the relevant information in the display function:
renderBitmapString(5,30,GLUT_BITMAP_TIMES_ROMAN_24,“3D hello”);
Hope you guys can tell me what’s wrong and how i get rid of the warning message…
Oh and I got from Lighthouse .
~Xrid3r.