Talk About Network

Google





Graphics > OpenGL 3D API > Re: dual screen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 4781 of 5061
Post > Topic >>

Re: dual screen OpenGL

by "jbwest" <jbwest@[EMAIL PROTECTED] > Jun 4, 2008 at 05:43 PM

"Serve Lau" <nihao@[EMAIL PROTECTED]
> wrote in message 
news:414f4$48468c83$541fc2ec$17542@[EMAIL PROTECTED]
>
> "Wolfgang Draxinger" <wdraxinger@[EMAIL PROTECTED]
> schreef in bericht 
> news:k3aih5-alc.ln1@[EMAIL PROTECTED]
> 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?
>>
>> For instance glLoadIdentity() sets the current matrix to the
>> identity matrix, but when you have 2 screens you have to
>> specify which screen´s 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.
>
> ah I see thank you
>
> so the render function would look like this in pseudo:
>
> select_context(screen1)
> draw_scene1()
>
> select_context(screen2)
> draw_scene2()
>
>
> the screen are unrelated, different things will be rendered not one
scene 
> over 2 screens
>

Yes, but, almost all Nvidia and ATI accelerated cards have native 
dual-screen sup****t where the pair of screens is treated as one jumbo 
framebuffer. Don't usually have to mess with multiple anything, just treat
2 
screens as one extra-wide (or tall) one.

jbw
 




 11 Posts in Topic:
dual screen OpenGL
"Serve Lau" <  2008-06-04 13:11:38 
Re: dual screen OpenGL
Wolfgang Draxinger <wd  2008-06-04 13:15:31 
Re: dual screen OpenGL
"Serve Lau" <  2008-06-04 14:36:51 
Re: dual screen OpenGL
Wolfgang Draxinger <wd  2008-06-04 16:11:16 
Re: dual screen OpenGL
"jbwest" <jb  2008-06-04 17:43:27 
Re: dual screen OpenGL
"Serve Lau" <  2008-06-05 08:51:22 
Re: dual screen OpenGL
"jbwest" <jb  2008-06-05 17:50:31 
Re: dual screen OpenGL
"Serve Lau" <  2008-06-08 09:16:55 
Re: dual screen OpenGL
"Serve Lau" <  2008-06-08 09:20:30 
Re: dual screen OpenGL
"jbwest" <jb  2008-06-08 09:40:06 
Re: dual screen OpenGL
fungus <openglMYSOCKS@  2008-06-08 06:37:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 17:03:30 PST 2009.