And yes, I've already looked at OpenGL bindings in the same bindings project. They're D1 and OpenGL 2.1 only.
On Fri, Nov 23, 2012 at 5:15 PM, Gor Gyolchanyan < [email protected]> wrote: > I agree, that WinAPI binding from dsource.org 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. > > > On Fri, Nov 23, 2012 at 5:09 PM, Vladimir Panteleev < > [email protected]> wrote: > >> (Disclosure: I contributed to this project) >> >> The Win32 bindings are excellent. I believe your points are invalid. >> >> >> On Friday, 23 November 2012 at 11:43:21 UTC, Gor Gyolchanyan wrote: >> >>> 1. It has some pragma(lib, ...) declarations which aren't being met and >>> which assume some things, that aren't true. >>> >> >> The libraries are here: >> http://dsource.org/projects/**bindings/browser/trunk/lib<http://dsource.org/projects/bindings/browser/trunk/lib> >> >> And the definition files for these libraries are here: >> http://dsource.org/projects/**bindings/browser/trunk/def<http://dsource.org/projects/bindings/browser/trunk/def> >> >> >> 2. It uses version identifiers to determine the, you guessed it, version >>> of >>> Windows in question. This is very bad, since it won't compile without at >>> least some version identifiers >>> >> >> This is how the C headers work. The targeted Windows version is a >> preprocessor define. >> >> It compiles just fine without any version identifiers, but it will target >> an old Windows version (95 or 98). >> >> >> and I'm sure we can make the OS version >>> available at compile-time to obviate the need for those version >>> identifiers. >>> >> >> This is a horrible idea. YOU ARE NOT TARGETING THE ENVIRONMENT YOU ARE >> BUILDING FROM! >> >> >> 3. It includes tons of obsolete stuff, that cannot and will not be used >>> ever, which are hard to track down and extract. >>> >> >> 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? >> >> > > > -- > Bye, > Gor Gyolchanyan. > -- Bye, Gor Gyolchanyan.
