glview_register_resize_callback()

Register a callback to be fired whenever an orientation occurs that the app must respond to.

Synopsis:

#include <glview/glview.h>
 
GLVIEW_API int glview_register_resize_callback(resize_callback resize_callback)

Since:

1.0

Arguments:

resize_callback

The callback to be fired on a resize event. If this parameter is NULL then any previously set callback is disabled.

Library:

libglview (For the qcc command, use the -l glview option to link against this library)

Description:

Calling glview_register_resize_callback with a NULL resize_callback will prevent any previously set callback from being fired on a resize event. Any resize callback will never be fired if the app is set to landscape or portrait only.

Returns:

GLVIEW_SUCCESS upon success, GLVIEW_FAILURE otherwise, with errno set to the following:

Last modified: 2014-05-14



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

comments powered by Disqus