May 01, 2013
On Wednesday, 1 May 2013 at 21:26:32 UTC, Temtaime wrote:
> Because it's full of a drawing and many other functions. OpenGL is part of WinAPI.

Is that strictly speaking true? I didn't think opengl was part of the windows api (WinAPI) itself.

Anyway, afaik opengl is not provided by c/c++ compilers. Opengl is just pre-installed on most OSs, along with its c/c++ headers, meaning it is ready to include/import and link to. It is a separate library and headers, installed separately from the compiler.

However, one could make an argument that opengl is sufficiently ubiquitous that d bindings should be shipped with the compiler, similar to the core OS bindings.
I personally think not, but if you disagree then I suggest making a separate thread in the main D newsgroup/forum proposing it.
May 02, 2013
On Wednesday, 1 May 2013 at 22:33:40 UTC, John Colvin wrote:
> On Wednesday, 1 May 2013 at 21:26:32 UTC, Temtaime wrote:
>> Because it's full of a drawing and many other functions. OpenGL is part of WinAPI.
>
> Is that strictly speaking true? I didn't think opengl was part of the windows api (WinAPI) itself.

It is not. DirectX isn't even part of the WinAPI and that is what Microsoft backs.
May 02, 2013
On Wednesday, 1 May 2013 at 08:53:18 UTC, Raphaël Jakse wrote:
> Le 01/05/2013 10:42, Temtaime a écrit :
>> I'm new in D, so i'm tried to write some in that langugage.
>> That's story about how i tried to port OGL sample, that renders one
>> triangle.
>>
>
> You can do much better with the D programming langage.
> See :
> - http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html
> - http://www.emhsoft.com/ttrooper/
>
> So yes, you can do OpenGL with D, and it works.

But where can this be learned ? Do you know any books on the subject ?
May 02, 2013
On Thursday, 2 May 2013 at 02:07:23 UTC, Carlos wrote:
> On Wednesday, 1 May 2013 at 08:53:18 UTC, Raphaël Jakse wrote:
>> Le 01/05/2013 10:42, Temtaime a écrit :
>>> I'm new in D, so i'm tried to write some in that langugage.
>>> That's story about how i tried to port OGL sample, that renders one
>>> triangle.
>>>
>>
>> You can do much better with the D programming langage.
>> See :
>> - http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html
>> - http://www.emhsoft.com/ttrooper/
>>
>> So yes, you can do OpenGL with D, and it works.
>
> But where can this be learned ? Do you know any books on the subject ?

learn what? opengl is C API specification, any resource about opengl will work, the only thing required for apply it to D is to know D basics. but unfortunately for D itself it is really hard to find good tutorials
May 02, 2013
On 2013-05-01 16:18, Damian wrote:

> The lack of proper windows headers is very discerning for windows users
> and many have argued that D should come with these by default, I do think
> that it does hurt D's reputation when a windows uses as to jump through
> hoops just to display a window.

You're complaining about Windows. I can tell you that it doesn't look good for anyone. To get a window on Mac OS X you need to interact with Objective-C (no I don't want to use Carbon), which is possible but it's a pain in the ass.

-- 
/Jacob Carlborg
May 02, 2013
On 5/1/13 6:20 PM, Jesse Phillips wrote:
> On Wednesday, 1 May 2013 at 22:33:40 UTC, John Colvin wrote:
>> On Wednesday, 1 May 2013 at 21:26:32 UTC, Temtaime wrote:
>>> Because it's full of a drawing and many other functions. OpenGL is
>>> part of WinAPI.
>>
>> Is that strictly speaking true? I didn't think opengl was part of the
>> windows api (WinAPI) itself.
>
> It is not. DirectX isn't even part of the WinAPI and that is what
> Microsoft backs.

Probably would make for a good deimos addition.

Andrei
May 02, 2013
On Thursday, 2 May 2013 at 07:39:29 UTC, Andrei Alexandrescu wrote:
> On 5/1/13 6:20 PM, Jesse Phillips wrote:
>> On Wednesday, 1 May 2013 at 22:33:40 UTC, John Colvin wrote:
>>> On Wednesday, 1 May 2013 at 21:26:32 UTC, Temtaime wrote:
>>>> Because it's full of a drawing and many other functions. OpenGL is
>>>> part of WinAPI.
>>>
>>> Is that strictly speaking true? I didn't think opengl was part of the
>>> windows api (WinAPI) itself.
>>
>> It is not. DirectX isn't even part of the WinAPI and that is what
>> Microsoft backs.
>
> Probably would make for a good deimos addition.
>
> Andrei

Agreed probably would be a good pull request for https://github.com/D-Programming-Deimos/OpenGL
May 02, 2013
On Thursday, 2 May 2013 at 04:27:10 UTC, evilrat wrote:
> learn what? opengl is C API specification, any resource about opengl will work, the only thing required for apply it to D is to know D basics. but unfortunately for D itself it is really hard to find good tutorials

I use this on-line book on D.

http://ddili.org/ders/d.en/index.html

Unfortunately, not 100% translated yet, but it's still an active project being worked on so I expect eventually it will get filly translated. A really nice thing about it, is that it gets updated to reflect the latest changes and additions to D.

--rt
May 02, 2013
The wgl*** functions and "SwapBuffers" ARE part of the windows api even though they are implemented in opengl32.dll (they are declared in wingdi.h IIRC)
May 02, 2013
On Thursday, 2 May 2013 at 04:27:10 UTC, evilrat wrote:
> On Thursday, 2 May 2013 at 02:07:23 UTC, Carlos wrote:
>> On Wednesday, 1 May 2013 at 08:53:18 UTC, Raphaël Jakse wrote:
>>> Le 01/05/2013 10:42, Temtaime a écrit :
>>>> I'm new in D, so i'm tried to write some in that langugage.
>>>> That's story about how i tried to port OGL sample, that renders one
>>>> triangle.
>>>>
>>>
>>> You can do much better with the D programming langage.
>>> See :
>>> - http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html
>>> - http://www.emhsoft.com/ttrooper/
>>>
>>> So yes, you can do OpenGL with D, and it works.
>>
>> But where can this be learned ? Do you know any books on the subject ?
>
> learn what? opengl is C API specification, any resource about opengl will work, the only thing required for apply it to D is to know D basics. but unfortunately for D itself it is really hard to find good tutorials

Ok