title: Front screen switching
body: <p>I have a front screen which I am going to put for my project. 
   But the issue is its not happening. It should be like, by pressing some specified key front screen should switch with the project screen.</p>
  
  <p>Here what i have done is, I have specified an integer value to a variable.</p>
  
  <pre><code>int flag=0;
  </code></pre>
  
  <p>And I have a key for it, defined as: </p>
  
  <pre><code>if(key=='b'||key=='B')
  {   
      if(flag==0)
          flag=1;
  }
  </code></pre>
  
  <p>Then I'm providing conditions in a function.</p>
  
  <pre><code>  void mydisplay(void)
    {
     //glClear(GL_COLOR_BUFFER_BIT);
      if(flag==0)
          window();
      if(flag==1)
          display();
   }
  </code></pre>
  
  <p>the window function is defined as:</p>
  
  <pre><code> void window(void)
  {   
   glutInitDisplayMode (GLUT_DOUBLE);
  glutInitWindowSize (1920,1080);
  glutInitWindowPosition (0,0);
  glutCreateWindow ("3D GLOBE");
  glutDisplayFunc (display10);
  glutIdleFunc (display10);
  glutReshapeFunc (reshape10);
  
  //Load our texture
  texture[9] = LoadTexture1( "docd.bmp", 1754, 1240 );
  }
  </code></pre>
  
  <p>And after this I am calling the mydisplay function in main function</p>
  
  <pre><code>int main (int argc, char **argv)
  {
  
  
  glutInit (&amp;argc, argv);
  
  
  glutInitDisplayMode (GLUT_DOUBLE | GLUT_DEPTH);
  
  glutInitWindowSize (1920,1080);
  
  glutInitWindowPosition (0,0);
  
  glutCreateWindow ("3D GLOBE");
  
  init();
  
  createmenu(); 
  
  
  glutDisplayFunc (mydisplay);
  glutIdleFunc (spinsphere);
  
  
  glutKeyboardFunc(keys);
  
  glutReshapeFunc (reshape);
  
  
  glutMainLoop ();
  
  return 0;
  }
  </code></pre>