|
kusano |
7d535a |
#ifndef __glxew_h__
|
|
kusano |
7d535a |
#define __glxew_h__
|
|
kusano |
7d535a |
#define __GLXEW_H__
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#ifdef __glxext_h_
|
|
kusano |
7d535a |
#error glxext.h included before glxew.h
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__)
|
|
kusano |
7d535a |
#error glx.h included before glxew.h
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define __glxext_h_
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GLX_H
|
|
kusano |
7d535a |
#define __GLX_glx_h__
|
|
kusano |
7d535a |
#define __glx_h__
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#include <x11 xlib.h=""></x11>
|
|
kusano |
7d535a |
#include <x11 xutil.h=""></x11>
|
|
kusano |
7d535a |
#include <x11 xmd.h=""></x11>
|
|
kusano |
7d535a |
#include <gl glew.h=""></gl>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#ifdef __cplusplus
|
|
kusano |
7d535a |
extern "C" {
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#ifndef GLX_VERSION_1_0
|
|
kusano |
7d535a |
#define GLX_VERSION_1_0 1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GLX_USE_GL 1
|
|
kusano |
7d535a |
#define GLX_BUFFER_SIZE 2
|
|
kusano |
7d535a |
#define GLX_LEVEL 3
|
|
kusano |
7d535a |
#define GLX_RGBA 4
|
|
kusano |
7d535a |
#define GLX_DOUBLEBUFFER 5
|
|
kusano |
7d535a |
#define GLX_STEREO 6
|
|
kusano |
7d535a |
#define GLX_AUX_BUFFERS 7
|
|
kusano |
7d535a |
#define GLX_RED_SIZE 8
|
|
kusano |
7d535a |
#define GLX_GREEN_SIZE 9
|
|
kusano |
7d535a |
#define GLX_BLUE_SIZE 10
|
|
kusano |
7d535a |
#define GLX_ALPHA_SIZE 11
|
|
kusano |
7d535a |
#define GLX_DEPTH_SIZE 12
|
|
kusano |
7d535a |
#define GLX_STENCIL_SIZE 13
|
|
kusano |
7d535a |
#define GLX_ACCUM_RED_SIZE 14
|
|
kusano |
7d535a |
#define GLX_ACCUM_GREEN_SIZE 15
|
|
kusano |
7d535a |
#define GLX_ACCUM_BLUE_SIZE 16
|
|
kusano |
7d535a |
#define GLX_ACCUM_ALPHA_SIZE 17
|
|
kusano |
7d535a |
#define GLX_BAD_SCREEN 1
|
|
kusano |
7d535a |
#define GLX_BAD_ATTRIBUTE 2
|
|
kusano |
7d535a |
#define GLX_NO_EXTENSION 3
|
|
kusano |
7d535a |
#define GLX_BAD_VISUAL 4
|
|
kusano |
7d535a |
#define GLX_BAD_CONTEXT 5
|
|
kusano |
7d535a |
#define GLX_BAD_VALUE 6
|
|
kusano |
7d535a |
#define GLX_BAD_ENUM 7
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef XID GLXDrawable;
|
|
kusano |
7d535a |
typedef XID GLXPixmap;
|
|
kusano |
7d535a |
#ifdef __sun
|
|
kusano |
7d535a |
typedef struct __glXContextRec *GLXContext;
|
|
kusano |
7d535a |
#else
|
|
kusano |
7d535a |
typedef struct __GLXcontextRec *GLXContext;
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef unsigned int GLXVideoDeviceNV;
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
|
|
kusano |
7d535a |
extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
|
|
kusano |
7d535a |
extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
|
|
kusano |
7d535a |
extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
|
|
kusano |
7d535a |
extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
|
|
kusano |
7d535a |
extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
|
|
kusano |
7d535a |
extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
|
|
kusano |
7d535a |
extern void glXDestroyContext (Display *dpy, GLXContext ctx);
|
|
kusano |
7d535a |
extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
|
|
kusano |
7d535a |
extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask);
|
|
kusano |
7d535a |
extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
|
|
kusano |
7d535a |
extern GLXContext glXGetCurrentContext (void);
|
|
kusano |
7d535a |
extern GLXDrawable glXGetCurrentDrawable (void);
|
|
kusano |
7d535a |
extern void glXWaitGL (void);
|
|
kusano |
7d535a |
extern void glXWaitX (void);
|
|
kusano |
7d535a |
extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
|
|
kusano |
7d535a |
extern void glXUseXFont (Font font, int first, int count, int listBase);
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#endif /* GLX_VERSION_1_0 */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#ifndef GLX_VERSION_1_1
|
|
kusano |
7d535a |
#define GLX_VERSION_1_1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GLX_VENDOR 0x1
|
|
kusano |
7d535a |
#define GLX_VERSION 0x2
|
|
kusano |
7d535a |
#define GLX_EXTENSIONS 0x3
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
extern const char* glXQueryExtensionsString (Display *dpy, int screen);
|
|
kusano |
7d535a |
extern const char* glXGetClientString (Display *dpy, int name);
|
|
kusano |
7d535a |
extern const char* glXQueryServerString (Display *dpy, int screen, int name);
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#endif /* GLX_VERSION_1_1 */
|
|
kusano |
7d535a |
|