May 03, 2013
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.

-- 
/Jacob Carlborg
May 03, 2013
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 functions? Then it make sense to be part of the Windows API.

yes they are. but that set of function is quite similar on both windows(wgl_***) and linux(glx_*** stuff)(mac has both carbon/cocoa specific stuff), however there are some differences in os level stuff like swap buffers and other, if wgl*** winapi decls will be added to phobos i wish there are also be added similar linux/x11 stuff, though i don't and don't plan to use linux that stuff will help a lot for all coders(standardization and so on) -_-
May 03, 2013
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, OpenGL, and the gl.h file is not part of the Windows API. But I'd defiantly be for all the .h files in the SDK to be translated for Phobos.
May 04, 2013
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, and according to MS these describe OpenGL 1.1. Anyway, OpenGL, and the gl.h file is not part of the Windows API. But I'd defiantly be for all the .h files in the SDK to be translated for Phobos.

You can't use OpenGL without creating a context(a window), and for that you a windowing system - either a general one(Win32/X/GTK/Qt) or an OpenGL-toolkit(GLUT/GLFW/SDL)(Yes, I know SDL is not an OpenGL toolkit, but it can function as one). Phobos does not have any windowing system - the Win32 binding are about the Windows filesystem and DLL loading, not about creating, managing and using graphical windows. That means you'll have to get an external library anyways to use OpenGL.
May 04, 2013
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.

May 05, 2013
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 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 ?

Sorry for the delay.

Unfortunately I'm still out of any OpenGL development. As a result, I don't have any book to suggest. I just know it is possible to develop OpenGL apps with D but I never tried myself.
May 05, 2013
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, now it's first draft of our work.
> 
> Why on the Earth would you include opengl32 in the DMD package??
> 
Why on the Earth would you include curl in the DMD package?? - Oh wait...
1 2 3
Next ›   Last »