glamour



void  set_error_callback(void function(GLenum, string, string) cb);




ReturnType!(func)  checkgl(alias func, Args...)(Args args);

 checkgl checks in a debug build after every opengl call glGetError and calls an error-callback which can be set with set_error_callback a default is provided


string  gl_error_string(GLenum error);

Converts an OpenGL errorenum to a string


template  type2glenum(T)

D type to OpenGL enum


template  glenum2type(GLenum t)

OpenGL enum to D type


template  glenum2sizect(GLenum t)
int  glenum2size(GLenum t);

OpenGL enum to D type size