Gives you access to all glFunctions, GL_CONSTANTS and GLtypes.
In debug mode, glGetError() is automatically checked before and after all
calls to all glFunctions (except glGetError). Any errors are then thrown
as an moggle.core.gl.GLError.
When not in debug mode, moggle.core.gl simply publicly imports the Derelict OpenGL modules.
Don't forget to call loadOpenGL() after you created your OpenGL context,
or some glFunctions will still be null.
Gives you access to all glFunctions, GL_CONSTANTS and GLtypes.
In debug mode, glGetError() is automatically checked before and after all calls to all glFunctions (except glGetError). Any errors are then thrown as an moggle.core.gl.GLError.
When not in debug mode, moggle.core.gl simply publicly imports the Derelict OpenGL modules.
Don't forget to call loadOpenGL() after you created your OpenGL context, or some glFunctions will still be null.
The Derelict library is used for OpenGL bindings.