Multiple windows using X protocol

Hi everybody!

I’m trying to write a simple program with glut using the X protocol. I want to display multiple windows on different machines, but I don’t know how to do this, because in glutInit I can specify only one “-display” parameter, and multiple calls of glutInit is not possible. Has anybody some idea how can I resolve this problem?



I’d wager that you cannot, for glut won’t expose multiple graphics pipes to the API.

The only solution(s) I can think of;

  • modify the GLUT source for your ends and allow the create window function to accept a display
  • abandon GLUT altogether and use GLX


Hi John,

Thanks for your help, I think, that I’ll choose the second solution.