6
#error glxext.h included before glxew.h
9
#error glx.h included before glxew.h
17
#include <X11/Xutil.h>
25
/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
27
#ifndef GLX_VERSION_1_0
28
#define GLX_VERSION_1_0 1
31
#define GLX_BUFFER_SIZE 2
34
#define GLX_DOUBLEBUFFER 5
36
#define GLX_AUX_BUFFERS 7
37
#define GLX_RED_SIZE 8
38
#define GLX_GREEN_SIZE 9
39
#define GLX_BLUE_SIZE 10
40
#define GLX_ALPHA_SIZE 11
41
#define GLX_DEPTH_SIZE 12
42
#define GLX_STENCIL_SIZE 13
43
#define GLX_ACCUM_RED_SIZE 14
44
#define GLX_ACCUM_GREEN_SIZE 15
45
#define GLX_ACCUM_BLUE_SIZE 16
46
#define GLX_ACCUM_ALPHA_SIZE 17
47
#define GLX_BAD_SCREEN 1
48
#define GLX_BAD_ATTRIBUTE 2
49
#define GLX_NO_EXTENSION 3
50
#define GLX_BAD_VISUAL 4
51
#define GLX_BAD_CONTEXT 5
52
#define GLX_BAD_VALUE 6
53
#define GLX_BAD_ENUM 7
55
typedef XID GLXDrawable;
56
typedef XID GLXPixmap;
58
typedef struct __glXContextRec *GLXContext;
60
typedef struct __GLXcontextRec *GLXContext;
63
extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
64
extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
65
extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
66
extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
67
extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
68
extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
69
extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
70
extern void glXDestroyContext (Display *dpy, GLXContext ctx);
71
extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
72
extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask);
73
extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
74
extern GLXContext glXGetCurrentContext (void);
75
extern GLXDrawable glXGetCurrentDrawable (void);
76
extern void glXWaitGL (void);
77
extern void glXWaitX (void);
78
extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
79
extern void glXUseXFont (Font font, int first, int count, int listBase);
81
#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
83
#endif /* GLX_VERSION_1_0 */
85
/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
87
#ifndef GLX_VERSION_1_1
88
#define GLX_VERSION_1_1
90
#define GLX_VENDOR 0x1
91
#define GLX_VERSION 0x2
92
#define GLX_EXTENSIONS 0x3
94
extern const char* glXQueryExtensionsString (Display *dpy, int screen);
95
extern const char* glXGetClientString (Display *dpy, int name);
96
extern const char* glXQueryServerString (Display *dpy, int screen, int name);
98
#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
100
#endif /* GLX_VERSION_1_1 */
6
#error glxext.h included before glxew.h
9
#error glx.h included before glxew.h
17
#include <X11/Xutil.h>
25
/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
27
#ifndef GLX_VERSION_1_0
28
#define GLX_VERSION_1_0 1
31
#define GLX_BUFFER_SIZE 2
34
#define GLX_DOUBLEBUFFER 5
36
#define GLX_AUX_BUFFERS 7
37
#define GLX_RED_SIZE 8
38
#define GLX_GREEN_SIZE 9
39
#define GLX_BLUE_SIZE 10
40
#define GLX_ALPHA_SIZE 11
41
#define GLX_DEPTH_SIZE 12
42
#define GLX_STENCIL_SIZE 13
43
#define GLX_ACCUM_RED_SIZE 14
44
#define GLX_ACCUM_GREEN_SIZE 15
45
#define GLX_ACCUM_BLUE_SIZE 16
46
#define GLX_ACCUM_ALPHA_SIZE 17
47
#define GLX_BAD_SCREEN 1
48
#define GLX_BAD_ATTRIBUTE 2
49
#define GLX_NO_EXTENSION 3
50
#define GLX_BAD_VISUAL 4
51
#define GLX_BAD_CONTEXT 5
52
#define GLX_BAD_VALUE 6
53
#define GLX_BAD_ENUM 7
55
typedef XID GLXDrawable;
56
typedef XID GLXPixmap;
58
typedef struct __glXContextRec *GLXContext;
60
typedef struct __GLXcontextRec *GLXContext;
63
typedef unsigned int GLXVideoDeviceNV;
65
extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
66
extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
67
extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
68
extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
69
extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
70
extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
71
extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
72
extern void glXDestroyContext (Display *dpy, GLXContext ctx);
73
extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
74
extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask);
75
extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
76
extern GLXContext glXGetCurrentContext (void);
77
extern GLXDrawable glXGetCurrentDrawable (void);
78
extern void glXWaitGL (void);
79
extern void glXWaitX (void);
80
extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
81
extern void glXUseXFont (Font font, int first, int count, int listBase);
83
#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
85
#endif /* GLX_VERSION_1_0 */
87
/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
89
#ifndef GLX_VERSION_1_1
90
#define GLX_VERSION_1_1
92
#define GLX_VENDOR 0x1
93
#define GLX_VERSION 0x2
94
#define GLX_EXTENSIONS 0x3
96
extern const char* glXQueryExtensionsString (Display *dpy, int screen);
97
extern const char* glXGetClientString (Display *dpy, int name);
98
extern const char* glXQueryServerString (Display *dpy, int screen, int name);
100
#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
102
#endif /* GLX_VERSION_1_1 */