Serve Lau wrote:
> I'm investigating the use of OpenGL on Linux and 2 screens. But
> I'm wondering if it's possible to use OpenGL on multiple
> screens and if so how?
>=20
> For instance glLoadIdentity() sets the current matrix to the
> identity matrix, but when you have 2 screens you have to
> specify which screen=C2=B4s matrix which you cant. So is it possible
> to control 2 screens in 1 OpenGL application?
Either do a windows spaning over both screens and set an
apropriate view****t with glView****t / glScissor, or create two
windows, each with it's own rendering context. Then you
can "select" the screen, by making the desired context current.
You can share objects (i.e. Display Lists, Textures, stuff like
that) between contexts, by supplying the context you want to
share with as the "shareLists" parameter of glXCreateContext.
Wolfgang Draxinger
--=20
E-Mail address works, Jabber: hexarith@[EMAIL PROTECTED]
ICQ: 134682867


|