]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/cgl/cocoapixelformat.h
Add OpenGL context support on OS X
[libs/gui.git] / source / graphics / cgl / cocoapixelformat.h
1 #ifndef MSP_GRAPHICS_COCOAPIXELFORMAT_H_
2 #define MSP_GRAPHICS_COCOAPIXELFORMAT_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 enum
9 {
10         CPF_DOUBLEBUFFER = 5,
11         CPF_ALPHA_SIZE = 11,
12         CPF_DEPTH_SIZE = 12,
13         CPF_STENCIL_SIZE = 13,
14         CPF_SAMPLE_BUFFERS = 55,
15         CPF_SAMPLES = 56
16 };
17
18 struct _CocoaPixelFormat;
19 typedef struct _CocoaPixelFormat CocoaPixelFormat;
20
21 CocoaPixelFormat *choose_pixel_format(unsigned *);
22 void destroy_pixel_format(CocoaPixelFormat *);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif