Diligent Engine API Reference: D:/GitHub/DiligentEngine/DiligentCore/External/glew/auto/src/glxew_head.h Source File

Diligent Engine API Reference

glxew_head.h
1 #ifndef __glxew_h__
2 #define __glxew_h__
3 #define __GLXEW_H__
4
5 #ifdef __glxext_h_
6 #error glxext.h included before glxew.h
7 #endif
8
9 #if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__)
10 #error glx.h included before glxew.h
11 #endif
12
13 #define __glxext_h_
14
15 #define GLX_H
16 #define __GLX_glx_h__
17 #define __glx_h__
18
19 #include <X11/Xlib.h>
20 #include <X11/Xutil.h>
21 #include <X11/Xmd.h>
22 #include <GL/glew.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /* ---------------------------- GLX_VERSION_1_0 --------------------------- */
29
30 #ifndef GLX_VERSION_1_0
31 #define GLX_VERSION_1_0 1
32
33 #define GLX_USE_GL 1
34 #define GLX_BUFFER_SIZE 2
35 #define GLX_LEVEL 3
36 #define GLX_RGBA 4
37 #define GLX_DOUBLEBUFFER 5
38 #define GLX_STEREO 6
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
57
58 typedef XID GLXDrawable;
59 typedef XID GLXPixmap;
60 #ifdef __sun
61 typedef struct __glXContextRec *GLXContext;
62 #else
63 typedef struct __GLXcontextRec *GLXContext;
64 #endif
65
66 typedef unsigned int GLXVideoDeviceNV;
67
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);
85
86 #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
87
88 #endif /* GLX_VERSION_1_0 */
89
90 /* ---------------------------- GLX_VERSION_1_1 --------------------------- */
91
92 #ifndef GLX_VERSION_1_1
93 #define GLX_VERSION_1_1
94
95 #define GLX_VENDOR 0x1
96 #define GLX_VERSION 0x2
97 #define GLX_EXTENSIONS 0x3
98
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);
102
103 #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
104
105 #endif /* GLX_VERSION_1_1 */
106
Diligent::Bool
bool Bool
Boolean.
Definition: BasicTypes.h:46