summaryrefslogtreecommitdiff
path: root/src/render/mglx.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-10 13:22:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-10 13:22:43 +0300
commit7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa (patch)
tree080f86218f6deb792df49678137070689d808bfe /src/render/mglx.h
parentdf56c8f79f51cf3ea5118b2e8b82930cd71c2679 (diff)
downloadplus-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.gz
plus-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.bz2
plus-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.tar.xz
plus-7ad652a0c4d70e7bbca309dd7a1d0b824b6f5efa.zip
Simplify GLX functions defenition.
Diffstat (limited to 'src/render/mglx.h')
-rw-r--r--src/render/mglx.h14
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