Getting going with D/OpenGL

Bradley Smith digitalmars-com at baysmith.com
Thu Nov 2 00:31:31 PST 2006


Here is a new easy way to get going with OpenGL under D.

GLD, native D replacement for GLFW

GLD is a native D port of GLFW. It works on Windows and Linux, but has 
only been minimally tested using the example programs included.

By default, GLD directly links to OpenGL libraries. However, on Windows, 
it can optionally use the Derelict bindings for OpenGL. In the future, 
Derelict compatiblity may also be available on Linux.

GLD can be downloaded from http://www.baysmith.com/d/gld.zip

Since GLD is a direct port of GLFW, no documentation is provided. 
Instead, use the GLFW documentation. Simply subsitute gld for glfw and 
GLD for GLFW where necessary.

   Bradley


Bill Baxter wrote:
> What's the easiest way to get going with OpenGL under D?
> It seems like Derelict has OpenGL support using SDL, but I don't really 
> like SDL's single-window limitation or draconian approach to window 
> resizing (i.e. trash all your textures).
> 
> Are there other options?  What's the best supported / actively developed?
> 
> I was considering working on a GLUI-alike library.  GLUI is a simple, 
> easy to use GUI library based on OpenGL.  It's pretty popular in the 
> graphics research community just because it's so brain-dead easy to use, 
> is very lightweight, and has very few dependencies.  Perfect for 
> slapping a few buttons and sliders up on the screen to control your 
> OpenGL program.  I think it could be very nice for D, since D is also 
> all about ease-of-use.
> 
> --bb



More information about the Digitalmars-d-learn mailing list