#include #include #include #include @interface Window : NSWindow @end @interface Controller : NSWindowController @end @interface View : NSOpenGLView { @public Window* wnd; CVDisplayLinkRef dl; NSOpenGLContext* glctx; _CGLContextObject* cgl; bool gl_ready; } - (void)close; - (void)terminateGL; - (void)async_lock; - (void)async_unlock; - (void)async_swap; - (std::string)pick_file; @end