www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OpenGL glext.d generator from Glew

reply "Ilya Zaitseff" <sark7 mail333.com> writes:
A simple program that converts Glew OpenGL extensions specification into D  
source.
It goal is keeping glext module size as small as possible, for faster  
parsing.

Copy only necessary extensions to folder and use it for glext.d module  
generating.

Glew OpenGL extensions can be downloaded from Glew sourceforge site.
In glew-1.2.4-src.zip they are located in 'glew/auto/core' or  
'glew/auto/extensions'.

Usage:
   glew2d { -switch }

   -extdir:<extdir> specify folder where extension files exists (default is  
'ext')
   -modname:<modname> name of generated module (default is 'glext')
   -modwin:<modwin> name of imported Windows module (default is  
'std.c.windows.windows')

In generated module, use load_EXTNAME() functions to initialize EXTNAME  
extension.

glew2d source is attached. It is free for any purpose.
Dec 20 2004
next sibling parent reply Mike Parker <aldacron71 yahoo.com> writes:
Ilya Zaitseff wrote:

 glew2d source is attached. It is free for any purpose.
Be aware that GLEW is GPL, and by extension so should this be.
Dec 20 2004
parent reply "Ilya Zaitseff" <sark7 mail333.com> writes:
 Ilya Zaitseff wrote:

 glew2d source is attached. It is free for any purpose.
Be aware that GLEW is GPL, and by extension so should this be.
GLEW isn't only GPL, it uses three licenses: SGI Free Software License B, GLX Public License & GPL. Only automatic code generation scripts are under GPL. glew2d itself doesn't use or based on any of GLEW sources. GLEW extensions 'skeleton description' can be generated by glew/auto/bin/parse_spec.pl.
Dec 20 2004
parent Mike Parker <aldacron71 yahoo.com> writes:
Ilya Zaitseff wrote:

 
 GLEW isn't only GPL, it uses three licenses: SGI Free Software License 
 B,  GLX Public License & GPL.
 Only automatic code generation scripts are under GPL.
Interesting. I had started to incorporate GLEW into Derelict, but when I saw that GPL I aborted the idea. I didn't see anything about the SGI or GLX licenses. Regardless, now that you've done this I don't need to mess with it :)
Dec 21 2004
prev sibling parent "Dillon Hammond" <dillonhammond gmail.com> writes:
On Monday, 20 December 2004 at 14:11:23 UTC, Ilya Zaitseff wrote:
 A simple program that converts Glew OpenGL extensions 
 specification into D
 source.
 It goal is keeping glext module size as small as possible, for 
 faster
 parsing.

 Copy only necessary extensions to folder and use it for glext.d 
 module
 generating.

 Glew OpenGL extensions can be downloaded from Glew sourceforge 
 site.
 In glew-1.2.4-src.zip they are located in 'glew/auto/core' or
 'glew/auto/extensions'.

 Usage:
    glew2d { -switch }

    -extdir:<extdir> specify folder where extension files exists 
 (default is
 'ext')
    -modname:<modname> name of generated module (default is 
 'glext')
    -modwin:<modwin> name of imported Windows module (default is
 'std.c.windows.windows')

 In generated module, use load_EXTNAME() functions to initialize 
 EXTNAME
 extension.

 glew2d source is attached. It is free for any purpose.
I know this thread is old but I am trying to use Glew2D on a Mac to work with GLEW and D. I have put the GLEW extensions I want into the ext folder but I am not sure what to do after that, or how to create glext.d. I also saw that there is a bat file there, which errors when running because "command Glew2D does not exist". I am confused how to use this.
Jul 13 2014