diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2011-10-15 18:44:00 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-11-26 20:04:16 +0200 |
commit | 421c840b3c061de89b426244fe75237a73f765de (patch) | |
tree | 78306817be89c68a6f380078c5d278255e24f99b /libvo/cocoa_common.h | |
parent | 4a8ee6d9a4266589b25a817eb9fbc71a11704bc8 (diff) | |
download | mpv-421c840b3c061de89b426244fe75237a73f765de.tar.bz2 mpv-421c840b3c061de89b426244fe75237a73f765de.tar.xz |
vo_gl: add native mac osx Cocoa backend for vo_gl
Add native Cocoa code to display an OpenGL window. Some of the code is
based on the OpenGL parts of vo_corevideo but I took the time to remove
old code based on Carbon.
There is autodetection in the configure script but you can use
--enable[disable]-cocoa to enable[disable] this.
Diffstat (limited to 'libvo/cocoa_common.h')
-rw-r--r-- | libvo/cocoa_common.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libvo/cocoa_common.h b/libvo/cocoa_common.h new file mode 100644 index 0000000000..25027e1417 --- /dev/null +++ b/libvo/cocoa_common.h @@ -0,0 +1,20 @@ +#ifndef MPLAYER_COCOA_COMMON_H +#define MPLAYER_COCOA_COMMON_H + +#include "gl_common.h" + +int vo_cocoa_init(struct vo *vo); +void vo_cocoa_uninit(struct vo *vo); + +void vo_cocoa_update_xinerama_info(struct vo *vo); + +int vo_cocoa_change_attributes(struct MPGLContext *ctx); +int vo_cocoa_create_window(struct MPGLContext *ctx, uint32_t d_width, + uint32_t d_height, uint32_t flags, + const char *title); + +void vo_cocoa_swap_buffers(void); +int vo_cocoa_check_events(struct vo *vo); +void vo_cocoa_fullscreen(struct vo *vo); + +#endif /* MPLAYER_COCOA_COMMON_H */ |