glamour.util

Undocumented in source.

Members

Functions

gl_error_string
string gl_error_string(GLenum error)

Converts an OpenGL errorenum to a string

glenum2size
int glenum2size(GLenum t)

OpenGL enum to D type size

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

Templates

checkgl
template checkgl(alias func)

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.

glenum2sizect
template glenum2sizect(GLenum t)

OpenGL enum to D type size

glenum2type
template glenum2type(GLenum t)

OpenGL enum to D type

type2glenum
template type2glenum(T)

D type to OpenGL enum

Meta