Hi,
I’m using glutCreateSubWindow in a program.
In Windows is OK, but in Linux the menu sub window stay with the “clear color” and the objects draw don’t be displayed.
Is there any rescritction to use glutCreateSubWindow with Linux??
Thanks!!
Daniel
Code:
…
JMenu = glutCreateSubWindow( JPrin, 0, 0, LargMenu, Altu); // Menu
glutDisplayFunc(DesenhaMenu_Func);
glutKeyboardFunc(Teclas_Func);
glutSpecialFunc(TeclasEspeciais_Func);
glutSetCursor(GLUT_CURSOR_LEFT_ARROW);
InformacaoSistema();
JCena = glutCreateSubWindow( JPrin, 0, 0, Larg, Altu-40); // Cena
MostraInfo();
glutDisplayFunc(DesenhaCena_Func);
glutKeyboardFunc(Teclas_Func);
glutSpecialFunc(TeclasEspeciais_Func);
glutMouseFunc(Mouse_Func);
glutMotionFunc(MovMouseBotPress_Func);
glutSetCursor(GLUT_CURSOR_CROSSHAIR);
…