SDL Graphics Library?

Does anyone know of a good graphics library (lines, fills, patterns, etc.)
that is ported, or might be ported to SDL?

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Does anyone know of a good graphics library (lines, fills, patterns, etc.)
that is ported, or might be ported to SDL?

There was some library making use of UNIVBE or VESA, running under DOS.
It’d probably be easy porting to SDL. x2ftp.oulu.fi probably has source code.
ftp.cdrom.com has an x2ftp mirror.

The founts program has a triangle routine tri() which I am happy with. Just
draws triangles…

MGL is pretty good.> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Wednesday, July 07, 1999 2:14 PM
Subject: [SDL] SDL Graphics Library?

Does anyone know of a good graphics library (lines, fills, patterns, etc.)
that is ported, or might be ported to SDL?

-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Does anyone know of a good graphics library (lines, fills, patterns, etc.)
that is ported, or might be ported to SDL?

Allegro (http://www.talula.demon.co.uk/allegro/) has pretty much every
routine a person could ever want, and there’re both DirectX and X ports. I
don’t know how easy it’d be to port a given Allegro routine to the SDL,
but it might be worth a look…

NathanOn Wed, 7 Jul 1999, Sam Lantinga wrote:

Does anyone know of a good graphics library (lines, fills, patterns, etc.)
that is ported, or might be ported to SDL?

Allegro (http://www.talula.demon.co.uk/allegro/) has pretty much every
routine a person could ever want, and there’re both DirectX and X ports. I
don’t know how easy it’d be to port a given Allegro routine to the SDL,
but it might be worth a look…

Hey, thanks. This might do the trick. (Of course any code we hack
will go back to the SDL and Allegro folks)

BTW, We’re considering an odd mix of GTk, SDL and Allegro for our port
of Eric’s Ultimate Solitaire. :slight_smile:

GTk has the UI, SDL has the speed and simplicity, and Allegro has the
graphics primitives.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software> On Wed, 7 Jul 1999, Sam Lantinga wrote:

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hey, thanks. This might do the trick. (Of course any code we hack
will go back to the SDL and Allegro folks)

Of course. We’re all good Free’dom fighters here. :slight_smile:

BTW, We’re considering an odd mix of GTk, SDL and Allegro for our port
of Eric’s Ultimate Solitaire. :slight_smile:

Hmm… Sounds like it just might work. But you’ll have to put up with
the people that are going to whine about having multiple windows on
screen.

GTk has the UI, SDL has the speed and simplicity, and Allegro has the
graphics primitives.

Well, from a couple of bad personal experiences, I’m not too fond of
Allegro. I tried a couple of programs that were cross-ported from
Allegro-DOS to Linux and they were SSSSSSSLLLLLLLLOOOOOOOOWWWWWWWW.
Made my teeth ache waiting for them.

But if you can get them to run with about as much speed as SDL, I’d be
more than greatful to get the source (I’m trying to write a couple of
routines to do a few graphic primitives but they’re slower than those
old Allegro ones).

-KWOn 7 Jul, Sam Lantinga wrote:

BTW, We’re considering an odd mix of GTk, SDL and Allegro for our port
of Eric’s Ultimate Solitaire. :slight_smile:

Hmm… Sounds like it just might work. But you’ll have to put up with
the people that are going to whine about having multiple windows on
screen.

Multiple windows? :slight_smile:
I added code to the latest CVS version to allow it to work nicely with
GTk windows (using a little hack). Essentially the latest CVS version
can draw to a GTk main window and allow GTk to handle the events.
We’ll just grab the primitive drawing functions from Allegro and plop
them on top of SDL for the various drawing we need to do to the SDL
surface (in the GTk window)

Anyway, hacking at lightspeed… grin

Well, from a couple of bad personal experiences, I’m not too fond of
Allegro. I tried a couple of programs that were cross-ported from
Allegro-DOS to Linux and they were SSSSSSSLLLLLLLLOOOOOOOOWWWWWWWW.
Made my teeth ache waiting for them.

No worries, we’re using SDL for the good stuff, and just grabbing
drawing primitives from Allegro. I’ll probably stick them in an
example drawing library or something, along with any optimization
we add.

(Hey Matt, how’s Curl doing? :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Multiple windows? :slight_smile:
I added code to the latest CVS version to allow it to work nicely with
GTk windows (using a little hack). Essentially the latest CVS version
can draw to a GTk main window and allow GTk to handle the events.
We’ll just grab the primitive drawing functions from Allegro and plop
them on top of SDL for the various drawing we need to do to the SDL
surface (in the GTk window)

Well, color me impressed. Methinks I’ll have to download that and see
how it works (speed, stability, etc). BTW, did you get that segfault
when closing the GTK/SDL demo ironed out (The one that affects the
0.9.13 demos), or was I the only one experiencing that little annoyance?

Anyway, hacking at lightspeed… grin

To be honest you do amaze me. I’ve heard rumors that Loki is already
asking for beta testers for Soulblighter (I know I spelled that wrong).
That was just announced a couple of months ago.

No worries, we’re using SDL for the good stuff, and just grabbing
drawing primitives from Allegro. I’ll probably stick them in an
example drawing library or something, along with any optimization
we add.

As expected. :slight_smile: More for me to read. More for me to learn. :slight_smile:

-KWOn 8 Jul, Sam Lantinga wrote:

Well, color me impressed. Methinks I’ll have to download that and see
how it works (speed, stability, etc). BTW, did you get that segfault
when closing the GTK/SDL demo ironed out (The one that affects the
0.9.13 demos), or was I the only one experiencing that little annoyance?

It’s all gone.

Anyway, hacking at lightspeed… grin

To be honest you do amaze me. I’ve heard rumors that Loki is already
asking for beta testers for Soulblighter (I know I spelled that wrong).
That was just announced a couple of months ago.

grin Yep, the beta period is almost over.

As expected. :slight_smile: More for me to read. More for me to learn. :slight_smile:

:slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

BTW, We’re considering an odd mix of GTk, SDL and Allegro for our port
of Eric’s Ultimate Solitaire. :slight_smile:

That API looks a bit thick for my taste, but more power to you if you
can pull it off…

GTk has the UI, SDL has the speed and simplicity, and Allegro has the
graphics primitives.

I’d sure like to see [XWin]Allegro get a speed boost, however you do it. I
still have fond memories of the original DOS version of Allegro, and
it’d be great to use it again under X.

NathanOn Wed, 7 Jul 1999, Sam Lantinga wrote:

GTk has the UI, SDL has the speed and simplicity, and Allegro has the
graphics primitives.

I’d sure like to see [XWin]Allegro get a speed boost, however you do it. I
still have fond memories of the original DOS version of Allegro, and
it’d be great to use it again under X.

Sorry if I wasn’t clear. I’m not porting Allegro, I’m just pulling out
the drawing primitive functions. :slight_smile: (All thanks to the Allegro folks)
The final product will look very little like any part of Allegro, but
it is a good place to start.

Thin, think thin. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Completely off topic, which is why I’m replying in private mail.

Well, color me impressed. Methinks I’ll have to download that and see
how it works (speed, stability, etc). BTW, did you get that segfault
when closing the GTK/SDL demo ironed out (The one that affects the
0.9.13 demos), or was I the only one experiencing that little annoyance?
It’s all gone.

Cool. Did the psudo-patch I sent help at all? Was I even in the
ballpark?

To be honest you do amaze me. I’ve heard rumors that Loki is already
asking for beta testers for Soulblighter (I know I spelled that wrong).
That was just announced a couple of months ago.
grin Yep, the beta period is almost over.

ARGH!! I haven’t even had a chance to buy CIV:CTP yet! And STINKING
COMPUSA hasn’t even HEARD of CIV:CTP for Linux! I’m -><- THIS close to
going postal on 'em!

Maybe I’ll just break down and order it online…

-KW

The problem with allegro on Linux was that it had to rely upon slow drivers
for the graphic cards, I haven’t tried the new version 3.9.x of allegro on
LInux but It has improved a lot since the old 3.0 & 3.1 days in regards of
portability and speed.

If it were possible to run allegro over SDL it’ll be awesome, because to me
it has the most comfortable API i’ve seen, at least relating to 2d
programming.

Thanks

Vicente Werner