It'll take more time trying to extract stuff from Derelict, rather then regexp search/replace -ing the headers.
On Friday, 23 November 2012 at 11:57:19 UTC, Gor Gyolchanyan wrote: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.
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.
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.