An open API service indexing awesome lists of open source software.

https://github.com/webfreak001/opengl-d

dynamic & static generated OpenGL bindings for D using ogl_gen
https://github.com/webfreak001/opengl-d

Last synced: 12 months ago
JSON representation

dynamic & static generated OpenGL bindings for D using ogl_gen

Awesome Lists containing this project

README

          

# opengl

Dynamic & Static OpenGL bindings with documentation generated from
the spec using [ogl_gen](https://github.com/rikkimax/ogl_gen).

If you use the dynamic bindings (not ending with `-static`) you need
to additionally import `opengl.loader` and call `loadGL!(opengl.gl4);`
(replace gl4 with the version you use) after creating a GL context. It
will work on linux without GL context but not on windows.

```d

import opengl.gl4;

// if dynamic:
import opengl.loader;

void main()
{
// ... create context

// if dynamic:
loadGL!(opengl.gl4);

// OpenGL available
}

```