SDL C++ wrapper

Hello,
I’ve seen that more or less every C++ project using SDL it’s building it’s
wrapper. There’re some projects that tryed to build an indipendent wrapper
but most of them are dead or incomplete. My idea it’s that this would be a
very useful project to realize but we need a good number of developers that
work on the wrapper and a good number of developers that use the wrapper and
say me (us?) if it’s what they need. What’s your opinion? Do you wanna
contribute?

Please reply at earthpower at libero.it.

Federico Tomassetti

What exactly do want to include in the warper ? If you want to add classes
such as sprite, then it’s not a wraper but a game kit. Is transforming the C
structures used in SDL to C++ classes really useful ?

Julien

Hello,
I’ve seen that more or less every C++ project using SDL it’s building it’s
wrapper. There’re some projects that tryed to build an indipendent wrapper
but most of them are dead or incomplete. My idea it’s that this would be a
very useful project to realize but we need a good number of developers that
work on the wrapper and a good number of developers that use the wrapper and
say me (us?) if it’s what they need. What’s your opinion? Do you wanna
contribute?

Why? What value is there in wrapping SDL?

I use SDL in C++, I have never seen a situation where there was any
value in wrapping SDL. I have seen many projects spend a lot of time
developing poorly thought out wrappers for libraries that didn’t need
them. Most of the time is wasted on religious arguments over the proper
object hierarchy for the underlying library, and then getting it wrong
and redoing it over and over and over…

But, why should I try to make this point when Bjorn Stroustrup has made
it so very well http://www.artima.com/intv/goldilocks.html

	Bob PendletonOn Wed, 2003-11-05 at 11:07, federico.tomassetti at energema.it wrote:

Please reply at earthpower at libero.it.

Federico Tomassetti


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

±--------------------------------------+

Bob Pendleton wrote:

But, why should I try to make this point when Bjorn Stroustrup has made
it so very well http://www.artima.com/intv/goldilocks.html

From the faq:
( http://www.research.att.com/~bs/bs_faq.html#pronounce )

“My first name is Bjarne - not Bjorn (not a name), Bj?rn (a related but
different name), nor Barney (an unrelated name). My second name is
Stroustrup - not Stroustroup, Stroustrop, Strustrup, Strustrop,
Strustroup, Straustrup, nor Straustroup (documents using each of these
misspellings can be found using google).”

Regards,
\Mikkel Gjoel

You know, I actually have wasted a substantial amount of time trying to wrap
SDL in C++, and in the end, I ended up using SDL objects as variables in my
other objects were appropriate. It turned out to be a lot less code. I am
still considering wrapping SDL_Rect so I can associate certain methods with
it, such as rotating the rect, but I am looking for simpler solutions, It
seems like a waste to create all that overhead for a couple simple methods.
Any one have suggestions?
Thanks,
Jason.> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of Bob
Pendleton
Sent: Wednesday, November 05, 2003 9:01 AM
To: SDL Mailing List
Subject: Re: [SDL] SDL C++ wrapper

On Wed, 2003-11-05 at 11:07, federico.tomassetti at energema.it wrote:

Hello,
I’ve seen that more or less every C++ project using SDL it’s building
it’s
wrapper. There’re some projects that tryed to build an indipendent wrapper
but most of them are dead or incomplete. My idea it’s that this would be a
very useful project to realize but we need a good number of developers
that
work on the wrapper and a good number of developers that use the wrapper
and
say me (us?) if it’s what they need. What’s your opinion? Do you wanna
contribute?

Why? What value is there in wrapping SDL?

I use SDL in C++, I have never seen a situation where there was any
value in wrapping SDL. I have seen many projects spend a lot of time
developing poorly thought out wrappers for libraries that didn’t need
them. Most of the time is wasted on religious arguments over the proper
object hierarchy for the underlying library, and then getting it wrong
and redoing it over and over and over…

But, why should I try to make this point when Bjorn Stroustrup has made
it so very well http://www.artima.com/intv/goldilocks.html

  Bob Pendleton

Please reply at earthpower at libero.it.

Federico Tomassetti


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

±--------------------------------------+


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

I dont see why it would be, i use SDL in a few C++ applications and there isnt
really any point. For instance i have a sort of media play back application
that essentially has a “Monitor” class that i can call a draw_image function
on, that takes care of all the SDL stuff. I also use SDL_Surface objects and
the like all over the place without worrying about them being classes (they
are structs so are pretty much the same thing anyway, they compile down to
the same thing).

TomOn Wednesday 05 Nov 2003 16:52, Julien Pauty wrote:

What exactly do want to include in the warper ? If you want to add classes
such as sprite, then it’s not a wraper but a game kit. Is transforming the
C structures used in SDL to C++ classes really useful ?


^^ | Tom Badran
(oo)_
___ | Imperial College
(__)\ )/| Department of Computing
||----w | | -----------------------
|| || | Using Debian SID
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031105/81b3d963/attachment.pgp

Bob Pendleton wrote:

But, why should I try to make this point when Bjorn Stroustrup has made
it so very well http://www.artima.com/intv/goldilocks.html

From the faq:
( http://www.research.att.com/~bs/bs_faq.html#pronounce )

"My first name is Bjarne - not Bjorn (not a name),

What a weird thing for anyone to say. I have known several people named
"Bjorn", how can it not be a name? Even more odd that someone can
declare that something isn’t a name. If “Moon Unit” and “Dweezil” are
names, the Bjorn can be a name.

Bj?rn (a related but
different name), nor Barney (an unrelated name). My second name is
Stroustrup - not Stroustroup, Stroustrop, Strustrup, Strustrop,
Strustroup, Straustrup, nor Straustroup (documents using each of these
misspellings can be found using google)."

Yeah, I made a typo when I copied his name of off the front of “The C++
Programming Language: Special Edition” that is sitting next to my
monitor. I’m sure that everyone is glad that you pointed it out.

Now, how about addressing the question?

	Bob PendletonOn Wed, 2003-11-05 at 12:09, Mikkel Gj?l wrote:

Regards,
\Mikkel Gjoel


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

±--------------------------------------+

"My first name is Bjarne - not Bjorn (not a name),

What a weird thing for anyone to say. I have known several people named
"Bjorn", how can it not be a name? Even more odd that someone can
declare that something isn’t a name. If “Moon Unit” and “Dweezil” are
names, the Bjorn can be a name.

I heard that in Sweden(i think), it is illegal to name someone after a
thing. Names like ‘forest’ are not allowed. My guess is that Bjarne
operates under a similar custom. Being American, I can hardly be
definitive however.

John.

ons, 2003-11-05 kl. 20:31 skrev John Philip:

"My first name is Bjarne - not Bjorn (not a name),

What a weird thing for anyone to say. I have known several people named
"Bjorn", how can it not be a name? Even more odd that someone can
declare that something isn’t a name. If “Moon Unit” and “Dweezil” are
names, the Bjorn can be a name.

I heard that in Sweden(i think), it is illegal to name someone after a
thing. Names like ‘forest’ are not allowed. My guess is that Bjarne
operates under a similar custom. Being American, I can hardly be
definitive however.
I’m from Denmark (as Bjarne) and i believe the rule is that you can call
yourself anything you like - but you can not be christened unless your
name is approved - we f.x. had a legal fight some years ago with a
mother wanting to call her boy christophpher, notice the double ph.

What this has to do with SDL i still can’t understand, other than it
probably isn’t okay to be christened “SDL” in Denmark either ;-)–
One file-format to rule them all
One parser to parse them all
And in code - bind them!

Best Regards/Venlig Hilsen
Rasmus Toftdahl Olesen
System Udvikler, Pohl Data I/S
http://halfdans.net
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dette er en digitalt underskrevet brevdel
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031105/b2fa6020/attachment.pgp