Martin Garton wrote:
>
> On Thu, 3 Aug 2000, Jeroen Janssen wrote:
>
> > > SDL: Simple DirectMedia Layer, a generic API that provides low level
> > > access to audio, keyboard, mouse, and display framebuffer across multiple
> > > platforms. (http://www.devolution.com/~slouken/SDL)
> >
> > This is what LokiGames uses, I haven't used it before.
>
> Actually, just as an experiment, I hacked about x.cc from the bochs plugin
> code and got plex86 displaying using SDL. The gfx output works as does the
> keyboard input. I haven't done the mouse (I had no way to test it) and the
> text output isn't done yet so you have to run something grephical. I
> thought SDL was quite a good choice as it works on about everything (X,
> win32, beos) and it seems well suited to the needs of plex86.
Yes, I checked out the web site again. Some interesting text from there
follows. Looks like SDL does a lot of the abstraction for us, and is
very flexible:
Q: How do I choose a specific audio driver?
A: You can set the environment variable "SDL_AUDIODRIVER" to the name
of the driver you want to use. The drivers available depend on the
platform and SDL compile-time options:
Linux:
dsp - (default) Use the OSS API by opening /dev/dsp
dma - Use the OSS API to perform DMA access on /dev/dsp
esd - Connect to the ESound audio daemon
Win32:
dsound - (default) Use the DirectSound API
waveout - Use the Win32 MultiMedia API
Q: How do I choose a specific video driver?
A: You can set the environment variable "SDL_VIDEODRIVER" to the
name of the driver you want to use. The drivers available depend
on the platform and SDL compile-time options:
Linux:
x11 - (default) Use the X11 windowing system
fbcon - Use the framebuffer console
svga - Use the SVGAlib API
ggi - Use the General Graphics Interface API
aalib - Use the Ascii Art library
Win32:
directx - (default) Use the DirectDraw API
windib - Use the standard Win32 GDI
> I really haven't done much work yet really - it's incomplete and
> unoptimised, and I don't know if/when I will get any time to do more, but
> with the text and mouse (oh, and the button bar) added, plex86 (and bochs
> for that matter) would work on SDL. - which means optionally means full
> screen display which might be fun.
>
> If anyone's interested in the small changes I've done so far, feel free to
> mail me.
Sure, at any point you can put the mods on the 'net and post a URL. If
they're small enough, post 'em here.
-Kevin