diff options
author | wm4 <wm4@nowhere> | 2016-06-18 15:16:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-18 15:16:29 +0200 |
commit | 4a15bc6d737a34d232675ee6078813a84efe4d9c (patch) | |
tree | 79900e4fd903e3c9b1dc4b27918c2a724d4589d6 /video/out/opengl/common.h | |
parent | 9215a9e59889c7a2f600c618501ace1360bf810d (diff) | |
download | mpv-4a15bc6d737a34d232675ee6078813a84efe4d9c.tar.bz2 mpv-4a15bc6d737a34d232675ee6078813a84efe4d9c.tar.xz |
vo_opengl: add ability to render to an arbitrary backing framebuffer
Most of the functionality already exists for the sake of vo_opengl_cb.
We only have to use it.
This will be used by dxinterop in the following commit.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r-- | video/out/opengl/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index 7427befe99..71129ac320 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -91,6 +91,7 @@ struct GL { char *extensions; // Equivalent to GL_EXTENSIONS int mpgl_caps; // Bitfield of MPGL_CAP_* constants bool debug_context; // use of e.g. GLX_CONTEXT_DEBUG_BIT_ARB + GLuint main_fb; // framebuffer to render to (normally 0) void (GLAPIENTRY *Viewport)(GLint, GLint, GLsizei, GLsizei); void (GLAPIENTRY *Clear)(GLbitfield); |