4 * This file is part of mplayer2.
6 * mplayer2 is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * mplayer2 is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with mplayer2. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef MPLAYER_COCOA_COMMON_H
21 #define MPLAYER_COCOA_COMMON_H
23 #include "video_out.h"
25 struct vo_cocoa_state
;
27 bool vo_cocoa_gui_running(void);
28 void *vo_cocoa_glgetaddr(const char *s
);
30 int vo_cocoa_init(struct vo
*vo
);
31 void vo_cocoa_uninit(struct vo
*vo
);
33 void vo_cocoa_update_xinerama_info(struct vo
*vo
);
35 int vo_cocoa_change_attributes(struct vo
*vo
);
36 int vo_cocoa_create_window(struct vo
*vo
, uint32_t d_width
,
37 uint32_t d_height
, uint32_t flags
,
40 void vo_cocoa_swap_buffers(struct vo
*vo
);
41 int vo_cocoa_check_events(struct vo
*vo
);
42 void vo_cocoa_fullscreen(struct vo
*vo
);
43 void vo_cocoa_ontop(struct vo
*vo
);
44 void vo_cocoa_pause(struct vo
*vo
);
45 void vo_cocoa_resume(struct vo
*vo
);
47 // returns an int to conform to the gl extensions from other platforms
48 int vo_cocoa_swap_interval(int enabled
);
50 void *vo_cocoa_cgl_context(struct vo
*vo
);
51 void *vo_cocoa_cgl_pixel_format(struct vo
*vo
);
53 int vo_cocoa_cgl_color_size(struct vo
*vo
);
55 #endif /* MPLAYER_COCOA_COMMON_H */