diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-10 13:22:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-10 13:22:43 +0300 |
commit | 7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa (patch) | |
tree | 080f86218f6deb792df49678137070689d808bfe /src/render/mglx.h | |
parent | df56c8f79f51cf3ea5118b2e8b82930cd71c2679 (diff) | |
download | manaverse-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.gz manaverse-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.bz2 manaverse-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.xz manaverse-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.zip |
Simplify GLX functions defenition.
Diffstat (limited to 'src/render/mglx.h')
-rw-r--r-- | src/render/mglx.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/render/mglx.h b/src/render/mglx.h index d0a626b9a..72777489c 100644 --- a/src/render/mglx.h +++ b/src/render/mglx.h @@ -26,17 +26,9 @@ #include "render/mglxtypes.h" -#define defNameE(name) extern name##_t m##name - -defNameE(glXCreateContext); -defNameE(glXGetCurrentContext); -defNameE(glXCreateContextAttribs); -defNameE(glXChooseFBConfig); -defNameE(glXDestroyContext); -defNameE(glXMakeCurrent); -defNameE(glXSwapBuffers); - -#undef defNameE +#define defName(name) extern name##_t m##name +#include "render/mglx.hpp" +#undef defName #endif // defined(USE_OPENGL) && defined(USE_X11) #endif // RENDER_MGLX_H |