diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-02 04:04:44 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-10-24 07:19:29 +0300 |
commit | 3eeca4838dfe50fe5fdf32167636a1d05f1e5e39 (patch) | |
tree | 7fd7747c03f8c9feb53127be5940755bed802070 /libvo/gl_common.h | |
parent | f045abb4c06c66dd7ee751d4f4c0de40cf1bc810 (diff) | |
download | mpv-3eeca4838dfe50fe5fdf32167636a1d05f1e5e39.tar.bz2 mpv-3eeca4838dfe50fe5fdf32167636a1d05f1e5e39.tar.xz |
vo_gl: move window creation functions from vo_gl.c into gl_common.c
Now all windowing specific code is in gl_common.c.
init_mpglcontext() used to set dummy callbacks for non-optional windowing
callbacks. Remove these, as they only lead to confusion.
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r-- | libvo/gl_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h index d7fb80252f..38e766f7b5 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -431,6 +431,8 @@ typedef struct MPGLContext { GLXContext x11; #endif } context; + int (*create_window)(struct MPGLContext *ctx, uint32_t d_width, + uint32_t d_height, uint32_t flags, const char *title); int (*setGlWindow)(struct MPGLContext *); void (*releaseGlContext)(struct MPGLContext *); void (*swapGlBuffers)(struct MPGLContext *); |