Am 08.04.2013 08:53, schrieb Anthony Walter:
On Mon, Apr 8, 2013 at 1:59 AM, Sven Barth <pascaldra...@googlemail.com <mailto:pascaldra...@googlemail.com>> wrote:

    Am 08.04.2013 01:37 schrieb "Anthony Walter" <sys...@gmail.com
    <mailto:sys...@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...

    Regards,
    Sven


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:

var
  OpenGLManager: record
    Load: function: Boolean;
    GetProcAddress: function(ProcName: PAnsiChar): Pointer;
    ExtensionSupported: function(Extension: PAnsiChar): Boolean;
  end;

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 :)

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to