C++ wrappers?

Hi,

Are there any plain C++ wrappers for SDL?
At the SDL site I saw 6 libs, but they’re all much more then just a wrapper.

Olaf van der Spek
Almere, Holland
http://xccu.sf.net/

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

Hi,

Are there any plain C++ wrappers for SDL?
At the SDL site I saw 6 libs, but they’re all much more then just a
wrapper.

You really don’t need a wrapper to use SDL with C++, and I guess that
creating a library that is so thin that the only thing it does is adding
member functions to SDL surfaces is too boring to even bother :wink:

By the way, creating an “SDL” class which contains the equivalent of
functions like SDL_SetVideoMode() isn’t really logical because it would
confuse the global nature of these functions, so changing SDL surfaces (and
maybe events) to be more “class-like” is really the only thing such a thin
C++ library could do.

cu,
Nicolai

Olaf van der Spek
Almere, Holland
http://xccu.sf.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQE+lZUmsxPozBga0lwRAh2PAJYoMduXckXe3owQyTnTyu7rezLVAJ0XYwxm
Yxxseq2TnZVblaOznNcXSg==
=grVL
-----END PGP SIGNATURE-----On Thursday 10 April 2003 17:49, Olaf van der Spek wrote:

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

Hi,

Are there any plain C++ wrappers for SDL?
At the SDL site I saw 6 libs, but they’re all much more then just a
wrapper.

You really don’t need a wrapper to use SDL with C++, and I guess that

Of course it’s not needed, but it’s quite handy.

creating a library that is so thin that the only thing it does is adding
member functions to SDL surfaces is too boring to even bother :wink:

By the way, creating an “SDL” class which contains the equivalent of
functions like SDL_SetVideoMode() isn’t really logical because it would
confuse the global nature of these functions, so changing SDL surfaces
(and
maybe events) to be more “class-like” is really the only thing such a thin
C++ library could do.

Actually, the reason I asked for this was automatic reference counting of
SDL_Surface to allow the user not having to call SDL_FreeSurface.
Although not very important, it’s a nice feature to have.

cu,
Nicolai

Olaf van der Spek
Almere, Holland
http://xccu.sf.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQE+lZUmsxPozBga0lwRAh2PAJYoMduXckXe3owQyTnTyu7rezLVAJ0XYwxm
Yxxseq2TnZVblaOznNcXSg==
=grVL
-----END PGP SIGNATURE-----


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

----- Original Message -----
From: prefect_@gmx.net (Nicolai Haehnle)
To:
Sent: Thursday, April 10, 2003 6:00 PM
Subject: Re: [SDL] C++ wrappers?
On Thursday 10 April 2003 17:49, Olaf van der Spek wrote: