diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-23 01:49:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-23 01:49:22 +0300 |
commit | 2aa11a7780c0ee8244be91b45dc3c6c9927c1efe (patch) | |
tree | 6a8ee0f5f2d34c203ffa97fc81eb2f00b56243a2 | |
parent | b8835bb8f60ebaaedbf474624ffceb1b181c3036 (diff) | |
download | plus-2aa11a7780c0ee8244be91b45dc3c6c9927c1efe.tar.gz plus-2aa11a7780c0ee8244be91b45dc3c6c9927c1efe.tar.bz2 plus-2aa11a7780c0ee8244be91b45dc3c6c9927c1efe.tar.xz plus-2aa11a7780c0ee8244be91b45dc3c6c9927c1efe.zip |
Add const attribute to render.
-rw-r--r-- | src/render/graphics.h | 8 | ||||
-rw-r--r-- | src/render/renderers.h | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h index 0f0e14776..516e56c63 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -237,7 +237,11 @@ class Graphics notfinal */ virtual void updateScreen() = 0; +#ifdef USE_SDL2 void setWindowSize(const int width, const int height); +#else + void setWindowSize(const int width, const int height) A_CONST; +#endif /** * Returns the width of the screen. @@ -386,7 +390,11 @@ class Graphics notfinal virtual void drawRectangle(const Rect &rectangle) = 0; #ifdef USE_OPENGL +#ifdef USE_SDL2 virtual void createGLContext(); +#else + virtual void createGLContext() A_CONST; +#endif #endif /** diff --git a/src/render/renderers.h b/src/render/renderers.h index 63f93f786..904f33687 100644 --- a/src/render/renderers.h +++ b/src/render/renderers.h @@ -23,7 +23,9 @@ #include "enums/render/rendertype.h" -RenderType intToRenderType(const int mode); +#include "localconsts.h" + +RenderType intToRenderType(const int mode) A_CONST; #define isBatchDrawRenders(val) ((val) != RENDER_SAFE_OPENGL) |