fltk_gl_window_set_draw_callback

fnvoid 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

winThe GL window
callbackThe draw callback function
userdataUser data passed to the callback