-
Notifications
You must be signed in to change notification settings - Fork 8
/
CGLTypes.h
53 lines (45 loc) · 1.1 KB
/
CGLTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifdef __cplusplus
#if defined(__WIN32__)
#if defined(CGL_INSIDE_BUILD)
#define CGL_EXPORT extern "C" __declspec(dllexport)
#else
#define CGL_EXPORT extern "C" __declspec(dllimport)
#endif
#else
#define CGL_EXPORT extern "C"
#endif
#else
#if defined(__WIN32__)
#if defined(CGL_INSIDE_BUILD)
#define CGL_EXPORT __declspec(dllexport) extern
#else
#define CGL_EXPORT __declspec(dllimport) extern
#endif
#else
#define CGL_EXPORT extern
#endif
#endif // __cplusplus
typedef enum {
kCGLNoError=0,
kCGLBadAttribute=10000,
kCGLBadProperty=10001,
kCGLBadPixelFormat=10002,
kCGLBadRendererInfo=10003,
kCGLBadContext=10004,
kCGLBadDrawable=10005,
kCGLBadDisplay=10006,
kCGLBadState=10007,
kCGLBadValue=10008,
kCGLBadMatch=10009,
kCGLBadEnumeration=10010,
kCGLBadOffScreen=10011,
kCGLBadFullScreen=10012,
kCGLBadWindow=10013,
kCGLBadAddress=10014,
kCGLBadCodeModule=10015,
kCGLBadAlloc=10016,
kCGLBadConnection=10017,
} CGLError;
typedef struct CGLContextObj *CGLContextObj;
typedef struct CGLPixelFormatObj *CGLPixelFormatObj;
typedef struct CGLPBufferObj *CGLPBufferObj;