Is there a way, under SDL, to create multiple windows (in non fullscreen
mode)? Each time I create a hardware surface (window) it kills the prior
one.
–>Neil-------------------------------------------------------------------------------
Neil Bradley "Your mistletoe is no match for my T.O.W. missile!"
Synthcom Systems, Inc. - Santabot - Futurama
ICQ #29402898
Short answer… No
Longer one, I think someone has done it by integrating QT with SDL or
something of that nature. But SDL in itself only supports one window.
Best regards
Daniel Liljeberg> ----- Original Message -----
From: nb@synthcom.com (Neil Bradley)
To:
Sent: Thursday, April 15, 2004 6:34 AM
Subject: [SDL] Creating multiple windows
Is there a way, under SDL, to create multiple windows (in non fullscreen
mode)? Each time I create a hardware surface (window) it kills the prior
one.
–>Neil
Neil Bradley "Your mistletoe is no match for my T.O.W.
missile!"
Synthcom Systems, Inc. - Santabot - Futurama
ICQ #29402898
Is there a way, under SDL, to create multiple windows (in non
fullscreen mode)?
no. not with plain SDL. there used to be a hack around in the net, that
adds this multiple window support, though. AFAIK, this feature is
planned for SDL2, when it ever gets released.
IIRC, someone did that with FLTK, by using FLTK instead of SDL for the
actual display. It’s probably been done with other toolkits as well.
(There are other ways of getting SDL to work with a GUI toolkit, so
there’s no guarantee that any “SDL + some toolkit” solution will
allow multiple SDL windows.)
The basic idea: SDL is used, without a diusplay surface, for
surface->surface blitting and stuff (all s/w surfaces), and a
"canvas" or similar widget of Your Toolkit of Choice is used for
blitting certain SDL surfaces to the screen.
Note that SDL still isn’t thread safe, so regardless of which toolkit
you use, you have to do all the SDL stuff in one thread, or otherwise
make sure there’s only one SDL blit in progress at any time.
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Thursday 15 April 2004 06.51, DAMiEN wrote:
Short answer… No
Longer one, I think someone has done it by integrating QT with SDL
or something of that nature. But SDL in itself only supports one
window.
There is one hack: Spawn one process for each window.
Unfortunately, some desktop environments are designed around the idea
that one process == one application, so the result may look like
multiple independent applications. In some weird environments, it may
just not work at all, but I think it should (sort of) work on any
platform that has proper multitasking… It might even work on
cooperative multitasking systems (Win16, Mac OS Classic and maybe
some others) if your window processes play nicely.
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Thursday 15 April 2004 07.22, Clemens Kirchgatterer wrote:
Neil Bradley wrote:
Is there a way, under SDL, to create multiple windows (in non
fullscreen mode)?
no. not with plain SDL. there used to be a hack around in the net,
that adds this multiple window support, though. AFAIK, this feature
is planned for SDL2, when it ever gets released.
Without hacking the libsdl source, at least, you cant.
I’ve heard rumors that people have gotten multiple
windows using Qt + SDL working together somehow???
-Mike> > On Wednesday 14 April 2004 09:34 pm, Neil Bradley wrote:
Is there a way, under SDL, to create multiple
windows (in non fullscreen
mode)? Each time I create a hardware surface
(window) it kills the prior
one.
To answer the question one more time
NO!
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25?