pouët.net

OpenGL, multiple monitors, etc.

category: code [glöplog]
 
Is it possible to do OpenGL rendering fullscreen on multiple displays (different output on each monitor), in a way that will work on both Linux and Windows?
added on the 2010-03-18 13:44:14 by xeron xeron
is this more linked to the graphic card capabilities than the program and code themselves no ?
added on the 2010-03-18 13:48:13 by Tigrou Tigrou
ehhmm.. i dunno. I just want to know how to code it. Don't mind what toolkit (GLUT, SDL, whatever), just if its possible to do in a portable way.
added on the 2010-03-18 13:50:24 by xeron xeron
sorry i dont completely read your first message, saying you want two DIFFERENTS outputs on each screen)
added on the 2010-03-18 14:49:04 by Tigrou Tigrou
unfortunately surprisingly few "sdl-like" libs have support for multiple windows, let alone monitors :/
added on the 2010-03-18 15:17:31 by 216 216
I created a window streched so that it filled all monitors, and then I worked with glViewport and glScissor to display different content.
added on the 2010-03-18 15:18:48 by xTr1m xTr1m
this assume your two monitors have same resolution / aspect ratio...
added on the 2010-03-18 15:37:59 by Tigrou Tigrou
I know the upcoming SDL 1.3 release will include support for multiple displays, if this also includes the opengl bits- I don't know
added on the 2010-03-18 16:39:51 by sigflup sigflup
In windows it's not that complicated to do. In linux I guess it's some kind of specification reading hell.
added on the 2010-03-18 17:09:21 by xernobyl xernobyl
On mac it's fairly easy too using the core graphics api.
added on the 2010-03-18 17:41:13 by neoneye neoneye
i think you can do this under windows by having two separate render contexts for each monitor
Just create two windows... :p
(and share data between them using wglShareContexts)
added on the 2010-03-18 18:23:51 by hornet hornet
Just use QT.
added on the 2010-03-18 19:05:20 by Wiz Wiz
Quote:

Just create two windows... :p


Well, duh. I was wondering if there was a cross-platform framework that would let me know how many displays there were and let me open windows (with associated OpenGL contexts) for each one. I guess there probably isn't.
added on the 2010-04-12 14:38:43 by xeron xeron

login