glutCreateSubWindows with problems in Linux

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);

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

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) :slight_smile:

Thanks!!!

Daniel

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.