Re: glad OpenGL loader generator

2013-08-25 Thread David
Am 13.08.2013 19:38, schrieb David: glad now supports also EGL, GLX and WGL You can add GLES to the list TODO: * GLES loader * lazy loading * debugging (tracing function calls and error-checks with glGetError) * helperfunctions like gladGetErrorString(GLenum) or gladEnumToString(GLenum)

Re: glad OpenGL loader generator

2013-08-14 Thread Brad Anderson
On Tuesday, 13 August 2013 at 10:41:49 UTC, David wrote: Am 13.08.2013 05:51, schrieb evilrat: On Monday, 12 August 2013 at 13:45:46 UTC, David wrote: Did you confuse gles2 (GL ES 2.0) with gl3n? Or did you speak of glamour, which has indeed gl3n interaction, which can be turned on with

Re: glad OpenGL loader generator

2013-08-13 Thread David
Am 13.08.2013 05:51, schrieb evilrat: On Monday, 12 August 2013 at 13:45:46 UTC, David wrote: Did you confuse gles2 (GL ES 2.0) with gl3n? Or did you speak of glamour, which has indeed gl3n interaction, which can be turned on with -version=gl3n: make DCFLAGS+=-version=gl3n. But I recommend

Re: glad OpenGL loader generator

2013-08-13 Thread evilrat
On Tuesday, 13 August 2013 at 10:41:49 UTC, David wrote: This shouldn't happen and doesn't happen for me. Easiest way to use gl3n (and also what I recommend) is to use it as git submodule or simply copy the sources into your project and integrate it into your buildsystem. ok thanks, i'll

Re: glad OpenGL loader generator

2013-08-13 Thread David
glad now supports also EGL, GLX and WGL

Re: glad OpenGL loader generator

2013-08-12 Thread David
Am 12.08.2013 07:06, schrieb evilrat: On Monday, 5 August 2013 at 21:42:59 UTC, David wrote: glad - is an OpenGL loader (with experimental gles support, --api=gles2) ... i looked at this on github and see an option to build with gl3n, then i see what it is, and looks like gl3n is a 'must

Re: glad OpenGL loader generator

2013-08-12 Thread evilrat
On Monday, 12 August 2013 at 13:45:46 UTC, David wrote: Did you confuse gles2 (GL ES 2.0) with gl3n? Or did you speak of glamour, which has indeed gl3n interaction, which can be turned on with -version=gl3n: make DCFLAGS+=-version=gl3n. But I recommend you to include gl3n and glamour as

Re: glad OpenGL loader generator

2013-08-11 Thread evilrat
On Monday, 5 August 2013 at 21:42:59 UTC, David wrote: glad - is an OpenGL loader (with experimental gles support, --api=gles2) ... i looked at this on github and see an option to build with gl3n, then i see what it is, and looks like gl3n is a 'must have' for my simple tasks. but for some

Re: glad OpenGL loader generator

2013-08-06 Thread Russel Winder
On Tue, 2013-08-06 at 02:00 +0200, David wrote: Am 06.08.2013 01:11, schrieb Land: I really like the sound of this. I'll try it out tomorrow. glad to hear that ;) (to join w0rp with glad jokes) I guess you will just have to play Cream's I'm so glad as a theme tune. -- Russel.

Re: glad OpenGL loader generator

2013-08-06 Thread David
Am 06.08.2013 16:32, schrieb David: I posted it also on reddit, maybe it draws some attention: http://www.reddit.com/r/programming/comments/1jt9m5/multilanguage_opengl_loader_generator_based_on/ Interesting it seems like it was deleted, but I don't know why? ... Ok

Re: glad OpenGL loader generator

2013-08-06 Thread Mike Parker
On Tuesday, 6 August 2013 at 16:47:52 UTC, David wrote: Am 06.08.2013 16:32, schrieb David: I posted it also on reddit, maybe it draws some attention: http://www.reddit.com/r/programming/comments/1jt9m5/multilanguage_opengl_loader_generator_based_on/ Interesting it seems like it was deleted,

glad OpenGL loader generator

2013-08-05 Thread David
glad - is an OpenGL loader (with experimental gles support, --api=gles2) which is generated 1:1 from the OpenGL official spec (https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml). It has at the moment a backend for three languages (frontend parses, backend generates code,

Re: glad OpenGL loader generator

2013-08-05 Thread w0rp
I'm glad you invested time in glad. I'll probably try it out soon enough.

Re: glad OpenGL loader generator

2013-08-05 Thread Justin Whear
It looks like your D backend generates string literals with literal null bytes--this is unnecessary as string literals are already null terminated. (Documented here: http://dlang.org/interfaceToC.html (see final bullet under Call­ing C Func­tions) Also, it looks like loading each extension

Re: glad OpenGL loader generator

2013-08-05 Thread David
Am 06.08.2013 00:17, schrieb Justin Whear: It looks like your D backend generates string literals with literal null bytes--this is unnecessary as string literals are already null terminated. (Documented here: http://dlang.org/interfaceToC.html (see final bullet under Call­ing C Func­tions)

Re: glad OpenGL loader generator

2013-08-05 Thread Land
I really like the sound of this. I'll try it out tomorrow.

Re: glad OpenGL loader generator

2013-08-05 Thread David
Am 06.08.2013 00:33, schrieb Justin Whear: On Tue, 06 Aug 2013 00:21:46 +0200, David wrote: I was thinking of that, too, but caching the OpenGL call to glGetStringi, I don't think you can prevent the linear searches. Why not something like this for the GL_VERSION = 3 codepath in has_ext?

Re: glad OpenGL loader generator

2013-08-05 Thread David
Am 06.08.2013 01:11, schrieb Land: I really like the sound of this. I'll try it out tomorrow. glad to hear that ;) (to join w0rp with glad jokes)

Re: glad OpenGL loader generator

2013-08-05 Thread Andrej Mitrovic
On 8/6/13, David d...@dav1d.de wrote: Thanks, I will definitly look into improving it (when I wake up ;)) You should know better than to code when you're sleepwalking! glad works great for me, I've tested it on Win7 x64. Great project!