Vlasko
06-24-2003, 10:51 AM
i'm puting a bitmap text into my project and I'm unable to correctly change the color of it
code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glDisable(GL_DEPTH_TEST);
glOrtho(-1.0f,1.0f,-1.0f,1.0f,1.0f,-1.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glColor3f(1.0f,1.0f,1.0f);
glRasterPos3f(-0.8f,0.8f,0.0f);
while(*p!='\0') glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18,*p++) ;
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glEnable(GL_DEPTH_TEST);
gluPerspective(60,ratio,0,200);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glColor3f doesn=t work correctly -i've got only dark green and black color
code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glDisable(GL_DEPTH_TEST);
glOrtho(-1.0f,1.0f,-1.0f,1.0f,1.0f,-1.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glColor3f(1.0f,1.0f,1.0f);
glRasterPos3f(-0.8f,0.8f,0.0f);
while(*p!='\0') glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18,*p++) ;
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glEnable(GL_DEPTH_TEST);
gluPerspective(60,ratio,0,200);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glColor3f doesn=t work correctly -i've got only dark green and black color