New OSD system.

This is moving the OSD stuff out of the video cores
into a new "core system". The OSD cores only needs one function.
For now, there's only two OSD cores: dummy and glut.

Instead of breaking about everything, I've tried to make
this change as transparent as possible:
- by default, yabause provides an OSD core list, but you can
  override it at compile time;
- I added a number of backward compatibility functions.

That means that gtk, qt, windows and android ports still compile
without a change. On the other hand I broke the GCD renderer and
thus, compilation of the cocoa port. I'm not sure of the status
of the other ports...

As for *why* I've done that change... I want to make it possible
to choose the OSD core: for instance, glut is not available when
yabause is built in "full software" mode... there's also ports
living outside the yabause repository that hack the yabause
library to include their OSD system... I hope it'll make things
easier for them (yeah, I'm talking about you wii and xbox ports)

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2907 d7be59e3-070e-4b9a-85a1-4646befae34d
Color calculation window in software renderer.

Implemented for the non-rotating screens only for now.
It fixes Magical Drop 3.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2908 d7be59e3-070e-4b9a-85a1-4646befae34d
Added TitanReset function.

This function is not meant to be used in the "normal" process,
but we'll be useful for debugging.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2909 d7be59e3-070e-4b9a-85a1-4646befae34d
Cleanup titan buffers before dumping vdp2 texture.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2910 d7be59e3-070e-4b9a-85a1-4646befae34d
freeing vdp2 texture after use...

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2911 d7be59e3-070e-4b9a-85a1-4646befae34d
Color calculation window episode 2.

Color calculation window is also used when mixing vdp1 sprites
and vdp2 backgrounds.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2912 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed autotools based compilation.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2913 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed compilation of Grand Central Renderer.

(and this fixed compilation of Cocoa port)

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2914 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed window coordinates in software renderer.

That's kind of funny but we had a better function for
debugging window coordinates than the function actually
used for displaying windows...

Now both the debugging and "real" functions calls the
same code (with a thin wrapper for the debug part as
I didn't want to update everything...) to avoid the
problem in the future.

I also added something in vidsoft that looks like a hack
to fix window horizontal coordinates when in high res...
but I really think it's due to the way we handle hires.

This fix Cotton Boomerang selection screen.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2915 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed line window.

The doc doesn't say anything about shifting values of the line
window... I guess it was related to the problem with x coord
I was talking about in my previous commit...

That fix 3D baseball that got broken after my previous change.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2916 d7be59e3-070e-4b9a-85a1-4646befae34d
Made line ending consistant in vidshared.h

I hate whitespace commits, but... I guess I hate even more files
with inconsistent line endings :D
I moved the whole file to "DOS" line endings, as that's what was
used in most of the file already and there's other "DOS" files in
the repository.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2917 d7be59e3-070e-4b9a-85a1-4646befae34d
Line Window fixed (again...)

The doc doesn't say anything about it, but it seems that line
window follow the same rules than normal window when using high
resolutions.

This fix Albert Odyssey dialog windows.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2918 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed memory handling in yuiviewer.

The vdp1 debug window was leaking memory, while the vdp2
debug window was freeing it to soon...
Thanks to mrkotfw for finding the bug and providing a patch.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2919 d7be59e3-070e-4b9a-85a1-4646befae34d
Fixed vdp2 debug texture when using OGL renderer.

Removed the TitanReset function and modified TitanInit
so first call will init and following calls will reset.
This fix the segfaults.

Also added some initialization stuff in VIDSoftVdp2DrawScreen
so the texture gets filled with something useful.

git-svn-id: https://yabause.svn.sourceforge.net/svnroot/yabause/trunk@2920 d7be59e3-070e-4b9a-85a1-4646befae34d
Merge remote-tracking branch 'upstream/master'