summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
commit3c404128c4669a1f4f190e20a89553677717fc50 (patch)
tree2db4e5031089c800c4e00fd6244e578f44a7c910 /src/graphicsmanager.h
parent89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff)
downloadmanaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.zip
Add missing comments into defines.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h
index 1e7675135..003d32d6c 100644
--- a/src/graphicsmanager.h
+++ b/src/graphicsmanager.h
@@ -25,17 +25,17 @@
#ifdef ANDROID
#include <GLES/gl.h>
-#else
+#else // ANDROID
#ifndef USE_SDL2
#define GL_GLEXT_PROTOTYPES 1
-#endif
+#endif // USE_SDL2
#include <SDL_opengl.h>
// hack to hide warnings
#undef GL_GLEXT_VERSION
#undef GL_GLEXT_PROTOTYPES
-#endif
+#endif // ANDROID
-#endif
+#endif // USE_OPENGL
#include "sdlshared.h"
@@ -50,7 +50,7 @@ class TestMain;
struct FBOInfo;
#ifdef USE_SDL2
struct SDL_Renderer;
-#endif
+#endif // USE_SDL2
struct SDL_Window;
class GraphicsManager final
@@ -76,7 +76,7 @@ class GraphicsManager final
#ifdef USE_SDL2
SDL_Renderer *createRenderer(SDL_Window *const window,
const int flags);
-#endif
+#endif // USE_SDL2
bool getAllVideoModes(StringVect &modeList);
@@ -163,7 +163,7 @@ class GraphicsManager final
static void resetCachedError()
{ mLastError = GL_NO_ERROR; }
-#endif
+#endif // USE_OPENGL
private:
std::set<std::string> mExtensions;
@@ -179,7 +179,8 @@ class GraphicsManager final
std::string mGlShaderVersionString;
#ifdef USE_OPENGL
static GLenum mLastError;
-#endif
+#endif // USE_OPENGL
+
int mMinor;
int mMajor;
@@ -216,7 +217,8 @@ class GraphicsManager final
bool mSupportModernOpengl;
bool mGles;
-#endif
+#endif // USE_OPENGL
+
bool mUseAtlases;
};