fltk_gl_window_set_draw_callback
fn
void fltk_gl_window_set_draw_callback(FltkGlWindow win, GlWindowDrawCallback callback, void * userdata)Sets the draw callback for a GL window.
The callback is invoked when the window needs to redraw its OpenGL content. The GL context is made current before the callback is called.
Parameters
win | The GL window |
callback | The draw callback function |
userdata | User data passed to the callback |