Another mesh redering method not working

Dear All,

I am the mesh in the following way - different from the previous way. Again a nothing is seen on the screen.What may be reason.

void make_mesh()
{
   float x, y;
   int i,j;
   glBegin(GL_QUADS);
   for(j=0;j<10;j++)
   {
	 for(i=0;i<10;i++)
	 {
		glVertex2f(i,j);
		glVertex2f(i+1,j);
		glVertex2f(i+1,j+1);
		glVertex2f(i,j+1);
	 }
   } 
   glEnd();
	
}
void display(void)
{
   glClear (GL_COLOR_BUFFER_BIT);
   glColor3f (0.0, 0.0, 0.0);
   glLoadIdentity();
     		make_mesh();
   glFlush();
}


void reshape (int w, int h)
{
   glViewport (0, 0, (GLsizei) w, (GLsizei) h); 
   glMatrixMode (GL_PROJECTION);
   glLoadIdentity ();
   glOrtho(0.0, 10.0, 0.0, 10.0, -1.0, 1.0);
   glMatrixMode (GL_MODELVIEW);
}

  

Did you call glClearColor with a value other than black? Because you’re drawing in black.

void display(void)

{

   glClear (GL_COLOR_BUFFER_BIT);

   glColor3f (0.0, 0.0, 0.0); //you set black as color here

   glLoadIdentity();

     make_mesh();

   glFlush();

}

Greetz,

Nico