OpenGL Bindings

James Pelcis jpelcis at gmail.com
Wed May 24 17:58:24 PDT 2006


Sorry.  the sentence "Hopefully they can be merged later, but that's not 
up to Mike Parker." isn't supposed to have a "not" in it.

James Pelcis wrote:
> No, those bindings do use std.loader.  They are very similar in concept 
> to the ones in Derelict, with the main difference being support for 
> extensions.  Hopefully they can be merged later, but that's not up to 
> Mike Parker.
> 
> If you can give more information about what's going wrong, we can try to 
> help.
> 
> Mike Parker wrote:
>> Anders Runesson wrote:
>>> I'm guessing it's something to do with the bindings using std.loader to
>>> get the addresses of the functions used, and making function pointers to
>>> call them. I haven't tried using OpenGL with D before, but I was
>>> planning on doing it soon, so I'm probably going to follow in your
>>> steps. :)
>>
>> The OpenGL bindings in the Bindings project do not load through 
>> std.loader. It's a binding that requires statically linking with the 
>> import library. Derelict is the project that loads dynamically, but 
>> through a custom loading mechanism rather than std.loader.
>>
>>
>>>
>>> ons 2006-05-24 klockan 20:23 +0000 skrev Michael:
>>>> Im using the GL bindings from
>>>> http://dsource.org/projects/bindings/wiki/OpenGraphicsLibrary but 
>>>> they cause my
>>>> executable to crash, even before my main has been called. Has anyone 
>>>> else
>>>> experienced this? There doesnt seem to be any documentation that I 
>>>> can see.
>>
>> The Bindings project is a loose collection of bindings contributed by 
>> several different people. Sort of a fire and forget thing. That's most 
>> likely why there's not any documentation. If you are on Windows, make 
>> sure you use the lib and def files provided by the bindings projects 
>> (in the lib and def subdirectories, respectively).



More information about the Digitalmars-d mailing list