Digging around many windows with SDL

Hello!
I’m need to use SDL window as a regular child window
(its under windows 95).
So I digged SDL code and make a hack similar to SDL_WINDOWID,
but for parent window HWND.
Does anybody need this code?

Ipse

Put it online !!! If nobody needs it now, perhaps in the FUTURE !!

CU

“Alexander Chemeris” schrieb im Newsbeitrag news:20010307230429.A14778 at arctur.icb.psn.ru…> Hello!

I’m need to use SDL window as a regular child window
(its under windows 95).
So I digged SDL code and make a hack similar to SDL_WINDOWID,
but for parent window HWND.
Does anybody need this code?

Ipse

No, its not cross-platform. LGPL commands you open-source any modifications
to the SDL, I’m not sure where you send those too if their just hacks for
your own purposes. However, the need for additional child windows, a UI, and
a more windows like wrapper calls the need for something greater. Especially
for designing cross-platform tools.

I’m envisioning something like WDL, Windowing DirectMedia library, where you
can spawn off child windows that implement either SDL context or OpenGL
window context, and any UI used is implemented natively using SDL if its an
SDL surface, or OpenGL if its an OpenGL context. It would be an excellent
idea for people wishing to write cross-platform tools (like a 3d modeler),
but the scope is to large just to be an extension to the library.

Matt> Hello!

I’m need to use SDL window as a regular child window
(its under windows 95).
So I digged SDL code and make a hack similar to SDL_WINDOWID,
but for parent window HWND.
Does anybody need this code?

Ipse

No, its not cross-platform. LGPL commands you open-source any modifications
to the SDL, I’m not sure where you send those too if their just hacks for
your own purposes.

A great collection of “hacks for your own purposes” wrapped up in a nice API
solves a lot of problems. :slight_smile:

However, the need for additional child windows, a UI,
and a more windows like wrapper calls the need for something greater.
Especially for designing cross-platform tools.

I’m envisioning something like WDL, Windowing DirectMedia library, where
you can spawn off child windows that implement either SDL context or OpenGL
window context, and any UI used is implemented natively using SDL if its an
SDL surface, or OpenGL if its an OpenGL context. It would be an excellent
idea for people wishing to write cross-platform tools (like a 3d modeler),
but the scope is to large just to be an extension to the library.

It also seems to require some fundametal features that are still missing in
SDL,but the toolkit, “SDL window manager” and other higher level stuff should
be optional add-ons. (Rule: If it can’t be made totally generic, very fast
and very small, make it optional, and expect different alternatives to appear
over time.)

//David

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Wednesday 07 March 2001 23:29, Matt Johnson wrote:

This seems like a great idea. There are a lot of things people have wanted that
could fit into it that would be beter left out of SDL. It might be a good time
to start it so its development. That way SDL 1.3 can be designed to work with
it. Some of what is currently in SDL could even be moved into it. This would
break source compatiblity with some programs. But personally i dont see why
thats a problem. They can install both versions of SDL if they want.

Jess

Matt Johnson wrote:> No, its not cross-platform. LGPL commands you open-source any modifications

to the SDL, I’m not sure where you send those too if their just hacks for
your own purposes. However, the need for additional child windows, a UI, and
a more windows like wrapper calls the need for something greater. Especially
for designing cross-platform tools.

I’m envisioning something like WDL, Windowing DirectMedia library, where you
can spawn off child windows that implement either SDL context or OpenGL
window context, and any UI used is implemented natively using SDL if its an
SDL surface, or OpenGL if its an OpenGL context. It would be an excellent
idea for people wishing to write cross-platform tools (like a 3d modeler),
but the scope is to large just to be an extension to the library.

Matt

Hello!
I’m need to use SDL window as a regular child window
(its under windows 95).
So I digged SDL code and make a hack similar to SDL_WINDOWID,
but for parent window HWND.
Does anybody need this code?

Ipse

All that the LGPL requires is that if they make any modifications to the code,
/and/ distribute binaries from the modified code, that they must make the
source code available somewhere (i.e., via a web-site or freely via e-mail
[like they are doing :wink: ] , or snail mail, or whatever).

If they are just hacks that aren’t platform-independent (and thus, don’t
belong in the core SDL) the easiest route is to obtain free web-space from
somewhere and post the code there.On Wed, 07 Mar 2001, you wrote:

No, its not cross-platform. LGPL commands you open-source any modifications
to the SDL, I’m not sure where you send those too if their just hacks for
your own purposes.


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/ >

No, its not cross-platform.
Sorry, I’m programming only for Windows, so i don’t now how it
done on other systems.
May be others will tell?

I’m envisioning something like WDL, Windowing DirectMedia library, where you
can spawn off child windows that implement either SDL context or OpenGL
window context, and any UI used is implemented natively using SDL if its an
SDL surface, or OpenGL if its an OpenGL context. It would be an excellent
idea for people wishing to write cross-platform tools (like a 3d modeler),
but the scope is to large just to be an extension to the library.
Yes, I did not 3d modeler, but something similar
(3d reconstruction from serial sections).
I announce it when released :slight_smile:

I saw in TODO multiply window support.
So it is in SDl 1.3. Yes?

Ipse

PS. See http://arctur.icb.psn.ru/~alchemist/ for my patch.On Wed, Mar 07, 2001 at 05:29:27PM -0500, Matt Johnson wrote: