Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 18:40:39 UTC, Dav1d wrote: 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

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: 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: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
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 exception this way(line number, etc...)

Re: Anyone using glad?

2016-01-13 Thread Jason Jeffory via Digitalmars-d-learn
On Wednesday, 13 January 2016 at 20:13:49 UTC, Dav1d wrote: 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

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-13 Thread Jason Jeffory via Digitalmars-d-learn
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: 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

Re: Anyone using glad?

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
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: 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

Re: Anyone using glad?

2016-01-12 Thread Jason Jeffory via Digitalmars-d-learn
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 with that later. My current problem is: 1. The code doesn't work as

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-12 Thread ParticlePeter via Digitalmars-d-learn
On Monday, 11 January 2016 at 00:46:38 UTC, Jason Jeffory 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? These kind of questions are best clarified on the OpenGL wiki.

Re: Anyone using glad?

2016-01-12 Thread Mike Parker 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). Every operating system has a well-defined

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: Anyone using glad?

2016-01-11 Thread Jason Jeffory via Digitalmars-d-learn
On Monday, 11 January 2016 at 10:01:11 UTC, Dav1d wrote: 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

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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 all that conversion just or not, and glfw has several libs for

Re: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
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: 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

Re: Anyone using glad?

2016-01-10 Thread rsw0x 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: Anyone using glad?

2016-01-10 Thread Jason Jeffory via Digitalmars-d-learn
On Sunday, 10 January 2016 at 23:14:33 UTC, Dav1d wrote: On Sunday, 10 January 2016 at 22:37:28 UTC, Jason Jeffory wrote: [...] I would recommend using glfw for a context/window, there is a binding in Deimos https://github.com/D-Programming-Deimos/glfw - You need to either compile it

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