mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
b2a41e20be
Currently there is no way to set the swap interval with a function that has a signature compatible with other platforms' gl extensions. Make a wrapper function around the gui toolkit method of setting the swap interval property, and point gl->SwapInterval to it.
23 lines
649 B
C
23 lines
649 B
C
#ifndef MPLAYER_COCOA_COMMON_H
|
|
#define MPLAYER_COCOA_COMMON_H
|
|
|
|
#include "video_out.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 vo *vo);
|
|
int vo_cocoa_create_window(struct vo *vo, uint32_t d_width,
|
|
uint32_t d_height, uint32_t flags);
|
|
|
|
void vo_cocoa_swap_buffers(void);
|
|
int vo_cocoa_check_events(struct vo *vo);
|
|
void vo_cocoa_fullscreen(struct vo *vo);
|
|
|
|
// returns an int to conform to the gl extensions from other platforms
|
|
int vo_cocoa_swap_interval(int enabled);
|
|
|
|
#endif /* MPLAYER_COCOA_COMMON_H */
|