[MPlayer-cvslog] r29981 - in trunk/libvo: gl_common.c gl_common.h vo_gl.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Dec 9 19:08:37 CET 2009
On Wed, Dec 09, 2009 at 06:43:10PM +0100, Dominik 'Rathann' Mierzejewski wrote:
> On Wednesday, 09 December 2009 at 00:32, reimar wrote:
> > Author: reimar
> > Date: Wed Dec 9 00:32:51 2009
> > New Revision: 29981
> >
> > Log:
> > Pass all OpenGL functions through a function pointer indirection.
> > This still needs more work, but should allow supporting e.g. GLX-OpenGL
> > and Win32-OpenGL with a single binary.
>
> What's the point of all this? Are there two different implementations
> of OpenGL on Win32 or am I missing something here?
There is the "normal" OpenGL but you can also have Mesa-GL with GLX and thus
X-forwarding (can be somewhat useful for debugging) and there are multiple
OpenGL-ES emulators both for Windows and Linux.
Now it's not 100% sure how well this will work out however I think/hope that
at least it won't make the code any worse.
One of the problems is that the easiest way to get X11 on Windows, namely Cygwin.
is not an option since it uses different calling conventions from the native
OpenGL and supporting switching calling conventions at runtime is definitely
too much mess.
More information about the MPlayer-cvslog
mailing list