| 1 | #ifndef _LINUX_GL_H_ |
|---|
| 2 | #define _LINUX_GL_H_ |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | typedef XVisualInfo* (*PFNGLXCHOOSEVISUAL) (Display *dpy, int screen, int *attribList); |
|---|
| 8 | typedef GLXContext (*PFNGLXCREATECONTEXT) (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); |
|---|
| 9 | typedef void (*PFNGLXDESTROYCONTEXT) (Display *dpy, GLXContext ctx); |
|---|
| 10 | typedef Bool (*PFNGLXMAKECURRENT) (Display *dpy, GLXDrawable drawable, GLXContext ctx); |
|---|
| 11 | typedef void (*PFNGLXCOPYCONTEXT) (Display *dpy, GLXContext src, GLXContext dst, GLuint mask); |
|---|
| 12 | typedef void (*PFNGLXSWAPBUFFERS) (Display *dpy, GLXDrawable drawable); |
|---|
| 13 | typedef GLXPixmap (*PFNGLXCREATEGLXPIXMAP) (Display *dpy, XVisualInfo *visual, Pixmap pixmap); |
|---|
| 14 | typedef void (*PFNGLXDESTROYGLXPIXMAP) (Display *dpy, GLXPixmap pixmap); |
|---|
| 15 | typedef Bool (*PFNGLXQUERYEXTENSION) (Display *dpy, int *errorb, int *event); |
|---|
| 16 | typedef Bool (*PFNGLXQUERYVERSION) (Display *dpy, int *maj, int *min); |
|---|
| 17 | typedef Bool (*PFNGLXISDIRECT) (Display *dpy, GLXContext ctx); |
|---|
| 18 | typedef int (*PFNGLXGETCONFIG) (Display *dpy, XVisualInfo *visual, int attrib, int *value); |
|---|
| 19 | typedef GLXContext (*PFNGLXGETCURRENTCONTEXT) (void); |
|---|
| 20 | typedef GLXDrawable (*PFNGLXGETCURRENTDRAWABLE) (void); |
|---|
| 21 | typedef void (*PFNGLXWAITGL) (void); |
|---|
| 22 | typedef void (*PFNGLXWAITX) (void); |
|---|
| 23 | typedef void (*PFNGLXUSEXFONT) (Font font, int first, int count, int list); |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | typedef const char* (*PFNGLXQUERYEXTENSIONSSTRING) (Display *dpy, int screen); |
|---|
| 27 | typedef const char* (*PFNGLXQUERYSERVERSTRING) (Display *dpy, int screen, int name); |
|---|
| 28 | typedef const char* (*PFNGLXGETCLIENTSTRING) (Display *dpy, int name); |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | typedef GLXPixmap (*PFNGLXCREATEGLXPIXMAPMESA) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | typedef Bool (*PFNGLXRELEASEBUFFERSMESA) (Display *dpy, GLXDrawable d); |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | typedef void (*PFNGLXCOPYSUBBUFFERMESA) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | typedef GLboolean (*PFNGLXSET3DFXMODEMESA) (GLint mode); |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | typedef int (*PFNGLXGETVIDEOSYNCSGI) (unsigned int *count); |
|---|
| 44 | typedef int (*PFNGLXWAITVIDEOSYNCSGI) (int divisor, int remainder, unsigned int *count); |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | typedef void* (*PFNGLXGETPROCADDRESSARB) (const GLubyte *procName); |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | extern PFNGLXCHOOSEVISUAL pfnglXChooseVisual; |
|---|
| 54 | extern PFNGLXCREATECONTEXT pfnglXCreateContext; |
|---|
| 55 | extern PFNGLXDESTROYCONTEXT pfnglXDestroyContext; |
|---|
| 56 | extern PFNGLXMAKECURRENT pfnglXMakeCurrent; |
|---|
| 57 | extern PFNGLXCOPYCONTEXT pfnglXCopyContext; |
|---|
| 58 | extern PFNGLXSWAPBUFFERS pfnglXSwapBuffers; |
|---|
| 59 | extern PFNGLXCREATEGLXPIXMAP pfnglXCreateGLXPixmap; |
|---|
| 60 | extern PFNGLXDESTROYGLXPIXMAP pfnglXDestroyGLXPixmap; |
|---|
| 61 | extern PFNGLXQUERYEXTENSION pfnglXQueryExtension; |
|---|
| 62 | extern PFNGLXQUERYVERSION pfnglXQueryVersion; |
|---|
| 63 | extern PFNGLXISDIRECT pfnglXIsDirect; |
|---|
| 64 | extern PFNGLXGETCONFIG pfnglXGetConfig; |
|---|
| 65 | extern PFNGLXGETCURRENTCONTEXT pfnglXGetCurrentContext; |
|---|
| 66 | extern PFNGLXGETCURRENTDRAWABLE pfnglXGetCurrentDrawable; |
|---|
| 67 | extern PFNGLXWAITGL pfnglXWaitGL; |
|---|
| 68 | extern PFNGLXWAITX pfnglXWaitX; |
|---|
| 69 | extern PFNGLXUSEXFONT pfnglXUseXFont; |
|---|
| 70 | extern PFNGLXQUERYEXTENSIONSSTRING pfnglXQueryExtensionsString; |
|---|
| 71 | extern PFNGLXQUERYSERVERSTRING pfnglXQueryServerString; |
|---|
| 72 | extern PFNGLXGETCLIENTSTRING pfnglXGetClientString; |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | extern PFNGLXGETPROCADDRESSARB pfnglXGetProcAddressARB; |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | #define glXChooseVisual pfnglXChooseVisual; |
|---|
| 86 | #define glXCreateContext pfnglXCreateContext; |
|---|
| 87 | #define glXDestroyContext pfnglXDestroyContext; |
|---|
| 88 | #define glXMakeCurrent pfnglXMakeCurrent; |
|---|
| 89 | #define glXCopyContext pfnglXCopyContext; |
|---|
| 90 | #define glXSwapBuffers pfnglXSwapBuffers; |
|---|
| 91 | #define glXCreateGLXPixmap pfnglXCreateGLXPixmap; |
|---|
| 92 | #define glXDestroyGLXPixmap pfnglXDestroyGLXPixmap; |
|---|
| 93 | #define glXQueryExtension pfnglXQueryExtension; |
|---|
| 94 | #define glXQueryVersion pfnglXQueryVersion; |
|---|
| 95 | #define glXIsDirect pfnglXIsDirect; |
|---|
| 96 | #define glXGetConfig pfnglXGetConfig; |
|---|
| 97 | #define glXGetCurrentContext pfnglXGetCurrentContext; |
|---|
| 98 | #define glXGetCurrentDrawable pfnglXGetCurrentDrawable; |
|---|
| 99 | #define glXWaitGL pfnglXWaitGL; |
|---|
| 100 | #define glXWaitX pfnglXWaitX; |
|---|
| 101 | #define glXUseXFont pfnglXUseXFont; |
|---|
| 102 | #define glXQueryExtensionsString pfnglXQueryExtensionsString; |
|---|
| 103 | #define glXQueryServerString pfnglXQueryServerString; |
|---|
| 104 | #define glXGetClientString pfnglXGetClientString; |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | #define glXGetProcAddressARB pfnglXGetProcAddressARB; |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | #endif // _LINUX_GL_H_ |
|---|