It'll take more time trying to extract stuff from Derelict, rather then regexp search/replace -ing the headers.<div><br></div><div>There's always a way to statically link. The original headers define extern functions.</div>
<div>If the static library doesn't exist yet, it;'s very easy to make and have it dynamically load the symbols.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 4:06 PM, Mike Parker <span dir="ltr"><<a href="mailto:aldacron@gmail.com" target="_blank">aldacron@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday, 23 November 2012 at 11:57:19 UTC, Gor Gyolchanyan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Derelict doesn't define extern functions and includes tons of code for<br>
dynamic loading. It's not a direct translation and since I'm aiming for<br>
deimos, I need to make a direct translation.<br>
</blockquote>
<br></div>
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.<br>

<br>
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.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>