Original Post
Sorry for i keep asking questions, but i am really new in OpenGL, so hope everyone can help me out!! really confused, this time is multi windows, I want to create a welcome screen, and game screen, and game over window, but i create two windows, cannot run, the error is "Fatal Error in : redisplay needed for winodw 1, but no display callback", i dont know how to do that, can anybody help me or give me some hints, can teach me the simplest way to create multi-windows??? thanks a lot and best regards!! this is my code!!
void main(void)
{
INIT_LIB();
glutInitDisplayMode(GLUT_DOUBLE| GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(640, 480);
glutCreateWindow("Welcome");
glutFullScreen();
glutInitDisplayMode(GLUT_DOUBLE| GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(640, 480);
glutCreateWindow("Dodger");
//glutFullScreen();
glutSetCursor(GLUT_CURSOR_NONE);
glutDisplayFunc(RenderScene);
glutReshapeFunc(Rescale);
glutIdleFunc(DoMainLoop);
gameworld = new GameWorld();
SetupRC();
SetupLights();
glutMainLoop();
SHUTDOWN_LIB();
}