diff options
Diffstat (limited to 'libmpv/render_gl.h')
-rw-r--r-- | libmpv/render_gl.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libmpv/render_gl.h b/libmpv/render_gl.h index 690b126906..69bec75c47 100644 --- a/libmpv/render_gl.h +++ b/libmpv/render_gl.h @@ -107,11 +107,13 @@ typedef struct mpv_opengl_init_params { /** * This retrieves OpenGL function pointers, and will use them in subsequent * operation. - * Usually, GL context APIs do this for you (e.g. with glXGetProcAddressARB - * or wglGetProcAddress), but some APIs do not always return pointers for - * all standard functions (even if present); in this case you have to - * compensate by looking up these functions yourself and returning them - * from this callback. + * Usually, you can simply call the GL context APIs from this callback (e.g. + * glXGetProcAddressARB or wglGetProcAddress), but some APIs do not always + * return pointers for all standard functions (even if present); in this + * case you have to compensate by looking up these functions yourself when + * libmpv wants to resolve them through this callback. + * libmpv will not normally attempt to resolve GL functions on its own, nor + * does it link to GL libraries directly. */ void *(*get_proc_address)(void *ctx, const char *name); /** @@ -147,6 +149,9 @@ typedef struct mpv_opengl_fbo { int internal_format; } mpv_opengl_fbo; +/** + * For MPV_RENDER_PARAM_DRM_DISPLAY. + */ typedef struct mpv_opengl_drm_params { /** * DRM fd (int). Set to a negative number if invalid. @@ -177,6 +182,9 @@ typedef struct mpv_opengl_drm_params { int render_fd; } mpv_opengl_drm_params; +/** + * For MPV_RENDER_PARAM_DRM_DRAW_SURFACE_SIZE. + */ typedef struct mpv_opengl_drm_draw_surface_size { /** * size of the draw plane surface in pixels. |