1 // Defult use-case for exporting symbols
3 #define _COREGL_SYMBOL_NOT_DEFINED
4 #define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) extern RET_TYPE (*_COREGL_NAME_MANGLE(FUNC_NAME)) PARAM_LIST;
6 #ifndef _COREGL_EXT_SYMBOL
7 #define _COREGL_EXT_SYMBOL_NOT_DEFINED
8 #define _COREGL_EXT_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST)
11 _COREGL_SYMBOL(_eng_fn, glXGetProcAddress, (const char *procName))
13 // Standard GL(glX) functions
14 _COREGL_SYMBOL(XVisualInfo *, glXChooseVisual, (Display *dpy, int screen,
16 _COREGL_SYMBOL(GLXContext, glXCreateContext, (Display *dpy, XVisualInfo *vis,
17 GLXContext shareList, Bool direct))
18 _COREGL_SYMBOL(void, glXDestroyContext, (Display *dpy, GLXContext ctx))
19 _COREGL_SYMBOL(GLXContext, glXGetCurrentContext, (void))
20 _COREGL_SYMBOL(GLXDrawable, glXGetCurrentDrawable, (void))
21 _COREGL_SYMBOL(Bool, glXMakeCurrent, (Display *dpy, GLXDrawable draw,
23 _COREGL_SYMBOL(void, glXSwapBuffers, (Display *dpy, GLXDrawable draw))
24 _COREGL_SYMBOL(void, glXWaitX, (void))
25 _COREGL_SYMBOL(void, glXWaitGL, (void))
26 _COREGL_SYMBOL(Bool, glXQueryExtension, (Display *dpy, int *errorb, int *event))
27 _COREGL_SYMBOL(const char *, glXQueryExtensionsString, (Display *dpy,
30 _COREGL_SYMBOL(GLXFBConfig *, glXChooseFBConfig, (Display *dpy, int screen,
31 const int *attribList, int *nitems))
32 _COREGL_SYMBOL(GLXFBConfig *, glXGetFBConfigs, (Display *dpy, int screen,
34 _COREGL_SYMBOL(int, glXGetFBConfigAttrib, (Display *dpy, GLXFBConfig config,
35 int attribute, int *value))
36 _COREGL_SYMBOL(XVisualInfo *, glXGetVisualFromFBConfig, (Display *dpy,
38 _COREGL_SYMBOL(void, glXDestroyWindow, (Display *dpy, GLXWindow window))
39 _COREGL_SYMBOL(Bool, glXMakeContextCurrent, (Display *dpy, GLXDrawable draw,
40 GLXDrawable read, GLXContext ctx))
42 _COREGL_SYMBOL(void, glXBindTexImage, (Display *dpy, GLXDrawable draw,
43 int buffer, int *attribList))
44 _COREGL_SYMBOL(void, glXReleaseTexImage, (Display *dpy, GLXDrawable draw,
46 _COREGL_SYMBOL(int, glXGetVideoSync, (unsigned int *count))
47 _COREGL_SYMBOL(int, glXWaitVideoSync, (int divisor, int remainder,
49 _COREGL_SYMBOL(XID, glXCreatePixmap, (Display *dpy, void *config, Pixmap pixmap,
50 const int *attribList))
51 _COREGL_SYMBOL(void, glXDestroyPixmap, (Display *dpy, XID pixmap))
52 _COREGL_SYMBOL(void, glXQueryDrawable, (Display *dpy, XID draw, int attribute,
54 _COREGL_SYMBOL(int, glXSwapIntervalSGI, (int interval))
55 _COREGL_SYMBOL(void, glXSwapIntervalEXT, (Display *dpy, GLXDrawable draw,
58 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
59 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
60 #undef _COREGL_EXT_SYMBOL
63 #ifdef _COREGL_SYMBOL_NOT_DEFINED
64 #undef _COREGL_SYMBOL_NOT_DEFINED