Add coding style guide.
[platform/core/uifw/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,
15                 int *attribList))
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,
22                                       GLXContext ctx))
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,
28                 int screen))
29
30 _COREGL_SYMBOL(GLXFBConfig *, glXChooseFBConfig, (Display *dpy, int screen,
31                 const int *attribList, int *nitems))
32 _COREGL_SYMBOL(GLXFBConfig *, glXGetFBConfigs, (Display *dpy, int screen,
33                 int *nelements))
34 _COREGL_SYMBOL(int, glXGetFBConfigAttrib, (Display *dpy, GLXFBConfig config,
35                 int attribute, int *value))
36 _COREGL_SYMBOL(XVisualInfo *, glXGetVisualFromFBConfig, (Display *dpy,
37                 GLXFBConfig config))
38 _COREGL_SYMBOL(void, glXDestroyWindow, (Display *dpy, GLXWindow window))
39 _COREGL_SYMBOL(Bool, glXMakeContextCurrent, (Display *dpy, GLXDrawable draw,
40                 GLXDrawable read, GLXContext ctx))
41
42 _COREGL_SYMBOL(void, glXBindTexImage, (Display *dpy, GLXDrawable draw,
43                                        int buffer, int *attribList))
44 _COREGL_SYMBOL(void, glXReleaseTexImage, (Display *dpy, GLXDrawable draw,
45                 int buffer))
46 _COREGL_SYMBOL(int, glXGetVideoSync, (unsigned int *count))
47 _COREGL_SYMBOL(int, glXWaitVideoSync, (int divisor, int remainder,
48                                        unsigned int *count))
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,
53                                         unsigned int *value))
54 _COREGL_SYMBOL(int, glXSwapIntervalSGI, (int interval))
55 _COREGL_SYMBOL(void, glXSwapIntervalEXT, (Display *dpy, GLXDrawable draw,
56                 int interval))
57
58 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
59 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
60 #undef _COREGL_EXT_SYMBOL
61 #endif
62
63 #ifdef _COREGL_SYMBOL_NOT_DEFINED
64 #undef _COREGL_SYMBOL_NOT_DEFINED
65 #undef _COREGL_SYMBOL
66 #endif
67