I'm new to OpenGL
I loaded a ppm image and I can't figure out how to draw squares over it, then update the coordinates of these shapes. when I draw them using glBegin(GLQuads) nothing is displayed. here is the code:
void display(void)
{
glClear ( GL_COLOR_BUFFER_BIT );
glRasterPos2i(0,0);
glColor3f(1.0f, 0.7f, 0.3f);
glBegin(GL_QUADS);
glVertex3f(-0.5f, -3.5f, 3.5f);
glVertex3f(0.5f, -3.5f, 3.5f);
glVertex3f(0.5f, -3.5f, -3.5f);
glVertex3f(-0.5f, -3.5f, -3.5f);
glEnd();
glDrawPixels(n,m,GL_RGB, GL_UNSIGNED_INT, image);
glFlush ( );
}
I just loads the image. Please help me it's urgent



