tizen 2.4 release
[framework/graphics/coregl.git] / src / headers / sym_glx.h
1 // Defult use-case for exporting symbols
2 #ifndef _COREGL_SYMBOL
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;
5 #endif
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)
9 #endif
10
11 _COREGL_SYMBOL(_eng_fn, glXGetProcAddress, (const char* procName))
12
13 // Standard GL(glX) functions
14 _COREGL_SYMBOL(XVisualInfo*, glXChooseVisual, (Display* dpy, int screen, int* attribList))
15 _COREGL_SYMBOL(GLXContext, glXCreateContext, (Display* dpy, XVisualInfo* vis, GLXContext shareList, Bool direct))
16 _COREGL_SYMBOL(void, glXDestroyContext, (Display* dpy, GLXContext ctx))
17 _COREGL_SYMBOL(GLXContext, glXGetCurrentContext, (void))
18 _COREGL_SYMBOL(GLXDrawable, glXGetCurrentDrawable, (void))
19 _COREGL_SYMBOL(Bool, glXMakeCurrent, (Display* dpy, GLXDrawable draw, GLXContext ctx))
20 _COREGL_SYMBOL(void, glXSwapBuffers, (Display* dpy, GLXDrawable draw))
21 _COREGL_SYMBOL(void, glXWaitX, (void))
22 _COREGL_SYMBOL(void, glXWaitGL, (void))
23 _COREGL_SYMBOL(Bool, glXQueryExtension, (Display* dpy, int* errorb, int* event))
24 _COREGL_SYMBOL(const char*, glXQueryExtensionsString, (Display *dpy, int screen))
25
26 _COREGL_SYMBOL(GLXFBConfig*, glXChooseFBConfig, (Display* dpy, int screen, const int* attribList, int* nitems))
27 _COREGL_SYMBOL(GLXFBConfig*, glXGetFBConfigs, (Display* dpy, int screen, int* nelements))
28 _COREGL_SYMBOL(int, glXGetFBConfigAttrib, (Display* dpy, GLXFBConfig config, int attribute, int* value))
29 _COREGL_SYMBOL(XVisualInfo*, glXGetVisualFromFBConfig, (Display* dpy, GLXFBConfig config))
30 _COREGL_SYMBOL(void, glXDestroyWindow, (Display* dpy, GLXWindow window))
31 _COREGL_SYMBOL(Bool, glXMakeContextCurrent, (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx))
32
33 _COREGL_SYMBOL(void, glXBindTexImage, (Display* dpy, GLXDrawable draw, int buffer, int* attribList))
34 _COREGL_SYMBOL(void, glXReleaseTexImage, (Display* dpy, GLXDrawable draw, int buffer))
35 _COREGL_SYMBOL(int, glXGetVideoSync, (unsigned int* count))
36 _COREGL_SYMBOL(int, glXWaitVideoSync, (int divisor, int remainder, unsigned int* count))
37 _COREGL_SYMBOL(XID, glXCreatePixmap, (Display* dpy, void* config, Pixmap pixmap, const int* attribList))
38 _COREGL_SYMBOL(void, glXDestroyPixmap, (Display* dpy, XID pixmap))
39 _COREGL_SYMBOL(void, glXQueryDrawable, (Display* dpy, XID draw, int attribute, unsigned int* value))
40 _COREGL_SYMBOL(int, glXSwapIntervalSGI, (int interval))
41 _COREGL_SYMBOL(void, glXSwapIntervalEXT, (Display* dpy, GLXDrawable draw, int interval))
42
43 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
44 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
45 #undef _COREGL_EXT_SYMBOL
46 #endif
47
48 #ifdef _COREGL_SYMBOL_NOT_DEFINED
49 #undef _COREGL_SYMBOL_NOT_DEFINED
50 #undef _COREGL_SYMBOL
51 #endif
52