On Tue, 21 Aug 2001, David Olofson wrote:
>
> Try SDL; http://www.libsdl.org - nice and simple API, handles graphics
> (windowed and fullscreen modes wherever possible), sound, keyboard,
> mouse, joysticks, threads etc, and there are some helper stuff like
> graphics loading and saving and image blitting with alpha blending or
> colorkeying with RLE acceleration. It runs on several different
> platforms, and most video and audio driver APIs on those platforms.
Totally OT, but I have to say; libSDL is VERY highly recommended. It
also has some other well-funky bits; as a general rule, you add the
lines
#ifdef WIN32
#include <windows.h>
#endif
To your code, and if you've got a cross-compiler installed, it's
mostly trivial to port to windows. If you never make a
platform-specific call, it will almost definitely run under any
platform SDL supports [which now includes PS2s, win, mac, Be, lin, and
a fistful of others].
As a final note, Loki, www.lokigames.com, use SDL for almost
everything they do.
> More specifically; on Linux, you can transparently use X (windowed,
> fullscreen, DGA), GGI (and whatever that supports on your system), fbdev
> and svgalib without even recompiling your program. If you want to fiddle
> with raw graphics data, you don't *have* to support all sorts of pixel
> formats (like with DirectX and other direct access APIs) - SDL emulates
> your favorite pixel format on pretty much any target with acceptable
> speed.
Don't forget aalib! [and it also has a dummy driver in it, so if you
suddenly find yourself on a totally headless box, you still don't have
to do evil dl_open(3X) things, because you can just dynamically link
it in.]
OK, that last bit was actually a hack because of a silly bug in
descent3, but anyway...
> If you want a higher level rendering API, there are various add-on
> libraries for SDL; fast "game toolkits", widget toolkits and the like.
And if you need them, I'll be surprised...
If you need anything higher than SDL, then you may as well use one of
the ready-built engines out there...
Gary (-;
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/