glview_set_callback_data()

Set the callback data that will be passed into callback functions.

Synopsis:

#include <glview/glview.h>
 
GLVIEW_API int glview_set_callback_data(void *callback_data)

Arguments:

callback_data

Application-specific data that will be passed as a parameter to each of the registered callbacks whenever they are fired. This can be changed by calling glview_set_callback_data() again. This can be set to NULL, in which case any previously set callback_data will no longer be passed into a callback.

Library:

libglview

Description:

Every callback that the app registers has, as a paramter, a void
  • callback_data. Whatever callback_data that is set here will be passed into any registered callback when invoked by glview.

Calling this function with a NULL parameter will result in a NULL being passed into any registered callback when invoked by glview.

Returns:

GLVIEW_SUCCESS