~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355

« back to all changes in this revision

Viewing changes to auto/src/glxew_head.h

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-06-04 12:12:40 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090604121240-e0rh5kfvft8wh2b0
Tags: 1.5.1-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Build shared libraries with CC, not LD.
  - The debian Makefile had trailing '^M' characters; once sanitized
    the diff between the debian/ubuntu Makefile looks as follows:
    http://pastebin.ca/1447378

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
#ifdef GLX_H
9
 
#error glx.h included before glxew.h
10
 
#endif
11
 
 
12
 
#define __glxext_h_
13
 
#define __GLX_glx_h__
14
 
#define GLX_H
15
 
 
16
 
#include <X11/Xlib.h>
17
 
#include <X11/Xutil.h>
18
 
#include <X11/Xmd.h>
19
 
#include <GL/glew.h>
20
 
 
21
 
#ifdef __cplusplus
22
 
extern "C" {
23
 
#endif
24
 
 
25
 
/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
26
 
 
27
 
#ifndef GLX_VERSION_1_0
28
 
#define GLX_VERSION_1_0 1
29
 
 
30
 
#define GLX_USE_GL 1
31
 
#define GLX_BUFFER_SIZE 2
32
 
#define GLX_LEVEL 3
33
 
#define GLX_RGBA 4
34
 
#define GLX_DOUBLEBUFFER 5
35
 
#define GLX_STEREO 6
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
54
 
 
55
 
typedef XID GLXDrawable;
56
 
typedef XID GLXPixmap;
57
 
#ifdef __sun
58
 
typedef struct __glXContextRec *GLXContext;
59
 
#else
60
 
typedef struct __GLXcontextRec *GLXContext;
61
 
#endif
62
 
 
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);
80
 
 
81
 
#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
82
 
 
83
 
#endif /* GLX_VERSION_1_0 */
84
 
 
85
 
/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
86
 
 
87
 
#ifndef GLX_VERSION_1_1
88
 
#define GLX_VERSION_1_1
89
 
 
90
 
#define GLX_VENDOR 0x1
91
 
#define GLX_VERSION 0x2
92
 
#define GLX_EXTENSIONS 0x3
93
 
 
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);
97
 
 
98
 
#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
99
 
 
100
 
#endif /* GLX_VERSION_1_1 */
101
 
 
 
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
#ifdef GLX_H
 
9
#error glx.h included before glxew.h
 
10
#endif
 
11
 
 
12
#define __glxext_h_
 
13
#define __GLX_glx_h__
 
14
#define GLX_H
 
15
 
 
16
#include <X11/Xlib.h>
 
17
#include <X11/Xutil.h>
 
18
#include <X11/Xmd.h>
 
19
#include <GL/glew.h>
 
20
 
 
21
#ifdef __cplusplus
 
22
extern "C" {
 
23
#endif
 
24
 
 
25
/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
 
26
 
 
27
#ifndef GLX_VERSION_1_0
 
28
#define GLX_VERSION_1_0 1
 
29
 
 
30
#define GLX_USE_GL 1
 
31
#define GLX_BUFFER_SIZE 2
 
32
#define GLX_LEVEL 3
 
33
#define GLX_RGBA 4
 
34
#define GLX_DOUBLEBUFFER 5
 
35
#define GLX_STEREO 6
 
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
 
54
 
 
55
typedef XID GLXDrawable;
 
56
typedef XID GLXPixmap;
 
57
#ifdef __sun
 
58
typedef struct __glXContextRec *GLXContext;
 
59
#else
 
60
typedef struct __GLXcontextRec *GLXContext;
 
61
#endif
 
62
 
 
63
typedef unsigned int GLXVideoDeviceNV; 
 
64
 
 
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);
 
82
 
 
83
#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
 
84
 
 
85
#endif /* GLX_VERSION_1_0 */
 
86
 
 
87
/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
 
88
 
 
89
#ifndef GLX_VERSION_1_1
 
90
#define GLX_VERSION_1_1
 
91
 
 
92
#define GLX_VENDOR 0x1
 
93
#define GLX_VERSION 0x2
 
94
#define GLX_EXTENSIONS 0x3
 
95
 
 
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);
 
99
 
 
100
#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
 
101
 
 
102
#endif /* GLX_VERSION_1_1 */
 
103