#include #include #include #include @interface View : NSOpenGLView { CVDisplayLinkRef dl; NSOpenGLContext* glctx; _CGLContextObject* cgl; bool gl_ready; } - (void)terminateGL; - (void)async_lock; - (void)async_unlock; - (void)async_swap; @end