Hello all,
I am writing a simulated gauge program. I have a textured polygon for the face of the gauge and I am trying to draw the neegle pointer on top of this textured polygon, but it won’t show up. Here is a code snipit.
glLoadIdentity();
glTranslatef(0.0f, 0.0f, -3.0f);
glColor3f(1.0,1.0,1.0);
glBindTexture(GL_TEXTURE_2D, texture[0]);
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex2f(-1.0f, -1.0f);
glTexCoord2f(1.0f, 0.0f);
glVertex2f( 1.0f, -1.0f);
glTexCoord2f(1.0f, 1.0f);
glVertex2f( 1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f);
glVertex2f(-1.0f, 1.0f);
glEnd();
/////////THIS PART WON"T SHOW UP???
glLoadIdentity();
glTranslatef(0.0f, 0.0f, -3.0f);
glColor3f(1,1,1);
glBegin(GL_QUADS);
glVertex2f(-.20,.20);
glVertex2f(.20,-.20);
glVertex2f(-.20,-.20);
glEnd();
Any Help is greatly appreciated. i don’t want to have to texture the needle to have it show up, that seems unecessary.
Jason