PDA

View Full Version : Multiple windows using X protocol



jozsefke
07-24-2001, 12:50 AM
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?


Thanks,
joco

john
07-24-2001, 04:12 PM
Hello,

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

cheers,
John

jozsefke
07-24-2001, 09:40 PM
Hi John,


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

joco