Advertisement

Just a quick poll on SDL

Started by March 05, 2002 11:09 AM
22 comments, last by kajjait 22 years, 11 months ago
I use it in Linux to make my game. It''s pretty cool. I''ve also used it in windows.

"And that''s the bottom line cause I said so!"

Cyberdrek

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[Cyberdrek | ]
quote:
Original post by wolfman8k
Who needs SDL when we have Allegro


Allegro isn't really an alternative as it isn't that portable, I found that 80% of the code that I had once written needed to be rewritten on when I tried to compile my code on Linux using the Linux version of allegro. ( It's been a while though )...



"And that's the bottom line cause I said so!"

Cyberdrek

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

Edited by - cyberdrek on March 6, 2002 6:50:14 AM
[Cyberdrek | ]
Advertisement
SDL thnaks!
I have found SDL to be an excellent alternative to DirectX, particularly where crossplatform support is a requirement. I''ve successfully ported over the ''Time to kill'' game that was included in the OpenGL Game Programming from this site.

Once I complete font support, all I have to do is get the code into a better OS X build setup as well as one for Visual C++ and it will be platform independent, except for the SDL library builds and a few endian defines. This will of course give me a good opportunity to compare the performance of the application under SDL on Windows, and DirectX on Windows.

As to the person who commented on SDL not having any 3D support, that is quite incorrect. SDL has support for OpenGL, and is quite trivial to setup.

The largest problems I faced in porting from DirectX to SDL, had nothing to do with SDL, but only the endian issues surrounding getting the application to work on both little and big endian machines.

I would recommend SDL without hesitation.



Jeff Thompson
CTO
CodeTek Studios, Inc.
http://www.codetek.com/
Jeff Thompson
SDL is great. I'm somewhat new to PC programming, so I had to learn this stuff from scratch. Since I chose openGL as my 3D API, SDL made perfect sense. Why learn windows specific code when I could learn cross platform code?

SDL does lack 3D -- the openGL implementation isn't exactly built in, as I understand it. By that, I mean you can't interact with both 2D SDL and 3D openGL in the same window, unless I'm mistaken. But considering I'm only using it as the "other stuff" for openGL, it's great. Sound, timing, user IO, etc.

Oh, and I just got Mac OS X on my gf's mac and recompiled my code in about 5 minutes. Had to sorta split the difference betwen the Linux version (standard libraries are different than Mac/PC) and Mac version (endian swap). Changed a couple defines and viola. 'cept it hangs on exit... but hey, it works aside from that!

Barrel Patrol 3D


Edited by - miles vignol on March 6, 2002 12:08:26 PM
I''m using it for Duck Tiles.

---
John Hattan
The Code Zone
Sweet software for a saturnine world

(my byline from the Gamedev Collection series, which I co-edited) John Hattan has been working steadily in the casual game-space since the TRS-80 days and professionally since 1990. After seeing his small-format games turned down for what turned out to be Tandy's last PC release, he took them independent, eventually releasing them as several discount game-packs through a couple of publishers. The packs are actually still available on store-shelves, although you'll need a keen eye to find them nowadays. He continues to work in the casual game-space as an independent developer, largely working on games in Flash for his website, The Code Zone (www.thecodezone.com). His current scheme is to distribute his games virally on various web-portals and widget platforms. In addition, John writes weekly product reviews and blogs (over ten years old) for www.gamedev.net from his home office where he lives with his wife and daughter in their home in the woods near Lake Grapevine in Texas.

Advertisement
the problem with sdl is that it enables u to code to the metal practically this has the advantage of being very quick but the disadvatnge that theres no real inbuilt functions for gaming stuff like eg allegro

http://uk.geocities.com/sloppyturds/gotterdammerung.html
"wolfman: give me _one_ reason to choose Allegro instead of SDL"

I''m not that familiar with SDL so correct me if I say anything incorrect.
The following things SDL doesn''t have:
o Allegro can run on many more platforms than SDL
o Allegro has excellent fixed-point math support
o Allegro has nice 3d functions
o Allegro has a very beutifull data-file system
o Allegro has simple Dialog''s (GUI) support
"wolfman: give me _one_ reason to choose Allegro instead of SDL"

I''m not that familiar with SDL so correct me if I say anything incorrect.
The following things SDL doesn''t have:
o Allegro can run on many more platforms than SDL
o Allegro has excellent fixed-point math support
o Allegro has nice 3d functions
o Allegro has a very beutifull data-file system
o Allegro has simple Dialog''s (GUI) support
Also, (this is a personal thing), allegro has a really nice feel to it and is very simple.

This topic is closed to new replies.

Advertisement