Sdl gtk

When using SDL with GTK, you need a gtkwindow to display it in. You have
to hack the windowid.
I can display my frames with sdl and gtk. But, I want to put in the same
gtkwindow, a panel control (play,pause,…) on the left and on the right
the sdl display.
I can do this when the panel control and the sdl display aren’t in the
same gtkwindow.
To put both in the same, i need a kind of “window in another window”.
SDL can be used only in a window, not a drawing area or another kind of
widget…
If someone has the answer to my problem… Thank you.

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

Le vendredi 4 Juin 2004 09:04, Fabrice Chinjoie a ?crit :

When using SDL with GTK, you need a gtkwindow to display it in. You have
to hack the windowid.
I can display my frames with sdl and gtk. But, I want to put in the same
gtkwindow, a panel control (play,pause,…) on the left and on the right
the sdl display.
I can do this when the panel control and the sdl display aren’t in the
same gtkwindow.
To put both in the same, i need a kind of “window in another window”.
SDL can be used only in a window, not a drawing area or another kind of
widget…
If someone has the answer to my problem… Thank you.

If I remember well, OpenPTC (see http://www.gaffer.org:8080/ptc/ptc.html)
which was a poorer earlier alternative to SDL was able to give access to the
"Window hook". Maybe we can learn from its sources (the Windows and Linux
version are available on the website for download under the GPL license).

Don’t be fooled by the C++ interface, the real core is in C, thus quite
accessible for SDL.

Of course SDL is lots of times better than PTC, but sometimes, it is
interesting to look to the others :wink:


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


Michel Nolard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAwDgZyAKwOMHoSb0RAiGlAKDccx0oMqXEG9+GEB+bP8rOi5W+rgCfUhEM
fsz5owxDbZXsRpsiwNfeTSQ=
=MJCZ
-----END PGP SIGNATURE-----

SDL( video subsystem ) works well 12 - 20 fps with average of ~16fps
( with fullscreen UpdateRects 565bpp )
earlier problems I’ve encountered was not SDL fault, but faulty ep93xxfb.c
with not correctly working fbset and other ‘fb utils’
the same is with OSS ( ep93xx-ac97.c and ep93xx-i2s.c from Cirrus )
hey I’m NOT smarter than the manufacturer … YET :slight_smile:
SDL_image -> works ( except for .gif loading which is not a problem,
cause I use .png .tga .bmp mostly :slight_smile: )
SDL_mixer -> partially ( sometimes it can hang up sys ( Mix_PlayChannel() does,
but Mix_PlayMusic() does not, weird isn’ it?, no I’ve been unable
to track the cause yet )
compilation fails:
ogg vorbis SDK, so no mixer .ogg support :frowning:
mikmod :frowning:
the same with mp3 ( BTW only a crazy ( W*nShit man have to )
uses ( pays for ) .mp3 when comparable
& free format is available )
is there any way to save SDL_Surface as 16bpp .bmp file or
do I have to write myself new saving routine to do that job?
PS. testing in heavy ( ‘soundy’ :slight_smile: ) progress …
@pamashoid_at_poczta