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?
is this more linked to the graphic card capabilities than the program and code themselves no ?
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.
sorry i dont completely read your first message, saying you want two DIFFERENTS outputs on each screen)
unfortunately surprisingly few "sdl-like" libs have support for multiple windows, let alone monitors :/
I created a window streched so that it filled all monitors, and then I worked with glViewport and glScissor to display different content.
this assume your two monitors have same resolution / aspect ratio...
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
In windows it's not that complicated to do. In linux I guess it's some kind of specification reading hell.
On mac it's fairly easy too using the core graphics api.
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)
(and share data between them using wglShareContexts)
Just use QT.
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.