glview_initialize()
Initialize glview for use.
Synopsis:
#include <glview/glview.h>
GLVIEW_API int glview_initialize(glview_api_t api, frame_callback frame_callback)
Arguments:
- api
-
The version of OpenGL ES the app intends to use.
- frame_callback
-
The callback that is fired to draw the frame. This callback is mandatory, and cannot be NULL.
Library:
libglviewDescription:
This call must be made prior to calling any other glview function. After initialization callbacks can be registered to hook into various phases of the execution loop. Call the glview_loop() function in your app to start the glview execution loop.
Returns:
GLVIEW_SUCCESS upon success, GLVIEW_FAILURE otherwise, with errno set to one of the following:
- EPERM: glview has already been initialized.
- EFAULT: frame_callback is NULL.