diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/render/graphics.h | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | manaplus-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz manaplus-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 manaplus-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz manaplus-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r-- | src/render/graphics.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h index 997ed2196..b2e38367d 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -86,10 +86,10 @@ #ifdef USE_SDL2 #define RectPos int32_t #define RectSize int32_t -#else +#else // USE_SDL2 #define RectPos int16_t #define RectSize uint16_t -#endif +#endif // USE_SDL2 class Image; class ImageCollection; @@ -106,7 +106,8 @@ class Graphics notfinal public: #ifdef USE_OPENGL friend class OpenGLScreenshotHelper; -#endif +#endif // USE_SDL2 + friend class SdlScreenshotHelper; A_DELETE_COPY(Graphics) @@ -250,9 +251,9 @@ class Graphics notfinal void setWindowSize(const int width, #ifdef USE_SDL2 const int height) restrict2; -#else +#else // USE_SDL2 const int height) restrict2 A_CONST; -#endif +#endif // USE_SDL2 /** * Returns the width of the screen. @@ -321,18 +322,18 @@ class Graphics notfinal #ifdef DEBUG_DRAW_CALLS virtual unsigned int getDrawCalls() const restrict2 { return 0; } -#endif +#endif // DEBUG_DRAW_CALLS #ifdef DEBUG_BIND_TEXTURE virtual unsigned int getBinds() const restrict2 { return 0; } -#endif +#endif // DEBUG_BIND_TEXTURE #ifdef USE_SDL2 void dumpRendererInfo(const char *restrict const str, const SDL_RendererInfo &restrict info) restrict2; virtual void setRendererFlags(const uint32_t flags A_UNUSED) restrict2 { } -#endif +#endif // USE_SDL2 /** * Blits an image onto the screen. @@ -405,10 +406,11 @@ class Graphics notfinal #ifdef USE_OPENGL #ifdef USE_SDL2 virtual void createGLContext(const bool custom) restrict2; -#else +#else // USE_SDL2 + virtual void createGLContext(const bool custom) restrict2 A_CONST; -#endif -#endif +#endif // USE_SDL2 +#endif // USE_OPENGL /** * Draws a single point/pixel. @@ -503,7 +505,8 @@ class Graphics notfinal #ifdef USE_OPENGL void setOpenGLFlags() restrict2; -#endif +#endif // USE_OPENGL + /** * Holds the clip area stack. */ |