zenilib: zenilib/jni/external/glew/auto/src/glxew_head.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
glxew_head.h
Go to the documentation of this file.
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
GLXVideoDeviceNV
unsigned int GLXVideoDeviceNV
Definition: glxew_head.h:66
glXCreateContext
#define glXCreateContext
Definition: glx_mangle.h:30
glXGetCurrentDrawable
#define glXGetCurrentDrawable
Definition: glx_mangle.h:42
GLXContext
struct __GLXcontextRec * GLXContext
Definition: glxew_head.h:63
glXCopyContext
#define glXCopyContext
Definition: glx_mangle.h:33
glXQueryExtension
#define glXQueryExtension
Definition: glx_mangle.h:37
glXMakeCurrent
#define glXMakeCurrent
Definition: glx_mangle.h:32
glXQueryExtensionsString
#define glXQueryExtensionsString
Definition: glx_mangle.h:46
glXSwapBuffers
#define glXSwapBuffers
Definition: glx_mangle.h:34
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
glXIsDirect
#define glXIsDirect
Definition: glx_mangle.h:39
glXQueryServerString
#define glXQueryServerString
Definition: glx_mangle.h:47
glXGetCurrentContext
#define glXGetCurrentContext
Definition: glx_mangle.h:41
glXCreateGLXPixmap
#define glXCreateGLXPixmap
Definition: glx_mangle.h:35
first
GLint first
Definition: gl2ext.h:1011
dst
GLenum GLenum dst
Definition: glew.h:2396
count
GLint GLsizei count
Definition: gl2ext.h:1011
GLXPixmap
XID GLXPixmap
Definition: glxew_head.h:59
GLXDrawable
XID GLXDrawable
Definition: glxew_head.h:58
glXGetConfig
#define glXGetConfig
Definition: glx_mangle.h:40
glXDestroyContext
#define glXDestroyContext
Definition: glx_mangle.h:31
glXWaitGL
#define glXWaitGL
Definition: glx_mangle.h:43
value
EGLSurface EGLint void ** value
Definition: eglext.h:301
pixmap
EGLConfig struct EGLClientPixmapHI * pixmap
Definition: eglext.h:257
GLulong
unsigned long GLulong
Definition: glew_head.h:202
glXUseXFont
#define glXUseXFont
Definition: glx_mangle.h:45
glXDestroyGLXPixmap
#define glXDestroyGLXPixmap
Definition: glx_mangle.h:36
mask
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition: gl2ext.h:961
glXGetClientString
#define glXGetClientString
Definition: glx_mangle.h:48
src
GLenum src
Definition: glew.h:2396
Bool
char Bool
Definition: ftraster.c:307
attribList
HGLRC const int * attribList
Definition: wglew.h:139
glXQueryVersion
#define glXQueryVersion
Definition: glx_mangle.h:38
glXChooseVisual
#define glXChooseVisual
Definition: glx_mangle.h:29
glXWaitX
#define glXWaitX
Definition: glx_mangle.h:44
vis
XVisualInfo * vis
Definition: glewinfo_tail.c:222
dpy
Display * dpy
Definition: glewinfo_tail.c:220
ctx
EGLContext ctx
Definition: eglext.h:87