And yes, I've already looked at OpenGL bindings in the same bindings project. They're D1 and OpenGL 2.1 only.<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 5:15 PM, Gor Gyolchanyan <span dir="ltr"><<a href="mailto:gor.f.gyolchanyan@gmail.com" target="_blank">gor.f.gyolchanyan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree, that WinAPI binding from <a href="http://dsource.org" target="_blank">dsource.org</a> is very close to what needs to be in druntime. I'll look into it. That's why I decided to bind the OpenGL headers first (because it needs manual binding more, then WinAPI). Derelict is heavily packed with auxilliary stuff, that makes the everyday use of OpenGL quite easy, but it's not a direct translation and has some overhead. And the OpenGl headers are FAR FAR FAR simpler and smaller then WinAPI ones. I'm half-way through with OpenGL.<div class="gmail_extra">
<div><div class="h5">
<br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 5:09 PM, Vladimir Panteleev <span dir="ltr"><<a href="mailto:vladimir@thecybershadow.net" target="_blank">vladimir@thecybershadow.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

(Disclosure: I contributed to this project)<br>
<br>
The Win32 bindings are excellent. I believe your points are invalid.<div><br>
<br>
On Friday, 23 November 2012 at 11:43:21 UTC, Gor Gyolchanyan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. It has some pragma(lib, ...) declarations which aren't being met and<br>
which assume some things, that aren't true.<br>
</blockquote>
<br></div>
The libraries are here:<br>
<a href="http://dsource.org/projects/bindings/browser/trunk/lib" target="_blank">http://dsource.org/projects/<u></u>bindings/browser/trunk/lib</a><br>
<br>
And the definition files for these libraries are here:<br>
<a href="http://dsource.org/projects/bindings/browser/trunk/def" target="_blank">http://dsource.org/projects/<u></u>bindings/browser/trunk/def</a><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. It uses version identifiers to determine the, you guessed it, version of<br>
Windows in question. This is very bad, since it won't compile without at<br>
least some version identifiers<br>
</blockquote>
<br></div>
This is how the C headers work. The targeted Windows version is a preprocessor define.<br>
<br>
It compiles just fine without any version identifiers, but it will target an old Windows version (95 or 98).<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and I'm sure we can make the OS version<br>
available at compile-time to obviate the need for those version identifiers.<br>
</blockquote>
<br></div>
This is a horrible idea. YOU ARE NOT TARGETING THE ENVIRONMENT YOU ARE BUILDING FROM!<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. It includes tons of obsolete stuff, that cannot and will not be used<br>
ever, which are hard to track down and extract.<br>
</blockquote>
<br></div>
These headers have a long development history and are generally rather polished. You are suggesting to throw away all that and replacing them with something of your own?<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Bye,<br>Gor Gyolchanyan.<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>