Hello !
Screenshot:
http://www.synolution.com/~wizard/tmp/MultiWin/test.jpg
An ugly example programm:
http://www.synolution.com/~wizard/tmp/MultiWin/multiwin.tar.gz
Compile it with
c++ multiwin.cxx -o multiwin sdl-config --cflags --libs
fltk-config --cxxflags --ldstaticflags
CU
Thanks for the example, Torsten.
I managed to do the same with wxWindows. Now a quick question to the SDL
cracks here (I am not): The docs to SDL_CreateRGBSurface write:
“Allocate an empty surface (must be called after SDL_SetVideoMode)”.
However, neither Torstens nor my examples call SDL_SetVideoMode but they
still work. Why? And can I expect this to work or is it just a lucky
coincidence on my (Linux) system and might fail on for example Windows?
Of course I can call a dummy before like:
SDL_SetVideoMode(0, 0, 0, SDL_SWSURFACE);
At least on Linux this does not give me a window (I dont want one as I
want to use the SDL surfaces within wxWindows). Is this SetVideoMode
dummy call required? Works without, but due to the documentation I am
slightly confused and suspicious now.
Sorry for the newbie mode :*)
PeterAm Di, den 14.10.2003 schrieb Torsten Giebl um 20:11:
An ugly example programm:
http://www.synolution.com/~wizard/tmp/MultiWin/multiwin.tar.gz
Hello !
I tested this programm on Windows too and it works there.
As an alternative to SDL_Init (NULL), we can use SDL_Init (SDL_INIT_VIDEO)
and use the DUMMY VIDEO Driver.
CU> ----- Original Message -----
From: zotan@web.de (Peter Strempel)
To:
Sent: Wednesday, October 15, 2003 12:26 PM
Subject: Re: [SDL] MultiWindow Output using FLTK with SDL
Am Di, den 14.10.2003 schrieb Torsten Giebl um 20:11:
An ugly example programm:
http://www.synolution.com/~wizard/tmp/MultiWin/multiwin.tar.gz
Thanks for the example, Torsten.
I managed to do the same with wxWindows. Now a quick question to the SDL
cracks here (I am not): The docs to SDL_CreateRGBSurface write:
“Allocate an empty surface (must be called after SDL_SetVideoMode)”.
However, neither Torstens nor my examples call SDL_SetVideoMode but they
still work. Why? And can I expect this to work or is it just a lucky
coincidence on my (Linux) system and might fail on for example Windows?
Of course I can call a dummy before like:
SDL_SetVideoMode(0, 0, 0, SDL_SWSURFACE);
At least on Linux this does not give me a window (I dont want one as I
want to use the SDL surfaces within wxWindows). Is this SetVideoMode
dummy call required? Works without, but due to the documentation I am
slightly confused and suspicious now.
Sorry for the newbie mode :*)
Peter
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl