opengl 1.0.0

Dynamic & Static OpenGL bindings with documentation generated from the spec using ogl_gen


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

This package provides sub packages which can be used individually:

opengl:gl2 - Legacy OpenGL functions (shared library)

opengl:gl3 - OpenGL 3.x functions (shared library)

opengl:gl4 - OpenGL 4.5 functions (shared library)

opengl:gl2-static - Legacy OpenGL functions (static wrapper)

opengl:gl3-static - OpenGL 3.x functions (static wrapper)

opengl:gl4-static - OpenGL 4.5 functions (static wrapper)


opengl

Dynamic & Static OpenGL bindings with documentation generated from the spec using 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.


import opengl.gl4;

// if dynamic:
import opengl.loader;

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

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

	// OpenGL available
}

Authors:
webfreak, rikki
Sub packages:
opengl:gl2, opengl:gl3, opengl:gl4, opengl:gl2-static, opengl:gl3-static, opengl:gl4-static
Dependencies:
none
Versions:
1.0.0 2017-May-31
~master 2017-Jun-05
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 13 downloads this month

  • 37 downloads total