GlWindow.onDraw
void delegate() nothrow @nogc onDraw()Gets the draw callback delegate.
Returns
The current draw callback, or null if not set
void onDraw(void delegate() nothrow @nogc dg)Sets the draw callback delegate.
The callback is invoked when the window needs to redraw its OpenGL content. The GL context is already made current when the callback is called.
Parameters
dg | The draw callback delegate |