Date: Wed, 11 Sep 1996 10:15:17 +0200 (MET DST) From: Jan Hubicka To: Mark Habersack 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, Mark Habersack wrote: > 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. OK..but...allegro drivers are higly based on bios calling. there is just few nativly supported video cards..using vesa is impossible so only way how to simply port it is to use existing drivers(I really don't want to make drivers for all existing svga cards...) > > >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. I know..but using allekro like key array means that I have to make independent asynchronous I/O for stdin...this is not easy :( (I am bit lazy..I know) > > >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. Yes but when I open dsp and seqenccer it says that dsp/or seqencer is busy... it is imposible to open both:digital and midi output at time on my gus.. I know with gus I can make digital sound by same way as midi..but other cards.. (I readed most of linux sources...I know where is problems :) > > >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. I have to browse it... Honza > > 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 **************** > > ------------------------------------------------------------------------------ Have you browsed my www pages? Look at: http://www.paru.cas.cz/~hubicka Koules-the game for Svgalib,X11 and OS/2, Xonix-the game for X11 czech documentation for linux index, original 2D computer art and funny 100 years old photos and articles are there!