GUI for SDL

Hi there.
I am intending to write a GUI for SDL with and without OpenGL.
I can do it in C or C++, since OOP is not a problem (I work with J2SE and
J2EE and I am almost ready for take the Sun’s exam for certified java
programmer).
But, since SDL is written in C, there is a good reason for it. My doubt
is, what are the pros and cons of C and C++ ?–
Using Opera’s revolutionary e-mail client: http://www.opera.com/m2/

What exactly do you mean by “a GUI for SDL.” That could mean quite a
few things.

Do you mean a GUI toolkit for use by SDL applications? Or a RAD IDE?On Jul 27, 2004, at 4:14 AM, j inacio wrote:

Hi there.
I am intending to write a GUI for SDL with and without OpenGL.
I can do it in C or C++, since OOP is not a problem (I work with J2SE
and J2EE and I am almost ready for take the Sun’s exam for certified
java programmer).
But, since SDL is written in C, there is a good reason for it. My
doubt is, what are the pros and cons of C and C++ ?


Using Opera’s revolutionary e-mail client: http://www.opera.com/m2/


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

  • Donny Viszneki

Hello !

What exactly do you mean by “a GUI for SDL.” That could mean quite a
few things.

Do you mean a GUI toolkit for use by SDL applications? Or a RAD IDE?

  • What widgets do you need ?

CU

Hello !

What exactly do you mean by “a GUI for SDL.” That could mean quite a
few things.

Do you mean a GUI toolkit for use by SDL applications? Or a RAD IDE?

Well SDL does not itself contain any GUI toolkit / widget set. I have
seen a few packages on the internet that provide these sort of things.
I am personally working on a menu class that is designed to be simple
lightweight and most of all easy to extended using C++ class
inheritance. So… don’t make a menu :stuck_out_tongue:

CU


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

  • Donny VisznekiOn Jul 27, 2004, at 8:49 AM, Torsten Giebl wrote:

Sorry, I did not explained it well.
By GUI I mean a set of button, textfields, (visual
components).

I have made one for directdraw a long ago. I can use
a surface as widget (it will be drawed on the surface,
and you just have to check if a var like actual_screen
= screen_of_component and check for mousecoords and
things like that).

— Donny Viszneki escreveu: >> On Jul 27, 2004, at 8:49 AM, Torsten Giebl wrote:

Hello !

What exactly do you mean by “a GUI for SDL.” That
could mean quite a

few things.

Do you mean a GUI toolkit for use by SDL
applications? Or a RAD IDE?

Well SDL does not itself contain any GUI toolkit /
widget set. I have
seen a few packages on the internet that provide
these sort of things.
I am personally working on a menu class that is
designed to be simple
lightweight and most of all easy to extended using
C++ class
inheritance. So… don’t make a menu :stuck_out_tongue:

CU


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

  • Donny Viszneki

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


Yahoo! Mail agora com 100MB, anti-spam e antiv?rus gr?tis!
http://br.info.mail.yahoo.com/

Just to make it clear :slight_smile:

You have a var in wich knows in wich “screen” are
you.
When you create the component, you use a const, a
"screen" for that component, with its properties for
the component.
When the component manager are going to draw the
components, it check if the component is from that
"screen", if yes, it draws it.
On event loop, click in example, you check if it was
clicked onver a component on that “screen”.

It is like “fake widgets” emulation, because you have
only one widget, wich is you main app window, and it
is easy to put together with the remaining of your
app.

It is like the other (DDrawUtil) works, and I will
keep the same way, since it worked fine (in my tests).

I was asking about C or C++ because I would like to
make it as simple as possible, but a Object Model
would be more suitable. I would emulate objects in c
(using a struct and passing it as a first parameter by
reference) and using a method like
StructA_do_this(&StructA) … but something like
ObjectA.do_this sounds more readable.

What do you think?

As soon I have codes or something usefull I will post
here.

TIA

— J Inacio <@J_Inacio1> escreveu: >
Sorry, I did not explained it well.> By GUI I mean a set of button, textfields, (visual

components).

I have made one for directdraw a long ago. I can
use
a surface as widget (it will be drawed on the
surface,
and you just have to check if a var like
actual_screen
= screen_of_component and check for mousecoords and
things like that).

— Donny Viszneki escreveu:

On Jul 27, 2004, at 8:49 AM, Torsten Giebl wrote:

Hello !

What exactly do you mean by "a GUI for SDL."
That
could mean quite a

few things.

Do you mean a GUI toolkit for use by SDL
applications? Or a RAD IDE?

Well SDL does not itself contain any GUI toolkit /
widget set. I have
seen a few packages on the internet that provide
these sort of things.
I am personally working on a menu class that is
designed to be simple
lightweight and most of all easy to extended using
C++ class
inheritance. So… don’t make a menu :stuck_out_tongue:

CU


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

  • Donny Viszneki

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


Yahoo! Mail agora com 100MB, anti-spam e antiv?rus
gr?tis!
http://br.info.mail.yahoo.com/


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


Yahoo! Mail agora com 100MB, anti-spam e antiv?rus gr?tis!
http://br.info.mail.yahoo.com/

Don’t make one. There are other projects already out there, here is one
of them:

http://aedgui.sourceforge.net/