summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 20:25:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 20:25:38 +0300
commit104df5cae8521f4a234381567b19e6b4da3ff1f0 (patch)
tree2789b318f3f2d977bdd01921ae69c4f476954476 /src/render/normalopenglgraphics.h
parentc456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff)
downloadmv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz
mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2
mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz
mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/normalopenglgraphics.h')
-rw-r--r--src/render/normalopenglgraphics.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h
index fa8c8456a..3bde8b6d8 100644
--- a/src/render/normalopenglgraphics.h
+++ b/src/render/normalopenglgraphics.h
@@ -55,27 +55,28 @@ class NormalOpenGLGraphics final : public Graphics
~NormalOpenGLGraphics();
- inline void drawQuadArrayfi(const int size);
+ inline void drawQuadArrayfi(const int size) restrict2;
- inline void drawQuadArrayfiCached(const int size);
+ inline void drawQuadArrayfiCached(const int size) restrict2;
- inline void drawQuadArrayfi(const GLint *const intVertArray,
- const GLfloat *const floatTexArray,
- const int size);
+ inline void drawQuadArrayfi(const GLint *restrict const intVertArray,
+ const GLfloat *restrict const
+ floatTexArray,
+ const int size) restrict2;
- inline void drawQuadArrayii(const int size);
+ inline void drawQuadArrayii(const int size) restrict2;
- inline void drawQuadArrayiiCached(const int size);
+ inline void drawQuadArrayiiCached(const int size) restrict2;
- inline void drawQuadArrayii(const GLint *const intVertArray,
- const GLint *const intTexArray,
- const int size);
+ inline void drawQuadArrayii(const GLint *restrict const intVertArray,
+ const GLint *restrict const intTexArray,
+ const int size) restrict2;
- inline void drawLineArrayi(const int size);
+ inline void drawLineArrayi(const int size) restrict2;
- inline void drawLineArrayf(const int size);
+ inline void drawLineArrayf(const int size) restrict2;
- void testDraw() override final;
+ void testDraw() restrict2 override final;
#include "render/graphicsdef.hpp"
@@ -86,7 +87,7 @@ class NormalOpenGLGraphics final : public Graphics
#include "render/openglgraphicsdefadvanced.hpp"
#ifdef DEBUG_BIND_TEXTURE
- unsigned int getBinds() const
+ unsigned int getBinds() const restrict2
{ return mLastBinds; }
#endif