🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

bitmaps

Started by
1 comment, last by L_Nandor 15 years, 9 months ago
hi,here is a part of my DrawGLScene(): if(logonwindow) { glTranslatef(-0.3f,0.0f,-5.0f); glColor3f(1.0f,1.0f,1.0f); glRasterPos2f(0.0f,1.0f); glPrint(base,"WarKnight"); glRasterPos2f(-0.25f,0.0f); glPrint(base,"%s",username); glRasterPos2f(-0.20f,-0.25f); glPrint(base,"%s",hiddenpath); glColor3f(1.0f,0.0f,1.0f); glBindTexture(GL_TEXTURE_2D,texture[0]); glBegin(GL_QUADS); glTexCoord2f(0.0f,1.0f);glVertex3f(-0.75f,0.1f,-0.1f); glTexCoord2f(1.0f,1.0f);glVertex3f( 1.25f,0.1f,-0.1f); glTexCoord2f(1.0f,0.0f);glVertex3f( 1.25f,-0.4f,-0.1f); glTexCoord2f(0.0f,0.0f);glVertex3f(-0.75f,-0.4f,-0.1f); glEnd(); } I have a rpoblem with it: Insteaf of displaying white text,it displays red,blue etc. text,depending on the texture.I load the texture from a resource.
mov eax,ebx
Advertisement
disable the texture when printing text: glDisable(GL_TEXTURE_2D)
Thanks very much for help!
mov eax,ebx

This topic is closed to new replies.

Advertisement