From b5bbb49a1af7b0b167987f3b638d99baeb6a36bf Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Jul 2014 08:17:15 +0200 Subject: 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. --- video/out/cocoa_common.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'video/out/cocoa_common.h') 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 */ -- cgit v1.2.3