Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

bitmaps

Started by L_Nandor Sep 17, 2008 at 11:04 AM 1 replies 1.4k views
Original Post
L_Nandor
L_Nandor
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
Kambiz
Kambiz
disable the texture when printing text: glDisable(GL_TEXTURE_2D)
L_Nandor
L_Nandor
Thanks very much for help!
mov eax,ebx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.