Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » How is Allegro 5 better than SDL?

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
How is Allegro 5 better than SDL?
Yodhe23
Member #8,726
June 2007

Well I was wondering, whether Allegro 5 has just been a poor attempt at "re-inventing the wheel", or what makes it "special" compared to other graphic libraries (apart from it being "free"), mostly in comparison to SDL (which seems to be its main competitor/rival).

www.justanotherturn.com

piccolo
Member #3,163
January 2003
avatar

I will be better because my invention will be available on Allgro 5 for free all others will have to pay.

wow
-------------------------------
i am who you are not am i

Arthur Kalliokoski
Second in Command
February 2005
avatar

If you don't like Allegro, don't use it. If you prefer it, use it. The people making it take some sort of pleasure in making it. What's the problem?

And I've never heard of SDL having a mind control API either :P

They all watch too much MSNBC... they get ideas.

Vanneto
Member #8,643
May 2007

If SDL is the same as I used it some time ago then Allegro is definitely better. It does lots for you, including sprite drawing, primitive drawing, and other shit I cant really remember. AFAIK SDL only sets up the environment for you so you can call OpenGL properly, without that, you only get software drawing.

But I can't be sure so the above statement is false until proven true!

In capitalist America bank robs you.

Paul whoknows
Member #5,081
September 2004
avatar

Allegro 5 comes with allegro.cc.

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

Trezker
Member #1,739
December 2001
avatar

Allegro 5 comes with allegro.cc.

+1

Allegro 5 comes as a nice package in my opinion.
SDL has a more fragmented approach... It's been a long time since I took a look at it though. Have they done any major redesign of their API recently?

Comparing Allegro 5 with Allegro 4 is easier though.
hardware backends <3
event system <3
primitives is mostly the same, but does have some extras. Has it lost anything since A4?
a whole bunch of routines for filesystem and UTF-8...
ttf fonts <3
png loading <3

Overall I think the API overhaul is very nice.

I don't think SDL is better in any way. It's different, and I'm pretty sure it's harder to learn.

jmasterx
Member #11,410
October 2009

Oh and Allegro 5 software can generally be ported to the iPhone without changing a single line of code (unless you want to add pretty things like display orientation).

SDL will not change to D3D just to get that nice speed boost on Windows.

Also, SDL might look attractive when you see it in projects as mearly SDL.dll, but when it is used that way, generally the developer ends up doing lots of wheel reinvention, or only uses it to get a cross platform window ready for drawing; to get it up to somewhat what AL5 can do, you need sdl_mixer, sdl_gfx, etc. So it adds up too. If the big list of dll's scare you, either static link or use the nicely packaged monolith dll.

I believe also for those who want to develop in pure openGL that Allegro 5 also wrangles GL extensions, like multisampling, which is a huge pain to deal with on your own without GLEW when starting WGL programming. (Windows GL programming)

I definitely have to reiterate that allegro.cc/forums gives Allegro a huge edge over SDL.

Matthew Leverton
Supreme Loser
January 1999
avatar

Even if one of Allegro or SDL is better than the other, your skills will be the bottleneck.

jmasterx
Member #11,410
October 2009

Even if one of Allegro or SDL is better than the other, your skills will be the bottleneck.

That is true, but only to a certain point.You can be a great high level programmer and have a great object oriented design and all, but might do a bad job when trying to implement things like bitmap rotation, or UTF 8. Since these don't really require game programming skill but rather a good grasp on how the above 2 routines function at a low level which not everyone here may be able to do without making the cpu the bottleneck.

Evert
Member #794
November 2000
avatar

Yodhe23 said:

whether Allegro 5 has just been a poor attempt at "re-inventing the wheel"

Why do you think it's a poor attempt to re-invent the wheel?
I'm truly curious.

Neil Walker
Member #210
April 2000
avatar

Isn't SDL written by a German bloke? if so, it's probably very efficient but not very funny. Whereas Allegro has the bloat of America, the money making capabilities of Israel, the might of the British Empire and the sexiness of the Swedish (I'd mention Canada too, but I couldn't think of anything useful to say about them).

However SDL boasts a merchandising shop where you can buy SDL branded t-shirts and mugs and a jobs forum (where last time I looked there were no jobs).

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

jmasterx
Member #11,410
October 2009

I'd mention Canada too, but I couldn't think of anything useful to say about them

Allegro 5 is as sweet as Canada's maple syrup :)

(I had to because I'm Canadian :p )

Elias
Member #358
May 2000

The feature list of the new SDL 1.3 [1] (the long awaited complete overhaul of the API) will be almost the same as Allegro 5. And SDL 1.3 will be released at almost the same time as Allegro 5 :)

Also reading up on Wikipedia, I'd say SDL 1.2 is used by a lot more projects than Allegro 4 and always had a bit of commercial backing. Mostly from Sam Lantinga's companies (first Loki Games and later Galaxy Gameworks). But Sam is really busy earning millions as lead software engineer for World of Warcraf right now. On the other hand Trent's Nooskewl and my Allefant Games are two companies supporting A5 development, in a way. So not even sure which project does get more development right now.

--
"Either help out or stop whining" - Evert

J T
Member #12,381
November 2010

I feel allegro 5 is incomplete, and the opengl support has problem.

Evert
Member #794
November 2000
avatar

J T said:

I feel allegro 5 is incomplete, and the opengl support has problem.

Could you elaborate on this?
It's rather hard to fix things if people don't tell you what they think is wrong.

Thomas Fjellstrom
Member #476
June 2000
avatar

J T said:

I feel allegro 5 is incomplete, and the opengl support has problem.

What Evert said. We really do need help. Even if its just bug reports. We can't test all the code on all platforms all the time. Its just impossible for the size of our team.

Also, Allegro 5 will not stop with 5.0. Theres already some nice improvements planned for 5.2.

That said, I think we should start a Future Features wiki page. A place where we can list features we might like to see (of course it doesn't mean they will actually make it in, but it would be nice to have a single place to look).

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

SiegeLord
Member #7,827
October 2006
avatar

Allegro5 has a better API than SDL imho.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

ks
Member #1,086
March 2001

Is a clear presentation of the Allegro 5 features posted anywhere?

Goalie Ca
Member #2,579
July 2002
avatar

jmasterx said:

Allegro 5 is as sweet as Canada's maple syrup

And as easy as kraft dinner.

-------------
Bah weep granah weep nini bong!

Erin Maus
Member #7,537
July 2006
avatar

SDL's license is terrible. LGPL? Thanks for trying, but no. $500 to statically link with a commercial/closed-source product? Insane. Allegro's license in my opinion is much better. In fact, it's about as free as you can get.

And before someone brings up other frameworks--there's usually little to no alternative. SDL has competition with Allegro.

---
ItsyRealm, a quirky 2D/3D RPG where you fight, skill, and explore in a medieval world with horrors unimaginable.
they / she

Evert
Member #794
November 2000
avatar

So, no elaboration on why people feel that Allegro 5 is "a poor attempt", "reinventing the wheel", "incomplete" and "has problems"?

That's not very helpful, I must say.

Vanneto
Member #8,643
May 2007

I do believe Yodhe was talking out of his ass. Now, if Thomas Harte was here, he'd defend SDL with real arguments... But he hasn't been around for a while.

As far as I used SDL, its just a thin layer over the OS specific functions. It does events for you, some simple window setup, but thats it. Allegro 5 currently isn't ported to as many platforms as SDL, but currently, its better than SDL 1.2 in every way.

Now, maybe SDL 1.3 is a different story, but A5 is all I need.

In capitalist America bank robs you.

gnolam
Member #2,030
March 2002
avatar

SiegeLord said:

Allegro5 has a better API than SDL imho.

That may be true (I don't know; I haven't used A5), but if it is it's way too hard to find that out - even with a whole bunch of additional qualifiers (e.g. "api reference"), I couldn't find a Google-reachable API reference for Allegro 5. It's equally hard for people to figure out what the official site for Allegro 5 actually is.

SDL (1.2)'s strength is that it's mature and extremely well-tested. It builds easily, the API is stable, you get OpenGL support out of the box and you can be pretty sure that any bugs that crop up are yours.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Matthew Leverton
Supreme Loser
January 1999
avatar

Search for "allegro 4.9 manual." Version 5.0 hasn't been out long enough for search engines to reflect it. (edit: Actually it appears that "allegro 5.0" works as well, although "allegro 5" isn't yet.)

LennyLen
Member #5,313
December 2004
avatar

Evert said:

Why do you think it's a poor attempt to re-invent the wheel?

Why do you think that's what he's saying? It looks to me like he hasn't used A5 yet, and is wanting to know if it is just a "reinvention" or not before deciding whether to switch to A5 or SDL.

 1   2   3   4 


Go to: