Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Joseph Rushton Wakeling
On 11/23/2012 12:15 PM, Gor Gyolchanyan wrote: I'm translating OpenGL headers, taken from opengl.org (glcorearb.h, glext.h, wglext.h, glxext.h) Hasn't there already been some work to translate OpenGL headers ... ? Might be worth taking a look at to see if it can be adapted

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Andrej Mitrovic
11/23/12, Gor Gyolchanyan wrote: > I'm going to translate WinAPI headers (all > except DirectX and deprecated, like winsock1) after that. Please see http://dsource.org/projects/bindings/wiki/WindowsApi

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
All I could find was some D1-oriented ancient code in one of the dead dsource.org projects. On Fri, Nov 23, 2012 at 3:33 PM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > On 11/23/2012 12:15 PM, Gor Gyolchanyan wrote: > >> I'm translating OpenGL headers, taken from opengl.org

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
That was my first choice when I wanted a sane WinAPI binding, but there are some problems with it: 1. It has some pragma(lib, ...) declarations which aren't being met and which assume some things, that aren't true. 2. It uses version identifiers to determine the, you guessed it, version of Windows

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
I hope the deimos folks make a repo soon, so that people can use those modules as soon as possible, because I'll finish translating them today. On Fri, Nov 23, 2012 at 3:33 PM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > On 11/23/2012 12:15 PM, Gor Gyolchanyan wrote: > >> I'

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Manu
On 23 November 2012 13:15, Gor Gyolchanyan wrote: > I'm translating OpenGL headers, taken from opengl.org (glcorearb.h, > glext.h, wglext.h, glxext.h) and I'm going to translate WinAPI headers (all > except DirectX and deprecated, like winsock1) after that. > > As we all know, the WinAPI binding i

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
Good point, but the 32-bit version also must work in order for the new modules to be included in druntime. On Fri, Nov 23, 2012 at 3:47 PM, Manu wrote: > On 23 November 2012 13:15, Gor Gyolchanyan wrote: > >> I'm translating OpenGL headers, taken from opengl.org (glcorearb.h, >> glext.h, wglext

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Andrej Mitrovic
On 11/23/12, Gor Gyolchanyan wrote: > 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 and I'm sure we can make the OS version > available at compile-time to obvia

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Mike Parker
On Friday, 23 November 2012 at 11:40:14 UTC, Gor Gyolchanyan wrote: All I could find was some D1-oriented ancient code in one of the dead dsource.org projects. Never seen Derelict? https://github.com/aldacron/Derelict3/

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
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. On Fri, Nov 23, 2012 at 3:51 PM, Mike Parker wrote: > On Friday, 23 November 2012 at 11:40:14 UTC, Gor Gyol

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
With a little work the bindings worked for me as well, but they aren't fit for druntime. also, they don't aim to preserve the interface as it is. On Fri, Nov 23, 2012 at 3:52 PM, Andrej Mitrovic wrote: > On 11/23/12, Gor Gyolchanyan wrote: > > 2. It uses version identifiers to determine the, y

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Jacob Carlborg
On 2012-11-23 12:15, Gor Gyolchanyan wrote: I'm translating OpenGL headers, taken from opengl.org (glcorearb.h, glext.h, wglext.h, glxext.h) and I'm going to translate WinAPI headers (all except DirectX and deprecated, like winsock1) after that. As we all know, the WinAPI bin

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Mike Parker
On Friday, 23 November 2012 at 11:57:19 UTC, Gor Gyolchanyan wrote: 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. Well, I wouldn't call it tons of code

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
See my previous posts in this thread regarding those. On Fri, Nov 23, 2012 at 4:07 PM, Jacob Carlborg wrote: > On 2012-11-23 12:15, Gor Gyolchanyan wrote: > >> I'm translating OpenGL headers, taken from opengl.org >> (glcorearb.h, glext.h, wglext.h, glxext.h) and I'm >> >> g

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
It'll take more time trying to extract stuff from Derelict, rather then regexp search/replace -ing the headers. There's always a way to statically link. The original headers define extern functions. If the static library doesn't exist yet, it;'s very easy to make and have it dynamically load the s

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Andrej Mitrovic
On 11/23/12, Gor Gyolchanyan wrote: > It'll take more time trying to extract stuff from Derelict, rather then > regexp search/replace -ing the headers. You really believe that your regex script is going to do a better job than what Mike has been using and maintaining for years? The same applies t

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Vladimir Panteleev
(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

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
Derelict is not a direct binding it contains lots of tools to automatically load symbols from DLLs and call library initialization and finalization routines. That takes a while to make. Direct translations do not change anything and do not add anything. When done correctly (checked by compiling it)

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
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

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
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 < gor.f.gyolchan...@gmail.com> wrote: > I agree, that WinAPI binding from dsource.org is very close to what needs > to be in druntime. I'

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Vladimir Panteleev
On Friday, 23 November 2012 at 13:10:56 UTC, Gor Gyolchanyan wrote: I'll look into the opportunity to refactor the dsource.org WinAPI binding, because it's much closer to reality then Derelict. In that case It'll take a few hours to finish (quite fast). Would you suggest me to send a pull reque

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Vladimir Panteleev
On Friday, 23 November 2012 at 13:57:14 UTC, Vladimir Panteleev wrote: If breaking code were not an issue, the best solution would be to make HANDLE a unique, opaque type (like a struct wrapping an intptr_t or void*) - which is exactly how it should be treated. It would need to support assignme

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
That's exactly how the original WinAPI does it. All handles are pointers to their own dummy structures. The current druntime WinAPI just aliases all handle types to HANDLE, which is itself an alias to void*. This is very wrong. On Fri, Nov 23, 2012 at 5:58 PM, Vladimir Panteleev < vladi...@thecyb

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Dmitry Olshansky
11/23/2012 4:56 PM, Andrej Mitrovic пишет: On 11/23/12, Gor Gyolchanyan wrote: It'll take more time trying to extract stuff from Derelict, rather then regexp search/replace -ing the headers. You really believe that your regex script is going to do a better job than what Mike has been using an

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread David Nadlinger
On Friday, 23 November 2012 at 12:57:01 UTC, Andrej Mitrovic wrote: I'll also say that IMO the concept of Deimos turns out to be a bad idea, and I'm not alone in thinking this. I don't think I agree with you here. The idea of Deimos, i.e. a central repository of "no-fluff" C bindings (which ar

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Paulo Pinto
Am 23.11.2012 15:03, schrieb Gor Gyolchanyan: That's exactly how the original WinAPI does it. All handles are pointers to their own dummy structures. The current druntime WinAPI just aliases all handle types to HANDLE, which is itself an alias to void*. This is very wrong. On Fri, Nov 23, 2012

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Rob T
On Friday, 23 November 2012 at 16:32:17 UTC, David Nadlinger wrote: On Friday, 23 November 2012 at 12:57:01 UTC, Andrej Mitrovic wrote: I'll also say that IMO the concept of Deimos turns out to be a bad idea, and I'm not alone in thinking this. I don't think I agree with you here. The idea of

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: I hope the deimos folks make a repo soon, so that people can use those modules as soon as possible, because I'll finish translating them today. https://github.com/D-Programming-Deimos/OpenGL

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 5:10 AM, Gor Gyolchanyan wrote: If the only problem with Deimos is the speed at which libraries end up there, why not make the review process more loose and allow the code to be submitted and then fixed as necessary? It would be much more useful, then just having nothing at all. I

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
Thank you!!! On Sat, Nov 24, 2012 at 1:15 AM, Walter Bright wrote: > On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: > >> I hope the deimos folks make a repo soon, so that people can use those >> modules >> as soon as possible, because I'll finish translating them today. >> > > https://github.com/

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: There might be some incompatibilities, for example due to how the HANDLE type is declared. In C, you can use either 0 or NULL as a parameter to a function accepting an integer or pointer. In D, you cannot. IIRC, some types were declared differently

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
in WinAPI each type of handle has it's own type. in Druntime it's all aliased to void*. It currently doesn't match WinAPI. On Sat, Nov 24, 2012 at 1:21 AM, Walter Bright wrote: > On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: > >> There might be some incompatibilities, for example due to how t

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Rob T
On Friday, 23 November 2012 at 21:15:00 UTC, Walter Bright wrote: On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: I hope the deimos folks make a repo soon, so that people can use those modules as soon as possible, because I'll finish translating them today. https://github.com/D-Programming-Deim

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Gor Gyolchanyan
Sent a pull request for the C headers and fully translated glcorearb.d. On Sat, Nov 24, 2012 at 2:08 AM, Rob T wrote: > On Friday, 23 November 2012 at 21:15:00 UTC, Walter Bright wrote: > >> On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: >> >>> I hope the deimos folks make a repo soon, so that p

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Jonathan M Davis
On Friday, November 23, 2012 15:15:41 Gor Gyolchanyan wrote: > As we all know, the WinAPI binding in druntime as well as the static > libraries of WinAPI, which come with DMD are in horrendous state. I am not all that well acquainted with all of the issues involved with the Win32 API, so I'm prob

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Vladimir Panteleev
On Friday, 23 November 2012 at 21:21:49 UTC, Walter Bright wrote: On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: There might be some incompatibilities, for example due to how the HANDLE type is declared. In C, you can use either 0 or NULL as a parameter to a function accepting an integer or p

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 2:08 PM, Rob T wrote: On Friday, 23 November 2012 at 21:15:00 UTC, Walter Bright wrote: On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: I hope the deimos folks make a repo soon, so that people can use those modules as soon as possible, because I'll finish translating them today. h

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Rob T
On Saturday, 24 November 2012 at 01:52:41 UTC, Walter Bright wrote: On 11/23/2012 2:08 PM, Rob T wrote: Will the library "etc" bindings (curl, sqlite3, zlib) be moved over to separate repos for Deimos? Probably not. I don't know what the plan is for etc, or the what the reasoning is behind

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 6:13 PM, Rob T wrote: On Saturday, 24 November 2012 at 01:52:41 UTC, Walter Bright wrote: On 11/23/2012 2:08 PM, Rob T wrote: Will the library "etc" bindings (curl, sqlite3, zlib) be moved over to separate repos for Deimos? Probably not. I don't know what the plan is for etc,

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-23 Thread Walter Bright
On 11/23/2012 5:06 PM, Vladimir Panteleev wrote: On Friday, 23 November 2012 at 21:21:49 UTC, Walter Bright wrote: On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: There might be some incompatibilities, for example due to how the HANDLE type is declared. In C, you can use either 0 or NULL as a

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Vladimir Panteleev
On Saturday, 24 November 2012 at 07:23:18 UTC, Walter Bright wrote: On 11/23/2012 5:06 PM, Vladimir Panteleev wrote: On Friday, 23 November 2012 at 21:21:49 UTC, Walter Bright wrote: On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: There might be some incompatibilities, for example due to how

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Jakob Ovrum
On Friday, 23 November 2012 at 21:15:00 UTC, Walter Bright wrote: On 11/23/2012 3:46 AM, Gor Gyolchanyan wrote: I hope the deimos folks make a repo soon, so that people can use those modules as soon as possible, because I'll finish translating them today. https://github.com/D-Programming-Deim

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Gor Gyolchanyan
I disagree. One is free to (and I'm going to) make a module which implements the functions automatically and has them wglGetProcAddress. This makes using OpenGL a lot easier. On Sat, Nov 24, 2012 at 7:32 PM, Jakob Ovrum wrote: > On Friday, 23 November 2012 at 21:15:00 UTC, Walter Bright wrote:

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 01:08, Jonathan M Davis wrote: > On Friday, November 23, 2012 15:15:41 Gor Gyolchanyan wrote: > > As we all know, the WinAPI binding in druntime as well as the static > > libraries of WinAPI, which come with DMD are in horrendous state. > > I am not all that well acquainted wi

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 09:23, Walter Bright wrote: > On 11/23/2012 5:06 PM, Vladimir Panteleev wrote: > >> On Friday, 23 November 2012 at 21:21:49 UTC, Walter Bright wrote: >> >>> On 11/23/2012 5:57 AM, Vladimir Panteleev wrote: >>> There might be some incompatibilities, for example due to how

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 19:34, Gor Gyolchanyan wrote: > I disagree. One is free to (and I'm going to) make a module which > implements the functions automatically and has them wglGetProcAddress. This > makes using OpenGL a lot easier. There already exists a library to do what you're talking about, i

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Jakob Ovrum
On Saturday, 24 November 2012 at 18:53:27 UTC, Manu wrote: There already exists a library to do what you're talking about, it's called glew. And if I were you I'd port that to D aswell, and leave it named as it is. People already know what glew does and have lots of existing code written to u

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Gor Gyolchanyan
I've done git svn clone -s http://svn.dsource.org/projects/bindings Now I have everything that the dsource WinAPI bindings need (sources, libs, defs, ...) I'll fork off Druntime, replace the WinAPI and send a pull request. This won't take too long. I just need clarification on a few issues: 1. The

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Gor Gyolchanyan
Also, exactly what package should I put them? I suppose core.sys.windows.* Although the core.sys.windows contains some D-specific modules, which wouldn't be nice to mix with the native modules (and there are tons of those). On Sat, Nov 24, 2012 at 11:28 PM, Gor Gyolchanyan < gor.f.gyolchan...@gma

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Walter Bright
On 11/24/2012 10:45 AM, Manu wrote: I'm regularly annoyed by the quality of the druntime windows bindigs. I use this one: http://www.dsource.org/projects/bindings/wiki/WindowsApi It's better. I don't think there's really any room for opinion on the topic, the windows bindings should simply be co

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 21:32, Walter Bright wrote: > On 11/24/2012 10:45 AM, Manu wrote: > >> I'm regularly annoyed by the quality of the druntime windows bindigs. I >> use this >> one: >> http://www.dsource.org/**projects/bindings/wiki/**WindowsApi

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Jonathan M Davis
On Saturday, November 24, 2012 20:48:54 Manu wrote: > I for one have 15+ years of expectation about WINAPI My condolences. :) - Jonathan M Davis

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Andrej Mitrovic
On 11/24/12, Walter Bright wrote: > I'd forget about the unicode macro, and call the A or W versions > explicitly. People already use WindowsAPI (http://dsource.org/projects/bindings/wiki/WindowsApi) and Derelict for many projects, and introducing a new API that isn't compatible with this is goin

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Jonathan M Davis
On Saturday, November 24, 2012 23:34:05 Gor Gyolchanyan wrote: > Also, exactly what package should I put them? > I suppose core.sys.windows.* I would expect them to be in core.sys.windows where each module corresponds with a header file in C/C++. > Although the core.sys.windows contains some D-s

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Jonathan M Davis
On Saturday, November 24, 2012 22:18:23 Andrej Mitrovic wrote: > On 11/24/12, Walter Bright wrote: > > I'd forget about the unicode macro, and call the A or W versions > > explicitly. > > People already use WindowsAPI > (http://dsource.org/projects/bindings/wiki/WindowsApi) and Derelict > for man

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Vladimir Panteleev
On Saturday, 24 November 2012 at 18:49:02 UTC, Manu wrote: Hear hear! I agree, it should just be cloned verbatim. I for one have 15+ years of expectation about WINAPI, I don't want to look in any manual/reference to relearn how to use it again. This sentiment is overexaggerated and unhelpful.

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Gor Gyolchanyan
How about core.sys.windows.c.* ? The c package will contain the exact files of WinAPI and nothing more, wile everything beyond the c package will be the druntime additions to it? Most code should not be broken, because most of it use Phobos and it will change the std.c.windows.windows accordingly.

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread David Nadlinger
On Saturday, 24 November 2012 at 21:54:57 UTC, Gor Gyolchanyan wrote: How about core.sys.windows.c.* ? There is a certain asymmetry in the current state of druntime already: For all the other OSes, core.sys.xyz direclty contains headers for the system libraries, whereas the modules in core.s

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 22:30, Jonathan M Davis wrote: > On Saturday, November 24, 2012 20:48:54 Manu wrote: > > I for one have 15+ years of expectation about WINAPI > > My condolences. :) > See: I *really* don't want to look in any manual to learn how to use it again... ever! ;)

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Damian
Gor your doing a great job the sooner WindowsApi merges with druntime the better! On Saturday, 24 November 2012 at 22:11:04 UTC, Gor Gyolchanyan wrote: I suggest refactoring other core.sys..* like this. On Sun, Nov 25, 2012 at 2:04 AM, David Nadlinger wrote: On Saturday, 24 November 2012

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 23:18, Andrej Mitrovic wrote: > On 11/24/12, Walter Bright wrote: > > I'd forget about the unicode macro, and call the A or W versions > > explicitly. > > People already use WindowsAPI > (http://dsource.org/projects/bindings/wiki/WindowsApi) and Derelict > for many projects, a

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 24 November 2012 23:36, Vladimir Panteleev wrote: > On Saturday, 24 November 2012 at 18:49:02 UTC, Manu wrote: > >> Hear hear! I agree, it should just be cloned verbatim. >> I for one have 15+ years of expectation about WINAPI, I don't want to look >> in any manual/reference to relearn how to u

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Vladimir Panteleev
On Saturday, 24 November 2012 at 23:11:35 UTC, Manu wrote: On 24 November 2012 23:36, Vladimir Panteleev wrote: On Saturday, 24 November 2012 at 18:49:02 UTC, Manu wrote: Hear hear! I agree, it should just be cloned verbatim. I for one have 15+ years of expectation about WINAPI, I don't want

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Manu
On 25 November 2012 01:24, Vladimir Panteleev wrote: > On Saturday, 24 November 2012 at 23:11:35 UTC, Manu wrote: > >> On 24 November 2012 23:36, Vladimir Panteleev >> **wrote: >> >> On Saturday, 24 November 2012 at 18:49:02 UTC, Manu wrote: >>> >>> Hear hear! I agree, it should just be cloned v

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-24 Thread Paulo Pinto
Am 24.11.2012 23:54, schrieb Manu: On 24 November 2012 22:30, Jonathan M Davis mailto:jmdavisp...@gmx.com>> wrote: On Saturday, November 24, 2012 20:48:54 Manu wrote: > I for one have 15+ years of expectation about WINAPI My condolences. :) See: I *really* don't want to look in a

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Vladimir Panteleev
On Saturday, 24 November 2012 at 23:47:26 UTC, Manu wrote: Well it's one of the changes in the existing implementation which I totally disagree with, for the reasons stated. Could you be more specific? Is it that the Unicode version is not set by default? Considering that Druntime does not su

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Dmitry Olshansky
11/25/2012 3:05 AM, Manu пишет: On 24 November 2012 23:18, Andrej Mitrovic mailto:andrej.mitrov...@gmail.com>> wrote: I used to be *for* putting WinAPI bindings into druntime/phobos. But seeing how some pull requests take months to be merged, and Walter's ultra stance on not adding a

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Dmitry Olshansky
11/24/2012 9:34 PM, Gor Gyolchanyan пишет: I disagree. One is free to (and I'm going to) make a module which implements the functions automatically and has them wglGetProcAddress. This makes using OpenGL a lot easier. Well, last time I checked that was Derelict. We'd better advertise it as a

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Gor Gyolchanyan
DerelictGL is flawed. It uses OpenGL32.dll, which is deliberately nerfed by Microsoft. the wglGetProcAddress gets the functions pointers, which are unavailable from OpenGL32.dll and Derelict doesn't use it. On Sun, Nov 25, 2012 at 2:43 PM, Dmitry Olshansky wrote: > 11/24/2012 9:34 PM, Gor Gyolch

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Dmitry Olshansky
11/25/2012 2:48 PM, Gor Gyolchanyan пишет: DerelictGL is flawed. It uses OpenGL32.dll, which is deliberately nerfed by Microsoft. Old tale back when OpenGL was often just software rendered in part or as a whole. the wglGetProcAddress gets the functions pointers, which are unavailable from O

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Tavi Cacina
On Saturday, 24 November 2012 at 21:18:33 UTC, Andrej Mitrovic wrote: Here we have a guy (Gor) who doesn't even know what declspec is, or what a def file is, or what an import libarary is, who thinks he can use regex to create bindings, and who refuses to use STABLE bindings that were maintaine

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Jonathan M Davis
On Sunday, November 25, 2012 14:39:31 Dmitry Olshansky wrote: > Just make sure *-W is the default alias as UTF-16 is what the kernel > uses internally anyway. (or a lame subset of UTF-16) I'd actually be halfway tempted to explicitly omit the A versions simply because you basically should _never_

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Mike Parker
On Sunday, 25 November 2012 at 10:49:20 UTC, Gor Gyolchanyan wrote: DerelictGL is flawed. It uses OpenGL32.dll, which is deliberately nerfed by Microsoft. the wglGetProcAddress gets the functions pointers, which are unavailable from OpenGL32.dll and Derelict doesn't use it. No, that's just w

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-25 Thread Manu
On 25 November 2012 14:30, Jonathan M Davis wrote: > > I'd actually be halfway tempted to explicitly omit the A versions simply > because you basically should _never_ use them unless you're supporting > Win9x, > which we're not. > Except that they're the default, basically all tutorial code and

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-26 Thread Tavi Cacina
On Sunday, 25 November 2012 at 22:09:53 UTC, Manu wrote: On 25 November 2012 14:30, Jonathan M Davis wrote: I'd actually be halfway tempted to explicitly omit the A versions simply because you basically should _never_ use them unless you're supporting Win9x, which we're not. Except tha

Re: WinAPI for druntime and OpenGL for deimos.

2012-11-26 Thread Regan Heath
On Sun, 25 Nov 2012 08:13:23 -, Vladimir Panteleev wrote: On Saturday, 24 November 2012 at 23:47:26 UTC, Manu wrote: Well it's one of the changes in the existing implementation which I totally disagree with, for the reasons stated. Could you be more specific? Is it that the Unicode v

WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-24 Thread Gor Gyolchanyan
So I've come to the point where I have the WinAPI modules from dsource.organd want to add them to druntime. Here are the issues, that need to be discussed before I can send a pull request: 1. There is a number of version flags that are expected to be specified to the compiler, which specifies the

Re: WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-24 Thread Sean Kelly
On Nov 24, 2012, at 11:13 PM, Gor Gyolchanyan wrote: > So I've come to the point where I have the WinAPI modules from dsource.org > and want to add them to druntime. > > Here are the issues, that need to be discussed before I can send a pull > request: > > 1. There is a number of version fla

Re: WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-25 Thread Gor Gyolchanyan
So what should we do? Is it possible to get MinGW to change the license? On Sun, Nov 25, 2012 at 11:29 AM, Sean Kelly wrote: > On Nov 24, 2012, at 11:13 PM, Gor Gyolchanyan > wrote: > > > So I've come to the point where I have the WinAPI modules from > dsource.org and want to add them to drunt

Re: WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-25 Thread Vladimir Panteleev
On Sunday, 25 November 2012 at 07:13:15 UTC, Gor Gyolchanyan wrote: So I've come to the point where I have the WinAPI modules from dsource.organd want to add them to druntime. Here are the issues, that need to be discussed before I can send a pull request: 1. There is a number of version flag

Re: WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-25 Thread Jonathan M Davis
On Sunday, November 25, 2012 10:38:36 Vladimir Panteleev wrote: > Copyright? Last I checked almost all files, except the WinSock > ones, are explicitly specified to be in the public domain. Please > clarify? That's certainly what I remember. What's always confused me though is that I've heard tha

Re: WinAPI and druntime [was: WinAPI for druntime and OpenGL for deimos]

2012-11-25 Thread Vladimir Panteleev
On Sunday, 25 November 2012 at 12:28:11 UTC, Jonathan M Davis wrote: On Sunday, November 25, 2012 10:38:36 Vladimir Panteleev wrote: Copyright? Last I checked almost all files, except the WinSock ones, are explicitly specified to be in the public domain. Please clarify? That's certainly what