PDA

View Full Version : glutCreateSubWindows with problems in Linux



danielcarvalho
07-24-2001, 02:49 AM
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);

...

07-25-2001, 04:22 PM
No, I am not aware of any limitations with linux. I tested some programs using sub windows and they worked without problems. Probably something wrong with your code. Here is some GLUT programs with sub windows http://www.xmission.com/~nate/tutors.html

danielcarvalho
07-25-2001, 06:26 PM
Thanks for your hint!!!!

I will see the code in the programs that you indicate...

The site that you show is realy ANIMAL!!! (expression for coll, in my language) :-)

Thanks!!!

Daniel