mpv/libmpv
wm4 b037121430 client API: deprecate opengl-cb API and introduce a replacement API
The purpose of the new API is to make it useable with other APIs than
OpenGL, especially D3D11 and vulkan. In theory it's now possible to
support other vo_gpu backends, as well as backends that don't use the
vo_gpu code at all.

This also aims to get rid of the dumb mpv_get_sub_api() function. The
life cycle of the new mpv_render_context is a bit different from
mpv_opengl_cb_context, and you explicitly create/destroy the new
context, instead of calling init/uninit on an object returned by
mpv_get_sub_api().

In other to make the render API generic, it's annoyingly EGL style, and
requires you to pass in API-specific objects to generic functions. This
is to avoid explicit objects like the internal ra API has, because that
sounds more complicated and annoying for an API that's supposed to never
change.

The opengl_cb API will continue to exist for a bit longer, but
internally there are already a few tradeoffs, like reduced
thread-safety.

Mostly untested. Seems to work fine with mpc-qt.
2018-02-28 00:55:06 -08:00
..
client.h client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
mpv.def client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
mpv.pc.in
opengl_cb.h client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
qthelper.hpp client API: add MPV_ENABLE_DEPRECATED symbol 2017-04-20 06:19:55 +02:00
render.h client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
render_gl.h client API: deprecate opengl-cb API and introduce a replacement API 2018-02-28 00:55:06 -08:00
stream_cb.h Fix use of ISC license 2017-04-15 16:20:00 +02:00