Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SDL vs Allegro

Name: Anonymous 2010-05-31 15:09

Discuss. Full disclosure: I know SDL, but not Allegro.

Name: Anonymous 2010-05-31 15:14

SDL is Sepples-level shit, Allegro is pretty cool.

Name: Anonymous 2010-05-31 15:32

I suppose Allegro might have been nice in the 80's, but I've never seen the point of learning it over SDL.

Name: Anonymous 2010-05-31 15:34

>>2
I'll stick with my C and SDL, thank you very much. Or Ada bindings for it, if need be.

Name: Anonymous 2010-05-31 16:22

SDL is horrific. The only reason anyone uses it is because some idiot recommended it to them and now they're too insecure to learn a new library. It's the epitome of everything that's wrong with Sepples programmers, and clear evidence that you can write Sepples in any language.

Allegro, meanwhile, is beautiful and elegant and everything that makes C awesome.

Name: Anonymous 2010-05-31 16:24

>>2
SDL is written in C, you dunce.

Name: Anonymous 2010-05-31 16:25

sdl is a c library and ihbt

Name: Anonymous 2010-05-31 16:33

>>7
Thanks for the tip lmao!
I have unlimited basement time.
I achieved satori at the age of 4.
You cannot beat me.

Name: Anonymous 2010-05-31 16:58

>>6,7
Protip: you missed the point by a country mile.

Name: Anonymous 2010-05-31 17:00

Allegro doesn't use that horrible CamelCase shit so it's inherently superior.
Oh, and the API itself looks nicer too.

Name: Anonymous 2010-05-31 19:25

>>10
CamelCase is the best option when there's a maximum of like 3 words in a name, like you find in Haskell.

But then there's Java

Name: Anonymous 2010-05-31 20:08

>>11
It's awkward to type and looks ugly as sin.
I'll leave it up to you to decide which one I'm talking about.

Name: Anonymous 2010-05-31 20:33

>>12
I'll assume you mean Java as a whole

Name: Anonymous 2010-05-31 21:52

The only reason that i hate trolls is that when their is a chance to have a real discussion, you can not tell who is a troll, and therefore, who is presenting real info.

Name: Anonymous 2010-05-31 21:54

>>14
Xarn uses Allegro. Nobody on /prog/ uses SDL. What more do you need to know?
You can look at some of his code to see how clean the Allegro API is. It's really very decent.

Name: Anonymous 2010-05-31 23:39

Haskell doesn't have Allegro-bindings.

Name: Anonymous 2010-06-01 2:47

>>15-san,
What is a Xarn?

Name: Anonymous 2010-06-01 5:35

SDL has a macro called _THIS for use in function definitions so it can pretend to be ActionScript.

Name: Anonymous 2010-06-01 6:23

>>1
Having used both:

Allegro:
Great for making DOS-style games (with DJGPP!).  Lots of utility functions (but graphics functions are designed for 2D software blitting).  Probably more fun.

Maybe you can use OpenGL now, I haven't used Allegro in a long time.

SDL:
OK cross platform wrapper for OpenGL games.  Only basic very low-level sound functions (but there's SDL_mixer or some other library for that).  Under LGPL, which sucks.

Of course, for a larger project you can just write platform specific code for windowing an input, and as long as you use OpenGL porting shouldn't be too hard.

>>5
WTF are you talking about, the basic SDL API is dead simple (although Allegro is maybe the easiest C library ever).  Go look at wxWidgets or something if you want to see a real sepples API.  It's very common for C libraries to prefix function names to prevent naming conflicts (libpng, etc).  CamelCase is also common (Windows and Mac C APIs, etc).

Name: Anonymous 2010-12-21 3:55

Name: Anonymous 2011-01-31 20:46

<-- check em dubz

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List