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)

Since:

BlackBerry 10.0.0

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 (For the qcc command, use the -l glview option to link against this library)

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

Last modified: 2014-09-29



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus