Date: Tue, 10 Sep 1996 13:33:22 +0200 (MET DST) From: Mark Habersack Reply-To: grendel AT ananke DOT amu DOT edu DOT pl To: Jan Hubicka cc: djgpp AT delorie DOT com Subject: Re: allegro author? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 10 Sep 1996, Jan Hubicka wrote: >> I think it might be quite hard. Allegro heavily relies on features specific to >> DOS and DJGPP. But I think it's worth giving it a shot. >I was browsing sources...a bit..and I think that I need >1) write new driver that makes interface to svgalib Well... I think it doesn't make sense to write such an interface. Allegro is a self-contained library in every aspect and writing an interface to SVGAlib would be just creating a new front-end. Allegro has completely different model of driver structure. What you should do is to isolate the parts tightly M$-DOG related and re-write them Linux-like. >2) rewrite keyboard functions An easy one - you might use libkb. Or even it might not be necessary to change the keyboard handling routines of allegro. AFAIR, Allegro installs hw int handler for keyboard? If so, then, as long as PC platform is concerned, you are in home with what you have in Allegro. If, however, you want to use Allegro also on other hardware platforms then you have to create an independent interface to UNIX kernel's kb handler. >3) rewrite mouse functions That for sure. >4) make some sound?(this will be hard work..I still don't know how to > play midi and digital sound in linux.. I want to add some cool music > to koules but....) Do you have Linux sources? Take a look at them and you'll know how to do that. >I can skip 2-4 for primary testing and 4 for first beta :) >so I think it will be quite simple... >do you know some problems that can occour >(I now starting school so it can take few months until I will get some >time for it) As with any port there probably will be a lots of problems. Memory issues may be ones to give you a major headache, possibly file access functions. Mark ********************************************************************** So if you ask me how do I feel inside, I could honestly tell you we've been taken on a very long ride. And if my owners let me have free time some day, with all good intention I would probably run away! Clutching the short straw... ******************* http://ananke.amu.edu.pl/~grendel ****************