1 #ifndef MSP_GRAPHICS_COCOAGLCONTEXT_H_
2 #define MSP_GRAPHICS_COCOAGLCONTEXT_H_
4 #include "cocoapixelformat.h"
5 #include "cocoawindow.h"
11 struct _CocoaGLContext;
12 typedef struct _CocoaGLContext CocoaGLContext;
14 CocoaGLContext *create_gl_context(CocoaPixelFormat *);
15 void destroy_gl_context(CocoaGLContext *);
16 void attach_gl_context_to_window(CocoaGLContext *, CocoaWindow *);
17 void make_gl_context_current(CocoaGLContext *);
18 void flush_gl_buffer(CocoaGLContext *);