Multiple Windows?

I have no experience working with SDL, but I have an apllication that
prints an image from a camera in a SDL window.
I would like to know if it is possible to create more than one window
-to paint several modified images- in the same application.

Thanks–


V I S U A L T O O L S
Cristina Sandoval
R&D Department
C/Isla Graciosa, 1.
28034 Madrid - Spain
Telephone: +34 917 294 844
Fax: +34 913 585 236
csandoval at visual-tools.com

Not with SDL 1.2. Not without making a threaded app, or something.
Sorry :frowning:

-bill!On Fri, Oct 10, 2003 at 02:28:11PM +0200, Cristina Sandoval wrote:

I have no experience working with SDL, but I have an apllication that
prints an image from a camera in a SDL window.
I would like to know if it is possible to create more than one window
-to paint several modified images- in the same application.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!Am Freitag, 10. Oktober 2003 19:34 schrieb Bill Kendrick:

[… multiple windows …]

Not with SDL 1.2. Not without making a threaded app, or something.

Tell us more about that thread-trick, please. I don’t see how that’s supposed
to work out.
regards
Matthias


Matthias Bach | GPG/PGP-Key-ID: 0xACA73EC9
www.marix-world.de | On Keyserver: www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/hyTklnJmS6ynPskRAgbOAJ0Vpl94CcF+97xtyKgF8kwvsl1XnACfd7Vj
c7XGtB6jpOuVfVW/g3XsPcU=
=B6NT
-----END PGP SIGNATURE-----

The way I understand it it is NOT possible to create multiple SDL windows.
But, prehaps there is a patch out there that allow it. But not SDL in
standard so to speak…

Best regards
Daniel Liljeberg> ----- Original Message -----

From: cristina@visual-tools.com (Cristina Sandoval)
To:
Sent: Friday, October 10, 2003 2:28 PM
Subject: [SDL] Multiple Windows?

I have no experience working with SDL, but I have an apllication that
prints an image from a camera in a SDL window.
I would like to know if it is possible to create more than one window
-to paint several modified images- in the same application.

Thanks


V I S U A L T O O L S
Cristina Sandoval
R&D Department
C/Isla Graciosa, 1.
28034 Madrid - Spain
Telephone: +34 917 294 844
Fax: +34 913 585 236
csandoval at visual-tools.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I’ve never done it. Hopefully someone else here can explain it.
I stick to single process programs whenever possible :wink:

-bill!On Fri, Oct 10, 2003 at 11:30:09PM +0200, Matthias Bach wrote:

Tell us more about that thread-trick, please. I don’t see how that’s supposed
to work out.

Hello !

A really easy way to get Multiple Windows
on Win32, Linux and MacOS X is FLTK.
( http://www.fltk.org )

CU> ----- Original Message -----

From: nbs@sonic.net (Bill Kendrick)
To:
Sent: Friday, October 10, 2003 11:44 PM
Subject: Re: [SDL] Multiple Windows?

On Fri, Oct 10, 2003 at 11:30:09PM +0200, Matthias Bach wrote:

Tell us more about that thread-trick, please. I don’t see how that’s supposed
to work out.

I’ve never done it. Hopefully someone else here can explain it.
I stick to single process programs whenever possible :wink:

-bill!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Can you then use SDL surfaces in those? :slight_smile:

-bill!On Sat, Oct 11, 2003 at 12:05:31AM +0200, Torsten Giebl wrote:

Hello !

A really easy way to get Multiple Windows
on Win32, Linux and MacOS X is FLTK.
( http://www.fltk.org )

Hello !

Can you then use SDL surfaces in those? :slight_smile:

24 Bit Surfaces with a trick, but 32 Bit Surfaces with an Alpha Value may work
too. I create an SDL Surface for every Window i want to have on the screen.
It has to be exactly the same size as the special Window it is used for.

Then i blit to all the Surfaces what ever i want to be displayed in the window.
FLTK has a special draw function, the parameters are a Window on the screen
and a pointer to an array of pixels. I simply put in the SDL_Surface -> surface pointer.

CU

24 Bit Surfaces with a trick, but 32 Bit Surfaces with an Alpha Value may work
too. I create an SDL Surface for every Window i want to have on the screen.
It has to be exactly the same size as the special Window it is used for.

Then i blit to all the Surfaces what ever i want to be displayed in the window.
FLTK has a special draw function, the parameters are a Window on the screen
and a pointer to an array of pixels. I simply put in the SDL_Surface -> surface pointer.

Now that’s VERY interesting… what’s the function name? And how can you
specify the bit depth?–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation

Hello !

I am just coding a little demo programm to show
how to use FLTK to get Multi Window Output.

CU> ----- Original Message -----

From: crusader@inwind.it (CRUSADER//KY)
To:
Sent: Saturday, October 11, 2003 10:00 PM
Subject: [SDL] Re: Multiple Windows?

24 Bit Surfaces with a trick, but 32 Bit Surfaces with an Alpha Value may work
too. I create an SDL Surface for every Window i want to have on the screen.
It has to be exactly the same size as the special Window it is used for.

Then i blit to all the Surfaces what ever i want to be displayed in the window.
FLTK has a special draw function, the parameters are a Window on the screen
and a pointer to an array of pixels. I simply put in the SDL_Surface -> surface pointer.

Now that’s VERY interesting… what’s the function name? And how can you
specify the bit depth?


[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Care to share it with the rest of us?
:wink:

JeffOn Sunday 12 October 2003 06:24 am, Torsten Giebl wrote:

I am just coding a little demo programm to show
how to use FLTK to get Multi Window Output.