www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - WinAPI for druntime and OpenGL for deimos.

reply Gor Gyolchanyan <gor.f.gyolchanyan gmail.com> writes:
--f46d0407166d40d4bb04cf27b4a8
Content-Type: text/plain; charset=UTF-8

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 in druntime as well as the static
libraries of WinAPI, which come with DMD are in horrendous state.

I can translate the headers with a bunch of moderately complex regexp
search/replace operations, some manual tweaks and compilations with RDMD to
ensure correctness.

The questions are:
    1. Can the DMD folks update the static libraries for WinAPI, so they
match with what I'm gonna submit for druntime?
    2. What requirements are there (except keeping WinAPI names unmodified)
for the translated headers to end up in druntime?
    3. Can the deimos folks please make an OpenGL repo so I can place my
translated headers in there? Yes, I know the rules of deimos.

-- 
Bye,
Gor Gyolchanyan.

--f46d0407166d40d4bb04cf27b4a8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I&#39;m translating OpenGL headers, taken from <a href=3D"http://opengl.org=
">opengl.org</a> (glcorearb.h, glext.h, wglext.h, glxext.h) and I&#39;m goi=
ng to translate WinAPI headers (all except DirectX and deprecated, like win=
sock1) after that.<div>
<div><br></div><div>As we all know, the WinAPI binding in druntime as well =
as the static libraries of WinAPI, which come with DMD are in horrendous st=
ate.</div><div><br></div><div>I can translate the headers with a bunch of m=
oderately complex regexp search/replace operations, some manual tweaks and =
compilations with RDMD to ensure correctness.</div>
<div><br></div><div>The questions are:</div><div>=C2=A0 =C2=A0 1. Can the D=
MD folks update the static libraries for WinAPI, so they match with what I&=
#39;m gonna submit for druntime?</div><div>=C2=A0 =C2=A0 2. What requiremen=
ts are there (except keeping WinAPI names unmodified) for the translated he=
aders to end up in druntime?</div>
<div>=C2=A0 =C2=A0 3. Can the deimos folks please make an OpenGL repo so I =
can place my translated headers in there? Yes, I know the rules of deimos.<=
/div><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>

--f46d0407166d40d4bb04cf27b4a8--
Nov 23 2012
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2012-11-23 12:15, Gor Gyolchanyan wrote:
 I'm translating OpenGL headers, taken from opengl.org
 <http://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 in druntime as well as the static
 libraries of WinAPI, which come with DMD are in horrendous state.

 I can translate the headers with a bunch of moderately complex regexp
 search/replace operations, some manual tweaks and compilations with RDMD
 to ensure correctness.

 The questions are:
      1. Can the DMD folks update the static libraries for WinAPI, so
 they match with what I'm gonna submit for druntime?
      2. What requirements are there (except keeping WinAPI names
 unmodified) for the translated headers to end up in druntime?
      3. Can the deimos folks please make an OpenGL repo so I can place
 my translated headers in there? Yes, I know the rules of deimos.

For OpenGL there's Derelict: http://www.dsource.org/projects/derelict For WinAPI and DirectX there's the bindings project: http://www.dsource.org/projects/bindings For translating headers there's DStep, but that doesn't work yet on Windows: https://github.com/jacob-carlborg/dstep -- /Jacob Carlborg
Nov 23 2012
prev sibling parent Gor Gyolchanyan <gor.f.gyolchanyan gmail.com> writes:
--f46d0407166dcb9f4804cf287c4e
Content-Type: text/plain; charset=UTF-8

See my previous posts in this thread regarding those.


On Fri, Nov 23, 2012 at 4:07 PM, Jacob Carlborg <doob me.com> wrote:

 On 2012-11-23 12:15, Gor Gyolchanyan wrote:

 I'm translating OpenGL headers, taken from opengl.org
 <http://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 in druntime as well as the static
 libraries of WinAPI, which come with DMD are in horrendous state.

 I can translate the headers with a bunch of moderately complex regexp
 search/replace operations, some manual tweaks and compilations with RDMD
 to ensure correctness.

 The questions are:
      1. Can the DMD folks update the static libraries for WinAPI, so
 they match with what I'm gonna submit for druntime?
      2. What requirements are there (except keeping WinAPI names
 unmodified) for the translated headers to end up in druntime?
      3. Can the deimos folks please make an OpenGL repo so I can place

 my translated headers in there? Yes, I know the rules of deimos.

http://www.dsource.org/**projects/derelict<http://www.dsource.org/projects/derelict> For WinAPI and DirectX there's the bindings project: http://www.dsource.org/**projects/bindings<http://www.dsource.org/projects/bindings> For translating headers there's DStep, but that doesn't work yet on Windows: https://github.com/jacob-**carlborg/dstep<https://github.com/jacob-carlborg/dstep> -- /Jacob Carlborg

-- Bye, Gor Gyolchanyan. --f46d0407166dcb9f4804cf287c4e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable See my previous posts in this thread regarding those.<div class=3D"gmail_ex= tra"><br><br><div class=3D"gmail_quote">On Fri, Nov 23, 2012 at 4:07 PM, Ja= cob Carlborg <span dir=3D"ltr">&lt;<a href=3D"mailto:doob me.com" target=3D= "_blank">doob me.com</a>&gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div class=3D"im">On 2012-11-23 12:15, Gor G= yolchanyan wrote:<br> </div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l= eft:1px #ccc solid;padding-left:1ex"><div class=3D"im"> I&#39;m translating OpenGL headers, taken from <a href=3D"http://opengl.org= " target=3D"_blank">opengl.org</a><br></div> &lt;<a href=3D"http://opengl.org" target=3D"_blank">http://opengl.org</a>&g= t; (glcorearb.h, glext.h, wglext.h, glxext.h) and I&#39;m<div class=3D"im">= <br> going to translate WinAPI headers (all except DirectX and deprecated,<br> like winsock1) after that.<br> <br> As we all know, the WinAPI binding in druntime as well as the static<br> libraries of WinAPI, which come with DMD are in horrendous state.<br> <br> I can translate the headers with a bunch of moderately complex regexp<br> search/replace operations, some manual tweaks and compilations with RDMD<br=

<br> The questions are:<br> =C2=A0 =C2=A0 =C2=A01. Can the DMD folks update the static libraries for Wi= nAPI, so<br> they match with what I&#39;m gonna submit for druntime?<br> =C2=A0 =C2=A0 =C2=A02. What requirements are there (except keeping WinAPI n= ames<br> unmodified) for the translated headers to end up in druntime?<br></div> =C2=A0 =C2=A0 =C2=A03. Can the deimos folks please make an OpenGL repo so I= can place<div class=3D"im"><br> my translated headers in there? Yes, I know the rules of deimos.<br> <br> </div></blockquote> <br> For OpenGL there&#39;s Derelict:<br> <br> <a href=3D"http://www.dsource.org/projects/derelict" target=3D"_blank">http= ://www.dsource.org/<u></u>projects/derelict</a><br> <br> For WinAPI and DirectX there&#39;s the bindings project:<br> <br> <a href=3D"http://www.dsource.org/projects/bindings" target=3D"_blank">http= ://www.dsource.org/<u></u>projects/bindings</a><br> <br> For translating headers there&#39;s DStep, but that doesn&#39;t work yet on= Windows:<br> <br> <a href=3D"https://github.com/jacob-carlborg/dstep" target=3D"_blank">https= ://github.com/jacob-<u></u>carlborg/dstep</a><span class=3D"HOEnZb"><font c= olor=3D"#888888"><br> <br> -- <br> /Jacob Carlborg<br> </font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b= r>Bye,<br>Gor Gyolchanyan.<br> </div> --f46d0407166dcb9f4804cf287c4e--
Nov 23 2012