summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-07-08 08:17:15 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-07-08 21:06:57 +0200
commitb5bbb49a1af7b0b167987f3b638d99baeb6a36bf (patch)
tree8d3b62912b9989c14a2e3f47d635ee46cee71262 /video/out/cocoa_common.h
parent469ec23f852b97425c4d810ce030316c6efbdd35 (diff)
downloadmpv-b5bbb49a1af7b0b167987f3b638d99baeb6a36bf.tar.bz2
mpv-b5bbb49a1af7b0b167987f3b638d99baeb6a36bf.tar.xz
cocoa: move CGL context creation to gl_cocoa
This approach is similar to what other vo_opengl backends do. It can also be used in the future to create another cocoa backend that renders offscreen with IOSurfaces or FBOs.
Diffstat (limited to 'video/out/cocoa_common.h')
-rw-r--r--video/out/cocoa_common.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/cocoa_common.h b/video/out/cocoa_common.h
index e0696eb24a..8e59ab6764 100644
--- a/video/out/cocoa_common.h
+++ b/video/out/cocoa_common.h
@@ -29,7 +29,7 @@ void *vo_cocoa_glgetaddr(const char *s);
int vo_cocoa_init(struct vo *vo);
void vo_cocoa_uninit(struct vo *vo);
-int vo_cocoa_config_window(struct vo *vo, uint32_t flags, int gl3profile);
+int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx);
void vo_cocoa_set_current_context(struct vo *vo, bool current);
void vo_cocoa_swap_buffers(struct vo *vo);
@@ -42,11 +42,10 @@ void vo_cocoa_register_resize_callback(struct vo *vo,
void vo_cocoa_register_gl_clear_callback(struct vo *vo, void *ctx,
void (*cb)(void *ctx));
-// returns an int to conform to the gl extensions from other platforms
-int vo_cocoa_swap_interval(int enabled);
-
void *vo_cocoa_cgl_context(struct vo *vo);
void *vo_cocoa_cgl_pixel_format(struct vo *vo);
-int vo_cocoa_cgl_color_size(struct vo *vo);
+
+void vo_cocoa_create_nsgl_ctx(struct vo *vo, void *ctx);
+void vo_cocoa_release_nsgl_ctx(struct vo *vo);
#endif /* MPLAYER_COCOA_COMMON_H */