[fpc-pascal] SDL 2.0 Test, Need Advice
pascaldragon at googlemail.com
Mon Apr 8 09:49:59 CEST 2013
Am 08.04.2013 08:53, schrieb Anthony Walter:
> On Mon, Apr 8, 2013 at 1:59 AM, Sven Barth
> <pascaldragon at googlemail.com <mailto:pascaldragon at googlemail.com>> wrote:
> Am 08.04.2013 01:37 schrieb "Anthony Walter" <sysrpl at gmail.com
> <mailto:sysrpl at gmail.com>>:
> > In addition I have been writing a OpenGL which creates stubs for
> loading the correct OpenGL library and loading the OpenGL core
> functions and extensions for every platform.
> Don't we have that already? And even if not in my opinion it would
> be better to extend the existing GL units...
> I don't want my three questions to get too side tracked, but I'll give
> you my reasoning on this point.
> And instead have something like this in an OpenGL.pas unit:
> OpenGLManager: record
> Load: function: Boolean;
> GetProcAddress: function(ProcName: PAnsiChar): Pointer;
> ExtensionSupported: function(Extension: PAnsiChar): Boolean;
> And allow other units to control how the OpenGL unit manages some
> functions. Essentially what this involves is a rewrite of the GL unit,
> which is what I am doing. See every one of the function Load_XXX:
> Boolean in GLext.pas.
Ok, so if you can do this in a way that SDL would not be needed if one
doesn't want to use it and that using older OpenGL versions (e.g. 2.1)
is supported I'd say: go for it :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal