opengl 1.0.1

High Level wrapper + Dynamic & Static OpenGL bindings with documentation generated using ogl_gen


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


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:d - High level OpenGL 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, opengl:d
Dependencies:
none
Versions:
1.0.1 2020-Mar-13
1.0.0 2017-May-31
~master 2020-Mar-13
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 5 downloads this month

  • 397 downloads total

Score:
0.8
Short URL:
opengl.dub.pm