Laurent Desnogues wrote:
Hans,
On 9/20/06, Hans de Goede <[EMAIL PROTECTED]> wrote:
Laurent Desnogues wrote:
> On 9/19/06, Hans de Goede <[EMAIL PROTECTED]> wrote:
>>
>> May I ask why you're writing a layer emulating SDL on top of Xlib, SDL
>> itself actually is a pretty thin layer on top of Xlib itself and it
>> handles a lot of nasty X specific stuff correctly, so what is there to
>> be gained by doing things this way?
>
> My aim is to get a refresh about X11, then learn MAME new OSD.
> Plus building on a working basis is so much easier than having to
> start from Windows code.
>
> Of course at some point it won't make any sense to use this SDL
> stuff anymore, for adding X specific stuffs, such as Xinerama.
>
Besides Xinerama, what other X specific stuff do you want supported? I
know SDL pretty well both from the inside and the outside (xmame has not
been the only emu/game project I've worked on), and although I don't
know if we can use Xinerama from the outside (as you cannot specify the
window position AFAIK, but I might even be wrong there), but I'm sure we
can make SDL Xinerema aware, also helping out many other games in the
process.
What I'm trying to say (very carefully) is that maybe it would be better
to stick with using SDL, SDL allows direct access to quite a few aspects
of Xlib (you can get to the display and window handles), which should
make some exotic features not in SDL possible, and SDL actually is a
quite well written and supported lib making live easier in general.
As said I've been thinking about rewriting xmame before because over
time it has become a bit messy, I've actually concidered using SDL when
I was thinking about a rewrite, but discarded it because I believe an
SDL version could never offer all the features offered in xmame. Now
that I've seen sdlmame however I'm not that sure anymore. And the code
is so much cleaner (still not really clean code, but way better then
xmame).
Either way I wish you the best of luck, but I personally think (and
thats an educated guess) that sdlmame is the better path to pursue to
get a great uniXmame. Currently I'm on the point of forking sdlmame (or
rather maintaining a patchset on top of it for features not welcome in
the mainline sdlmame). Maybe we can take sdlmame with my patch and reuse
the xmame name for that? With my patch sdlmame has effects, scalable
windows, etc. making it pretty competetive to xmame 106. Then the X
could stand for eXtended I guess :)
Well, honestly I am all for dropping XMAME in favour of SDLMAME.
Now I have said officially what I used to say privately.
The only problems I see are:
- does SDL support all the backends XMAME supports (for instance
what is the status of DGA in SDL 1.3? what about sound)?
I think the sound status is OK and if not it will be easier (and benefit
a wider audience) to just add a sound driver to SDL, although I really
don't think that will be nescesarry.
About DGA, I don't know it might very well go away in SDL 1.3, then
again DGA has been dead for a while now, Xorg developers do not respond
to DGA bugs at all (they never have) and they want it to go away, so it
is a feature to count upon for the feature. OTOH if you want DGA SDL is
opensource too, and Sam Lantinga is usually open to this kinda stuff,
especially if it doesn't impact other targets.
- will Arbee and OG agree on using a source control system shared
between SDLMAME and XMAME dev teams (which would kind of
become the same team)?
That you will have to ask them, I think they wouldn't mind using
mess-cvs like I and Lawrence have done for a long time, then each group
can still do their own official releases. We would need a few #ifdef
EVIL_MAME or #ifdef XMAME then as Arbee does NOT want effects in
official sdlmame. The other patch I send to the list has been fully
merged, currently my coorperation with Arbee has gone smooth.
Also don't forget that using sdlmame will give us a gtk debugger for
free, and thus hopefully lure some mamedevs to Unix.
Regards,
Hans
_______________________________________________
Xmame mailing list
[email protected]
http://toybox.twisted.org.uk/mailman/listinfo/xmame