Posts: 6,419
Threads: 74
Joined: Mar 2002
The wrapper thing is just a portability issue, not to save lines. I had a DJGPP game, and now I have a Windows game. Just that, instead of rewriting the game in DirectX, I just recompiled it. Fast enough? yes, so everyone is happy
I'm on the works, trying to contact my friend. I'd give you the code right now, but I prefer asking him first.
Posts: 979
Threads: 27
Joined: Aug 2001
Bah, there are wrapping libraries like sdl for porting. and if it doesn't, who cares? linux and osx can emulate windows.
Posts: 6,419
Threads: 74
Joined: Mar 2002
You are not getting my point: I *had* the game done in DOS/DJGPP
I wanted it to run in Windows XP, so I just compiled it for windows.
Anyhow, allegro is still a nice library to make things easy. Also, in the retrogaming scene there are loads of people who use Linux. Think about it like in the QB scene: How many average users can run QB? Those people in the community. QB games are not for everyone. Same here: Linux may not be very representative overall, but in the scene there are loads of people that use it. So widening a little bit more your audience ain't a bad thing, is it?
Posts: 4,307
Threads: 63
Joined: May 2003
Quote:Bah, there are wrapping libraries like sdl for porting. and if it doesn't, who cares? linux and osx can emulate windows.
Sdl doesnt have as many features as Allegro does. Also, emulation is lot slower than a native executable =P
Posts: 979
Threads: 27
Joined: Aug 2001
All WINE is is an api, much like cgywin is for windows & unix.
And SDL is just a porting of the DirectX API, like WINE is for the Windows API. It can do things like sound and input as well. What more do you need?
I don't care if you use allegro, I really don't. It's a useful library. But I can tell you this, it uses as many lines of initialization code, and more in its own routines... That code can be cut and pasted, that stuff can be cut and pasted for anything and from anything, it really doesnt matter.
Anyways, has anyone found anything in the way of an example bitmap blitter yet?
Posts: 4,307
Threads: 63
Joined: May 2003
Well, if you take the liberty to scroll up, then you will see nathans waiting to get permission permission from his friend to send the code to rocku.
Heres a tut i found on the net:
http://www.programmingcentral.com/source/ddraw.html
Posts: 3,288
Threads: 167
Joined: Nov 2001
LOL. I don't understand 90% of the jargons your using guys. :*)
Posts: 1,556
Threads: 298
Joined: Dec 2002
....................................na_th_an........ did your friend say "Yes" yet...
Posts: 6,419
Threads: 74
Joined: Mar 2002
He did... But now we don't live together and I'll have to email him :oops:
Posts: 62
Threads: 6
Joined: Aug 2004
yo rocku, i don't know if this helps, it's plain c and it's not commented. what it does:
-open a window
-initialize directdraw (two surfaces, clipper)
-access surface memory and draw some crap
it works with 32 bit rgb888 (like html) color values regardless of the color depth it is actually being displayed in.
http://qh2.qbtk.com/60-d
ps. oh, i just saw this thread was started in march
probably you found out yourself in the meantime...