summaryrefslogtreecommitdiff
path: root/src/render/openglx
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/openglx')
-rw-r--r--src/render/openglx/mglx.cpp34
-rw-r--r--src/render/openglx/mglx.h35
-rw-r--r--src/render/openglx/mglx.hpp29
-rw-r--r--src/render/openglx/mglxinit.cpp42
-rw-r--r--src/render/openglx/mglxinit.h32
-rw-r--r--src/render/openglx/mglxtypes.h41
6 files changed, 0 insertions, 213 deletions
diff --git a/src/render/openglx/mglx.cpp b/src/render/openglx/mglx.cpp
deleted file mode 100644
index a02c8e326..000000000
--- a/src/render/openglx/mglx.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#if defined(USE_OPENGL) && defined(USE_X11)
-
-#include "render/openglx/mglx.h"
-
-#include "debug.h"
-
-#define defName(name) name##_t m##name = nullptr
-
-// include function defines
-#include "render/openglx/mglx.hpp"
-
-MGLX_DEFINE
-
-#endif // defined(USE_OPENGL) && defined(USE_X11)
diff --git a/src/render/openglx/mglx.h b/src/render/openglx/mglx.h
deleted file mode 100644
index 3f591f26f..000000000
--- a/src/render/openglx/mglx.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef RENDER_OPENGLX_MGLX_H
-#define RENDER_OPENGLX_MGLX_H
-
-#if defined(USE_OPENGL) && defined(USE_X11)
-
-#include "render/openglx/mglxtypes.h"
-
-#define defName(name) extern name##_t m##name
-#include "render/openglx/mglx.hpp"
-MGLX_DEFINE
-#undef defName
-#undef MGLX_DEFINE
-
-#endif // defined(USE_OPENGL) && defined(USE_X11)
-#endif // RENDER_OPENGLX_MGLX_H
diff --git a/src/render/openglx/mglx.hpp b/src/render/openglx/mglx.hpp
deleted file mode 100644
index 0e3e2b9ac..000000000
--- a/src/render/openglx/mglx.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#define MGLX_DEFINE
-
-defName(glXCreateContext);
-defName(glXGetCurrentContext);
-defName(glXCreateContextAttribs);
-defName(glXChooseFBConfig);
-defName(glXDestroyContext);
-defName(glXMakeCurrent);
-defName(glXSwapBuffers);
diff --git a/src/render/openglx/mglxinit.cpp b/src/render/openglx/mglxinit.cpp
deleted file mode 100644
index 10eb93567..000000000
--- a/src/render/openglx/mglxinit.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#if defined(USE_OPENGL) && defined(USE_X11)
-
-#include "render/openglx/mglxinit.h"
-
-#include "render/opengl/mglfunctions.h"
-
-#include "render/openglx/mglx.h"
-
-#include "debug.h"
-
-void Glx::initFunctions()
-{
- assignFunction(glXCreateContext);
- assignFunction(glXGetCurrentContext);
- assignFunctionARB(glXCreateContextAttribs);
- assignFunction(glXChooseFBConfig);
- assignFunction(glXDestroyContext);
- assignFunction(glXMakeCurrent);
- assignFunction(glXSwapBuffers);
-}
-
-#endif // defined(USE_OPENGL) && defined(USE_X11)
diff --git a/src/render/openglx/mglxinit.h b/src/render/openglx/mglxinit.h
deleted file mode 100644
index 96704821e..000000000
--- a/src/render/openglx/mglxinit.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef RENDER_OPENGLX_MGLXINIT_H
-#define RENDER_OPENGLX_MGLXINIT_H
-
-#if defined(USE_OPENGL) && defined(USE_X11)
-
-namespace Glx
-{
- void initFunctions();
-} // namespace Glx
-
-#endif // defined(USE_OPENGL) && defined(USE_X11)
-#endif // RENDER_OPENGLX_MGLXINIT_H
diff --git a/src/render/openglx/mglxtypes.h b/src/render/openglx/mglxtypes.h
deleted file mode 100644
index b9aa0a55d..000000000
--- a/src/render/openglx/mglxtypes.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2012-2017 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef RENDER_OPENGLX_MGLXTYPES_H
-#define RENDER_OPENGLX_MGLXTYPES_H
-
-#if defined(USE_OPENGL) && defined(USE_X11)
-
-#include <GL/glx.h>
-
-typedef void *(*glXCreateContext_t) (Display *dpy, XVisualInfo *vis,
- void *shareList, bool direct);
-typedef void *(*glXGetCurrentContext_t) (void);
-typedef void *(*glXCreateContextAttribs_t) (Display *dpy, GLXFBConfig config,
- void *share_context, bool direct, const int *attrib_list);
-typedef GLXFBConfig *(*glXChooseFBConfig_t) (Display *dpy, int screen,
- const int *attrib_list, int *nelements);
-typedef void (*glXDestroyContext_t) (Display *dpy, void *ctx);
-typedef bool (*glXMakeCurrent_t) (Display *dpy,
- GLXDrawable drawable, void *ctx);
-typedef void (*glXSwapBuffers_t) (Display *dpy, GLXDrawable drawable);
-
-#endif // USE_OPENGL
-#endif // RENDER_OPENGLX_MGLXTYPES_H