From 771f567d1a5cd6e15515b725c3166e1e842b4977 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Dec 2015 21:46:21 +0300 Subject: Add restrict keyword in graphicsvertexes. --- src/graphicsvertexes.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/graphicsvertexes.h') diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index 0606ea3b9..0374cf95f 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -72,46 +72,46 @@ class OpenGLGraphicsVertexes final ~OpenGLGraphicsVertexes(); - GLfloat *switchFloatTexArray(); + GLfloat *switchFloatTexArray() restrict2; - GLint *switchIntVertArray(); + GLint *switchIntVertArray() restrict2; - GLint *switchIntTexArray(); + GLint *switchIntTexArray() restrict2; - GLshort *switchShortVertArray(); + GLshort *switchShortVertArray() restrict2; - std::vector *getFloatTexPool() A_WARN_UNUSED + std::vector *getFloatTexPool() restrict2 A_WARN_UNUSED { return &mFloatTexPool; } - std::vector *getIntVertPool() A_WARN_UNUSED + std::vector *getIntVertPool() restrict2 A_WARN_UNUSED { return &mIntVertPool; } - std::vector *getShortVertPool() A_WARN_UNUSED + std::vector *getShortVertPool() restrict2 A_WARN_UNUSED { return &mShortVertPool; } - std::vector *getIntTexPool() A_WARN_UNUSED + std::vector *getIntTexPool() restrict2 A_WARN_UNUSED { return &mIntTexPool; } - void switchVp(const int n); + void switchVp(const int n) restrict2; - GLfloat *continueFloatTexArray() RETURNS_NONNULL; + GLfloat *continueFloatTexArray() restrict2 RETURNS_NONNULL; - GLint *continueIntVertArray() RETURNS_NONNULL; + GLint *continueIntVertArray() restrict2 RETURNS_NONNULL; - GLshort *continueShortVertArray() RETURNS_NONNULL; + GLshort *continueShortVertArray() restrict2 RETURNS_NONNULL; - GLint *continueIntTexArray() RETURNS_NONNULL; + GLint *continueIntTexArray() restrict2 RETURNS_NONNULL; - int continueVp(); + int continueVp() restrict2; - void updateVp(const int n); + void updateVp(const int n) restrict2; - std::vector *getVp() A_WARN_UNUSED + std::vector *getVp() restrict2 A_WARN_UNUSED { return &mVp; } - void init(); + void init() restrict2; - void clear(); + void clear() restrict2; int ptr; @@ -139,7 +139,7 @@ class ImageVertexes final ~ImageVertexes(); - const Image *image; + const Image *restrict image; #ifdef USE_OPENGL OpenGLGraphicsVertexes ogl; #endif @@ -159,14 +159,14 @@ class ImageCollection final ~ImageCollection(); - void clear(); + void clear() restrict2; #ifdef USE_OPENGL GLuint currentGLImage; #endif - const Image *currentImage; + const Image *restrict currentImage; - ImageVertexes *currentVert; + ImageVertexes *restrict currentVert; ImageVertexesVector draws; }; -- cgit v1.2.3-60-g2f50