From 95ab93d9f15f84271732bc785a72db846d2933dc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 May 2018 12:58:37 +0200 Subject: client API: some doxygen fixes/additions --- libmpv/render_gl.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'libmpv/render_gl.h') diff --git a/libmpv/render_gl.h b/libmpv/render_gl.h index 574be86ffd..44c445e427 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 this to -1 if invalid. @@ -171,6 +176,9 @@ typedef struct mpv_opengl_drm_params { struct _drmModeAtomicReq **atomic_request_ptr; } mpv_opengl_drm_params; +/** + * For MPV_RENDER_PARAM_DRM_OSD_SIZE. + */ typedef struct mpv_opengl_drm_osd_size { /** * size of the OSD in pixels. -- cgit v1.2.3