pouët.net

Allegro or SDL for making demos?

category: general [glöplog]
Hello mates

I've been doing some very basic stuffs in "video mode 13h" in DOS with Microsoft Virtual PC. It's pretty sad that those things doesn't work on Windows 7 and in Linux. I am therefor looking for some kind of graphic library where I can do almost the same thing some how easy.

Would you pick? Allegro or SDL? Any other library?

btw, "basic stuffs" == Plotting pixels, shifting color palette, drawing circles, rectangles, text, etc in C and inline assembler.

Any other tips - tutorials, irc-channels, forums - are very welcome
added on the 2010-02-19 01:02:48 by gurkaa gurkaa
SDL
added on the 2010-02-19 01:14:19 by bdk bdk
SDL
added on the 2010-02-19 02:22:09 by Optimus Optimus
goto libsdl.org they have libraries and tutorials
SDL
added on the 2010-02-19 09:47:56 by xeron xeron
Allegro
added on the 2010-02-19 09:50:46 by KK KK
SDL is present on many more platforms than allegro. So: SDL
added on the 2010-02-19 09:54:39 by krabob krabob
SDL
added on the 2010-02-19 10:27:30 by Intrinsic Intrinsic
I use SDL for all my C/C++ multimedia prototyping (and the latest demo as well was SDL+GL)
added on the 2010-02-19 10:34:52 by visy visy
SFML. SDL 1.3 is taking forever.
added on the 2010-02-19 10:35:33 by ponce ponce
DirectX. Screw Linux.
added on the 2010-02-19 10:35:54 by kusma kusma
Go native. It's available on all platforms.
added on the 2010-02-19 10:37:12 by ponce ponce
SDL. (Allegro is pretty nice though, but not for demos.)
added on the 2010-02-19 10:38:07 by Radiant Radiant
Quote:
Allegro or SDL?

Neither. Since you want to do "basic stuffs", you might want to look at processing or openFramework. Both are rather limited, but great for prototyping and RAID.
added on the 2010-02-19 10:58:26 by tomaes tomaes
That tomaes said. And afterwards, you'll go for DirectX.
added on the 2010-02-19 14:06:19 by gloom gloom
pixeltoaster, what else?
ah, the old days of tinyPTC.
open, close, flip.
ah, the new days of opengl

open, close, flip
Why not OGL?
added on the 2010-02-24 09:36:11 by raer raer
should i recommend this ? eight commands only, no shitty library stuff, perfect for beginners
added on the 2010-02-24 09:47:19 by Tigrou Tigrou
oh sorry i dont read the full description, i believe you want to do so 3d stuff.

if you want to do some pixel drawing you can use SDL or OpenGL, basically they require the same amount of work (expect SDL is easier to port on other platforms).

this should fit in 100-200 lines of C no more, then the only additionnal code you need is to modify your screen buffer with a pointer like in 13h mode. i can provide you some basic template to do this if you want (and if i get access to my main computer). i know this is simple to do because i write this kind of thing in order to port to win32 most intros we made at ind (until Pirx was not happy with that idea and told me not to do it)

Also, for quick prototyping / testing drawing stuff i can also recommend you evaldraw tool (google for it). this allow you to test drawing stuff very quickly without framework or the need of a compiler. anyway it wont totally replace a vc6+sdl solution (no palette, blur hard to do and so).

hope this will help you
added on the 2010-02-24 13:48:13 by Tigrou Tigrou
pixel toaster PTC FTW!!!
added on the 2010-02-24 14:27:38 by xteraco xteraco
I've also been recommanded to use http://www.sfml-dev.org/
added on the 2010-02-24 15:53:12 by krabob krabob

login