Re: Glad and WGL

2016-01-14 Thread Dav1d via Digitalmars-d-learn
On Thursday, 14 January 2016 at 02:35:28 UTC, Josh Phillips wrote: On Wednesday, 13 January 2016 at 20:08:55 UTC, Dav1d wrote: Link with opengl32.lib How? Everywhere I looked it says this cannot be done due to conflicting formats between the dmd compiler and the windows one. Welcome to D

Re: Glad and WGL

2016-01-14 Thread Dav1d via Digitalmars-d-learn
On Thursday, 14 January 2016 at 09:25:50 UTC, Dav1d wrote: On Thursday, 14 January 2016 at 02:35:28 UTC, Josh Phillips wrote: On Wednesday, 13 January 2016 at 20:08:55 UTC, Dav1d wrote: Link with opengl32.lib How? Everywhere I looked it says this cannot be done due to conflicting formats

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 19:20:40 UTC, Jason Jeffory wrote: What I can't seem to figure out why try { loop } catch { } catches the exception but try { loop } catch (Throwable t) // Only diff { } doesn't ;/ Probably my ignorance about D, but I was hoping to get some info about the

Re: Glad and WGL

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:34:14 UTC, Josh Phillips wrote: So I started using Glad but I can't get WGL to work with it, though I think this is more of a Win32 issue than WGL. wndclass.lpfnWndProc = Gives me an error no matter what: Error: cannot implicitly convert expression (&

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 17:43:54 UTC, Jason Jeffory wrote: On Wednesday, 13 January 2016 at 16:04:32 UTC, Dav1d wrote: On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: [...] That's not correct. Build a debug build and check the stacktrace which should be printed,

Re: Glad and WGL

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 19:05:30 UTC, Josh Phillips wrote: On Wednesday, 13 January 2016 at 18:37:09 UTC, Adam D. Ruppe wrote: [...] Oh wow that's easy. They should really make that more clear in the dlang reference. They way it sounds there made me think that if a function doesn't

Re: Output range of ranges to single buffer

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 21:15:03 UTC, Jacob Carlborg wrote: Is it possible to somehow output a range of ranges to a single string buffer? For example, converting an array of integers to a string with the same representation as the source code. [...] std.format can do it. From the

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 22:51:45 UTC, Jason Jeffory wrote: After an few hours of fucking with cmake, turns out it had a bug. Updated it and worked. Pretty much through with this crap. I'm not going to waste any more time screwing with the dysfunctional approach that software design is

Re: Anyone using glad?

2016-01-13 Thread Dav1d via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 06:30:44 UTC, Jason Jeffory wrote: On Tuesday, 12 January 2016 at 20:48:37 UTC, Dav1d wrote: On Tuesday, 12 January 2016 at 19:16:51 UTC, Jason Jeffory wrote: [...] Yup, that's a little bit annoying on Windows (also as mentioned before the deimos bindings

Re: Anyone using glad?

2016-01-12 Thread Dav1d via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 19:16:51 UTC, Jason Jeffory wrote: So, I finally got it to work by abandoning demios and static linking. Derelict + dynamic linking worked with only about a min of problems(copying the proper dll to the correct place). I'd prefer static linking but I can deal

Re: Anyone using glad?

2016-01-11 Thread Dav1d via Digitalmars-d-learn
On Monday, 11 January 2016 at 00:46:38 UTC, Jason Jeffory wrote: On Sunday, 10 January 2016 at 23:14:33 UTC, Dav1d wrote: [...] OK, I'll give it a try. What about GLUT and WGL? Whats the difference between them all and glfw? Are all these just OS helpers to reduce the boilerplate code?

Re: Anyone using glad?

2016-01-11 Thread Dav1d via Digitalmars-d-learn
On Monday, 11 January 2016 at 01:46:11 UTC, Jason Jeffory wrote: Ok. So I tried it out and having some issues ;/ got it basically to compile but 2 problems: 1. I have to get dub to include the lib, not a big deal, shouldn't be issue if I can get the right lib in. (not sure if I have to do

Re: Anyone using glad?

2016-01-11 Thread Dav1d via Digitalmars-d-learn
On Monday, 11 January 2016 at 16:30:58 UTC, Jason Jeffory wrote: On Monday, 11 January 2016 at 10:01:11 UTC, Dav1d wrote: [...] but as I said, source\app.d(35,3): Error: undefined identifier 'gladLoadGL' source\app.d(36,42): Error: undefined identifier 'GLVersion' source\app.d(36,59): Error:

Re: issue porting C++/glm/openGL to D/gl3n/openGL

2016-01-11 Thread Dav1d via Digitalmars-d-learn
On Sunday, 10 January 2016 at 05:47:01 UTC, WhatMeWorry wrote: On Sunday, 10 January 2016 at 04:37:43 UTC, Mike Parker wrote: On Sunday, 10 January 2016 at 02:51:57 UTC, WhatMeWorry wrote: Is gl3n not a direct replacement for glm? From the very top of the gl3n github page: "OpenGL

Re: Anyone using glad?

2016-01-10 Thread Dav1d via Digitalmars-d-learn
On Sunday, 10 January 2016 at 22:37:28 UTC, Jason Jeffory wrote: On Sunday, 10 January 2016 at 21:53:45 UTC, Dav1d wrote: On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote: [...] Hey, I am the guy behind glad, you are most likely looking for: https://github.com/Dav1dde/glad#d

Re: Anyone using glad?

2016-01-10 Thread Dav1d via Digitalmars-d-learn
On Sunday, 10 January 2016 at 21:30:32 UTC, Jason Jeffory wrote: Seems like it is a very nice way to get into openGL from D. http://glad.dav1d.de/ I generated the bindings for all the latest versions of the various specifications. Does anyone have any tutorials that use this library

Re: why adding extern(C) cause a runtime error?

2015-07-11 Thread Dav1d via Digitalmars-d-learn
On Saturday, 11 July 2015 at 01:22:14 UTC, mzf wrote: win7 x86 dmd2.067.1 ok ubuntu x64 dmd2.067.1 error - import std.stdio; import std.socket; extern(C) void recv() { writeln(recv...); } extern(C) void send() { writeln(send...); } int