Integration with other GUI toolkits?

Hi,

I’m new to this list, so this might be a topic often talked about (I
didn’t see an archive for the mailing list).

Is it possible to use SDL simultaneously with GTK or Qt ?

I want to create a tile based RPG type game. And my first step will be
to have an editor for the little guy. However, I’d rather use Qt or
GTK to create the editor. The game itself will only be in SDL (this
way, my windows friend will be able to play it).

Anyone as experience on mixing SDL with other GUI libraries ?

Any pointers would be appreciated.

Thanks,

Phil

For what your doing, you may want to check out fltk. As a widget set it is WAY
easier to use that either gtk or qt, and it supports win32 and unix with opengl
as well. rendering into a buffer can be done, but not as fast or as easy as
SDL.

anyway,

/devOn 25-Oct-98 Lavoie Philippe wrote:

Hi,

I’m new to this list, so this might be a topic often talked about (I
didn’t see an archive for the mailing list).

Is it possible to use SDL simultaneously with GTK or Qt ?

I want to create a tile based RPG type game. And my first step will be
to have an editor for the little guy. However, I’d rather use Qt or
GTK to create the editor. The game itself will only be in SDL (this
way, my windows friend will be able to play it).

Anyone as experience on mixing SDL with other GUI libraries ?

Any pointers would be appreciated.


// David E. Vandewalle |Weinberg’s Law: If builders built
// vandewal at skyblue.com | buildings the way programmers wrote
// david.e.vandewalle at lmco.com | programs, then thefirst woodpecker that
// | came along would destroy civilization.

I’m new to this list, so this might be a topic often talked about (I
didn’t see an archive for the mailing list).

There’s an archive, but I haven’t had time to write a search engine, so you
will have to sort through 1100 or so messages…

Is it possible to use SDL simultaneously with GTK or Qt ?

Yes, but it really depends what you are doing…

I want to create a tile based RPG type game. And my first step will be
to have an editor for the little guy. However, I’d rather use Qt or
GTK to create the editor. The game itself will only be in SDL (this
way, my windows friend will be able to play it).

Yes, that wouldn’t be a problem. Your best bet would be to have the tiles in
BMP/XPM or some other standard format (BMP being the easiest to load in SDL),
as those formats will facilitate a tile-based RPG quite easily, and you only
have to read the file once, so there aren’t any problems with slow file
formats.

Anyone as experience on mixing SDL with other GUI libraries ?

SDL and GTK or QT are mutually exclusive, so long as you don’t initialise the
SDL screen in fullscreen mode. You can’t (yet?) draw a GTK or QT widget into
an SDL surface AFAIK.On Sun, Oct 25, 1998 at 05:30:13PM -0500, Lavoie Philippe wrote:


– Michael Samuel

I’m new to this list, so this might be a topic often talked about (I
didn’t see an archive for the mailing list).

There’s an archive, but I haven’t had time to write a search engine, so you
will have to sort through 1100 or so messages…

Use a pre-existing search engine, like glimpse or something. :slight_smile:

I want to create a tile based RPG type game. And my first step will be
to have an editor for the little guy. However, I’d rather use Qt or
GTK to create the editor. The game itself will only be in SDL (this
way, my windows friend will be able to play it).

Yes, that wouldn’t be a problem. Your best bet would be to have the tiles in
BMP/XPM or some other standard format (BMP being the easiest to load in SDL),
as those formats will facilitate a tile-based RPG quite easily, and you only
have to read the file once, so there aren’t any problems with slow file
formats.

Yep, you can create the editor using whatever toolkit you want, and then
use the resulting images in the game. :slight_smile:

Anyone as experience on mixing SDL with other GUI libraries ?

OpenGL doesn’t qualify as a GUI library does it? :slight_smile:
I haven’t seriously looked at it. A few people have expressed a natural
desire to have widgets, but nobody (that I know of) has integrated any of
the popular UI libraries with SDL.

Most of the GUI toolkits are very platform specific. TK and V being among
the few exceptions.

TK is very good, by the way. If you want to write GUI scripts, I highly
recommend it. It also integrates fairly well with C modules. Don’t be
put off by the interface. Once you figure it out, it’s very natural.

SDL and GTK or QT are mutually exclusive, so long as you don’t initialise the
SDL screen in fullscreen mode.

What do you mean by this?

See ya!
-Sam Lantinga (slouken at devolution.com)> On Sun, Oct 25, 1998 at 05:30:13PM -0500, Lavoie Philippe wrote:


Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

OpenGL doesn’t qualify as a GUI library does it? :slight_smile:

It can, but it is less than optimal :wink:

SDL and GTK or QT are mutually exclusive, so long as you don’t initialise the
SDL screen in fullscreen mode.

What do you mean by this?

Basicly, I can link a program against SDL and GTK, they are totally independant
on each other. The use of doing so is limited, if you initialise the screen
in fullscreen mode.On Mon, Oct 26, 1998 at 07:44:33AM -0800, Sam Lantinga wrote:


– Michael Samuel