]> git.tdb.fi Git - libs/gui.git/blob - cocoaglcontext.h
4a1fcca7130fb19b38e4ff10d81d57b0c01314af
[libs/gui.git] / 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