It'll take more time trying to extract stuff from Derelict, rather then
regexp search/replace -ing the headers.

There's always a way to statically link. The original headers define extern
functions.
If the static library doesn't exist yet, it;'s very easy to make and have
it dynamically load the symbols.


On Fri, Nov 23, 2012 at 4:06 PM, Mike Parker <[email protected]> wrote:

> On Friday, 23 November 2012 at 11:57:19 UTC, Gor Gyolchanyan wrote:
>
>> Derelict doesn't define extern functions and includes tons of code for
>> dynamic loading. It's not a direct translation and since I'm aiming for
>> deimos, I need to make a direct translation.
>>
>
> Well, I wouldn't call it tons of code! And it *is* a direct translation.
> The OpenGL headers can be configured to declare function pointers. At any
> rate, I think it wouldn't take much to cobble together a script to
> transform the function pointer declarations in Derelict to the static
> style. The constants can be copied and used as is.
>
> You'll still need to use function pointers on Windows for anything above
> and including OpenGL 1.2, though, unless there's a way to statically link
> OpenGL on Windows systems now that I'm not aware of.
>



-- 
Bye,
Gor Gyolchanyan.

Reply via email to