summaryrefslogtreecommitdiffstats
path: root/libmpv/render_gl.h
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2018-12-05 19:02:03 +0100
committerAnton Kindestam <antonki@kth.se>2018-12-05 19:19:24 +0100
commit8b83c8996686072bc743b112ae5cb3bf93aa33ed (patch)
treeb09ce6a7ff470b05006622f19914b3d39d2f7d9f /libmpv/render_gl.h
parent5bcac8580df6fc62323136f756a3a6d1e754fe9c (diff)
parent559a400ac36e75a8d73ba263fd7fa6736df1c2da (diff)
downloadmpv-8b83c8996686072bc743b112ae5cb3bf93aa33ed.tar.bz2
mpv-8b83c8996686072bc743b112ae5cb3bf93aa33ed.tar.xz
Merge commit '559a400ac36e75a8d73ba263fd7fa6736df1c2da' into wm4-commits--merge-edition
This bumps libmpv version to 1.103
Diffstat (limited to 'libmpv/render_gl.h')
-rw-r--r--libmpv/render_gl.h18
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.