Re: D is totally useless

2013-05-05 Thread David
Am 01.05.2013 21:36, schrieb Dejan Lekic: > Temtaime wrote: > >> I had investigate a little more in it. >> Thanks to Jack Applegame, we made a copy of gl/gl.h and >> opengl32.lib for DMD. >> >> http://acomirei.ru/u/gl.d >> http://acomirei.ru/u/opengl32.lib >> >> I hope it will be included in DMD,

Re: D is totally useless

2013-05-05 Thread Raphaël Jakse
Le 02/05/2013 04:07, Carlos a écrit : 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 mu

Re: D is totally useless

2013-05-04 Thread WhatMeWorry
You sir need Derelict3:https://github.com/aldacron/Derelict3 It not only has the gl.h you are looking for but FreeGlut, OGG, openAL, SDL2, etc.

Re: D is totally useless

2013-05-04 Thread Idan Arye
On Friday, 3 May 2013 at 16:48:42 UTC, Jesse Phillips wrote: On Thursday, 2 May 2013 at 20:23:53 UTC, Diggory wrote: 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) You recalled correctly,

Re: D is totally useless

2013-05-03 Thread Jesse Phillips
On Thursday, 2 May 2013 at 20:23:53 UTC, Diggory wrote: 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) You recalled correctly, and according to MS these describe OpenGL 1.1. Anyway, OpenG

Re: D is totally useless

2013-05-03 Thread evilrat
On Friday, 3 May 2013 at 06:15:20 UTC, Jacob Carlborg wrote: On 2013-05-02 22:23, Diggory wrote: 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) wgl*** is the Windows specific OpenGL func

Re: D is totally useless

2013-05-02 Thread Jacob Carlborg
On 2013-05-02 22:23, Diggory wrote: 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) wgl*** is the Windows specific OpenGL functions? Then it make sense to be part of the Windows API. -- /

Re: D is totally useless

2013-05-02 Thread Carlos
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 h

Re: D is totally useless

2013-05-02 Thread Diggory
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)

Re: D is totally useless

2013-05-02 Thread Rob T
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 boo

Re: D is totally useless

2013-05-02 Thread Jesse Phillips
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

Re: D is totally useless

2013-05-02 Thread Andrei Alexandrescu
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 ope

Re: D is totally useless

2013-05-01 Thread Jacob Carlborg
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 co

Re: D is totally useless

2013-05-01 Thread evilrat
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 triangl

Re: D is totally useless

2013-05-01 Thread Carlos
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 lang

Re: D is totally useless

2013-05-01 Thread Jesse Phillips
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)

Re: D is totally useless

2013-05-01 Thread John Colvin
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++ compil

Re: D is totally useless

2013-05-01 Thread Temtaime
And why not? If not, then you should drop support of platform specific headers like windows.d. Because it's full of a drawing and many other functions. OpenGL is part of WinAPI.

Re: D is totally useless

2013-05-01 Thread Dejan Lekic
Temtaime wrote: > I had investigate a little more in it. > Thanks to Jack Applegame, we made a copy of gl/gl.h and > opengl32.lib for DMD. > > http://acomirei.ru/u/gl.d > http://acomirei.ru/u/opengl32.lib > > I hope it will be included in DMD, now it's first draft of our > work. Why on the Eart

Re: D is totally useless

2013-05-01 Thread Temtaime
I had investigate a little more in it. Thanks to Jack Applegame, we made a copy of gl/gl.h and opengl32.lib for DMD. http://acomirei.ru/u/gl.d http://acomirei.ru/u/opengl32.lib I hope it will be included in DMD, now it's first draft of our work.

Re: D is totally useless

2013-05-01 Thread Damian
On Wednesday, 1 May 2013 at 08:42:40 UTC, Temtaime wrote: 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. I was very surprised when i found, that D doesn't have equivalent of gl/gl.h. Any C++ compiler ha

Re: D is totally useless

2013-05-01 Thread John Colvin
On Wednesday, 1 May 2013 at 08:42:40 UTC, Temtaime wrote: 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. I was very surprised when i found, that D doesn't have equivalent of gl/gl.h. Any C++ compiler ha

Re: D is totally useless

2013-05-01 Thread John Colvin
On Wednesday, 1 May 2013 at 08:42:40 UTC, Temtaime wrote: 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. I was very surprised when i found, that D doesn't have equivalent of gl/gl.h. Any C++ compiler ha

Re: D is totally useless

2013-05-01 Thread evilrat
On Wednesday, 1 May 2013 at 08:42:40 UTC, Temtaime wrote: 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. I was very surprised when i found, that D doesn't have equivalent of gl/gl.h. Any C++ compiler ha

Re: D is totally useless

2013-05-01 Thread Jacob Carlborg
On 2013-05-01 10:42, Temtaime wrote: core.sys.windows.windows doesn't have a lot of functions. It doesn't contain simple function DestroyWindow for example. Declarations are basically added on a need to need basis. -- /Jacob Carlborg

Re: D is totally useless

2013-05-01 Thread Raphaël Jakse
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.htm

D is totally useless

2013-05-01 Thread Temtaime
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. I was very surprised when i found, that D doesn't have equivalent of gl/gl.h. Any C++ compiler has it. Okay, i'm investigate in it and found OpenGL in dei