diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:21:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:51:42 +0300 |
commit | 35d742677a59b4340b24f703bad666f3700b14b5 (patch) | |
tree | 4fba5450036a21c94064706258c5326252fda73a /src/render/modernopenglgraphics.h | |
parent | 2b60803357db480eb5214a758a54363d4172987e (diff) | |
download | ManaVerse-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz ManaVerse-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2 ManaVerse-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz ManaVerse-35d742677a59b4340b24f703bad666f3700b14b5.zip |
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r-- | src/render/modernopenglgraphics.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 9f2467a76..0c7d0d5c9 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -85,30 +85,35 @@ class ModernOpenGLGraphics final : public Graphics private: void deleteGLObjects() restrict2; - inline void drawQuad(const int srcX, const int srcY, - const int dstX, const int dstY, - const int width, const int height) restrict2; + inline void drawQuad(const int srcX, + const int srcY, + const int dstX, + const int dstY, + const int width, + const int height) restrict2 A_INLINE; inline void drawRescaledQuad(const int srcX, const int srcY, const int dstX, const int dstY, const int width, const int height, const int desiredWidth, - const int desiredHeight) restrict2; + const int desiredHeight) + restrict2 A_INLINE; - inline void drawTriangleArray(const int size) restrict2; + inline void drawTriangleArray(const int size) restrict2 A_INLINE; inline void drawTriangleArray(const GLint *restrict const array, - const int size) restrict2; + const int size) restrict2 A_INLINE; - inline void drawLineArrays(const int size) restrict2; + inline void drawLineArrays(const int size) restrict2 A_INLINE; - inline void bindArrayBuffer(const GLuint vbo) restrict2; + inline void bindArrayBuffer(const GLuint vbo) restrict2 A_INLINE; - inline void bindArrayBufferAndAttributes(const GLuint vbo) restrict2; + inline void bindArrayBufferAndAttributes(const GLuint vbo) + restrict2 A_INLINE; - inline void bindAttributes() restrict2; + inline void bindAttributes() restrict2 A_INLINE; - inline void bindElementBuffer(const GLuint ebo) restrict2; + inline void bindElementBuffer(const GLuint ebo) restrict2 A_INLINE; GLint *mIntArray A_NONNULLPOINTER; GLint *mIntArrayCached A_NONNULLPOINTER; |