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
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
SDL
SDL
goto libsdl.org they have libraries and tutorials
SDL
Allegro
SDL is present on many more platforms than allegro. So: SDL
SDL
I use SDL for all my C/C++ multimedia prototyping (and the latest demo as well was SDL+GL)
SFML. SDL 1.3 is taking forever.
DirectX. Screw Linux.
Go native. It's available on all platforms.
SDL. (Allegro is pretty nice though, but not for demos.)
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.
That tomaes said. And afterwards, you'll go for DirectX.
pixeltoaster, what else?
ah, the old days of tinyPTC.
open, close, flip.
open, close, flip.
ah, the new days of opengl
open, close, flip
open, close, flip
Why not OGL?
should i recommend this ? eight commands only, no shitty library stuff, perfect for beginners
Pixilang! :D
http://pouet.net/prod.php?which=30182
http://pouet.net/prod.php?which=30182
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
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
pixel toaster PTC FTW!!!
I've also been recommanded to use http://www.sfml-dev.org/