Initialize glview for use.
GLVIEW_API int glview_initialize(glview_api_t api, frame_callback frame_callback)
The version of OpenGL ES the app intends to use.
The callback that is fired to draw the frame. This callback is mandatory, and cannot be NULL.
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.
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.