]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/cgl/cocoaglcontext.h
Add OpenGL context support on OS X
[libs/gui.git] / source / graphics / cgl / cocoaglcontext.h
1 #ifndef MSP_GRAPHICS_COCOAGLCONTEXT_H_
2 #define MSP_GRAPHICS_COCOAGLCONTEXT_H_
3
4 #include "cocoapixelformat.h"
5 #include "cocoawindow.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 struct _CocoaGLContext;
12 typedef struct _CocoaGLContext CocoaGLContext;
13
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 *);
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif