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
- Host: GitHub
- URL: https://github.com/webfreak001/opengl-d
- Owner: WebFreak001
- Created: 2017-05-31T19:26:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T20:36:50.000Z (over 4 years ago)
- Last Synced: 2025-02-28T14:48:05.977Z (over 1 year ago)
- Language: D
- Size: 604 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
}
```