Render video. Requires that the OpenGL state is initialized.
Initialize the mpv OpenGL state. This retrieves OpenGL function pointers via get_proc_address, and creates OpenGL objects needed by mpv internally. It will also call APIs needed for rendering hardware decoded video in OpenGL, according to the mpv "hwdec" option.
Deprecated. Use mpv_opengl_cb_draw(). This function is equivalent to:
Tell the renderer that a frame was flipped at the given time. This is optional, but can help the player to achieve better timing.
Set the callback that notifies you when a new video frame is available, or if the video display configuration somehow changed and requires a redraw. Similar to mpv_set_wakeup_callback(), you must not call any mpv API from the callback, and all the other listed restrictions apply (such as not exiting the callback by throwing exceptions).
Destroy the mpv OpenGL state.
Opaque context, returned by mpv_get_sub_api(MPV_SUB_API_OPENGL_CB).
Overview