mirror of https://github.com/mpv-player/mpv
16e951c2cd
Do this instead of stuffing all x11/cocoa/win32/wayland specific code into gl_common.c. The cocoa specific parts could probably go directly into cocoa_common.m, possibly same with wayland. Also redo how the list of backends is managed. Get rid of the GLTYPE_ constants. Instead of having a big switch() on GLTYPE_, each backend entry has a function pointer to setup the MPGLContext callback (e.g. mpgl_set_backend_x11()). |
||
---|---|---|
.. | ||
aspect.c | ||
aspect.h | ||
bitmap_packer.c | ||
bitmap_packer.h | ||
cocoa_common.h | ||
cocoa_common.m | ||
d3d_shader_yuv.h | ||
d3d_shader_yuv.hlsl | ||
filter_kernels.c | ||
filter_kernels.h | ||
gl_cocoa.c | ||
gl_common.c | ||
gl_common.h | ||
gl_header_fixes.h | ||
gl_osd.c | ||
gl_osd.h | ||
gl_w32.c | ||
gl_wayland.c | ||
gl_x11.c | ||
osx_common.h | ||
osx_common.m | ||
pnm_loader.c | ||
pnm_loader.h | ||
vo.c | ||
vo.h | ||
vo_caca.c | ||
vo_corevideo.h | ||
vo_corevideo.m | ||
vo_direct3d.c | ||
vo_image.c | ||
vo_lavc.c | ||
vo_null.c | ||
vo_opengl.c | ||
vo_opengl_old.c | ||
vo_opengl_shaders.glsl | ||
vo_sdl.c | ||
vo_vdpau.c | ||
vo_x11.c | ||
vo_xv.c | ||
w32_common.c | ||
w32_common.h | ||
wayland_common.c | ||
wayland_common.h | ||
x11_common.c | ||
x11_common.h |