diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-12 21:35:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-12 21:35:44 +0300 |
commit | d9be27bba8941260500066cdd43ebb016356bc67 (patch) | |
tree | 884fa01ee78e6ed9a1c5ea526b1b5cd9e37df24b /src/render/mglcheck.h | |
parent | 18b2da68d0ae157778bab38d6a90f71e5bb95da2 (diff) | |
download | manaverse-d9be27bba8941260500066cdd43ebb016356bc67.tar.gz manaverse-d9be27bba8941260500066cdd43ebb016356bc67.tar.bz2 manaverse-d9be27bba8941260500066cdd43ebb016356bc67.tar.xz manaverse-d9be27bba8941260500066cdd43ebb016356bc67.zip |
Add macro for checking OpenGL function is it null or not null.
Diffstat (limited to 'src/render/mglcheck.h')
-rw-r--r-- | src/render/mglcheck.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/render/mglcheck.h b/src/render/mglcheck.h new file mode 100644 index 000000000..8355d8ab9 --- /dev/null +++ b/src/render/mglcheck.h @@ -0,0 +1,31 @@ +/* + * The ManaPlus Client + * Copyright (C) 2012-2014 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_MGLCHECK_H +#define RENDER_MGLCHECK_H + +#include "main.h" +#ifdef USE_OPENGL + +#define isGLNull(func) (!(func)) +#define isGLNotNull(func) ((func) != nullptr) + +#endif // USE_OPENGL +#endif // RENDER_MGLCHECK_H |