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