How to create two windows?

Hi!

A new comer.

I want to ask how can I create two or more separate windows using SDL1.1.4.

Thank you

Hi!

A new comer.

I want to ask how can I create two or more separate windows using SDL1.1.4.

You can’t.
There will be some form of support for this in the upcoming SDL 1.3 API.

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

Actually, you can on certain OSes… But the code is not SDL-specific, and is no
longer portable (necessarily).

For example, under POSIX environments (such as Linux), I have an example about
how to make a multi-windowed SDL app:
http://www.geekcomix.com/snh/files/demos/
(look at the first demo)

Note that all this uses is simple POSIX IPC, and will only work if you fork
before init’ing the SDL library. (Which is why it really has nothing to do with
SDL, since you can essentially do this with almost any standard C lib).On Sun, 24 Jun 2001, you wrote:

Hi!

A new comer.

I want to ask how can I create two or more separate windows using SDL1.1.4.

You can’t.
There will be some form of support for this in the upcoming SDL 1.3 API.


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >