summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-02 18:43:45 +0200
committerwm4 <wm4@nowhere>2015-10-02 18:49:35 +0200
commite72ca08554f5e32940897081f6a666dcee29d68f (patch)
tree0e312b0b99af262e554ce6ed1f907d6ef6a91521 /video/out/opengl/common.h
parente87f7054979a1014e11b804b46dbfd0291728419 (diff)
downloadmpv-e72ca08554f5e32940897081f6a666dcee29d68f.tar.bz2
mpv-e72ca08554f5e32940897081f6a666dcee29d68f.tar.xz
vo_opengl: drop old backend API
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index dbae77c3f9..1da095db44 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -76,9 +76,7 @@ enum {
struct MPGLContext;
-// A backend (like X11, win32, ...), which provides OpenGL rendering.
-// This should be preferred for new code, instead of setting the callbacks
-// in MPGLContext directly.
+// A windowing backend (like X11, win32, ...), which provides OpenGL rendering.
struct mpgl_driver {
const char *name;
@@ -124,19 +122,6 @@ typedef struct MPGLContext {
// For free use by the mpgl_driver.
void *priv;
-
- // Warning: all callbacks below are legacy. Newer code should use
- // a mpgl_driver struct, which replaces these callbacks.
-
- void (*swapGlBuffers)(struct MPGLContext *);
- int (*vo_init)(struct vo *vo);
- void (*vo_uninit)(struct vo *vo);
- int (*vo_control)(struct vo *vo, int *events, int request, void *arg);
- void (*releaseGlContext)(struct MPGLContext *);
-
- // Resize the window, or create a new window if there isn't one yet.
- // On the first call, it creates a GL context.
- bool (*config_window)(struct MPGLContext *ctx, int flags);
} MPGLContext;
MPGLContext *mpgl_init(struct vo *vo, const char *backend_name, int vo_flags);