diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-10 18:20:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-10 18:20:04 +0300 |
commit | 1c423d3301cc1a04c11a8605822699e13d473a8a (patch) | |
tree | d5facf0fc79490aee866482272b2cbc76ab06ca7 /src/normalopenglgraphics.h | |
parent | 4b00aaef2f780339719de516fa392de2de9c9943 (diff) | |
download | plus-1c423d3301cc1a04c11a8605822699e13d473a8a.tar.gz plus-1c423d3301cc1a04c11a8605822699e13d473a8a.tar.bz2 plus-1c423d3301cc1a04c11a8605822699e13d473a8a.tar.xz plus-1c423d3301cc1a04c11a8605822699e13d473a8a.zip |
Improve normalopenglgraphics class.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r-- | src/normalopenglgraphics.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h index afebc49da..7df9997d5 100644 --- a/src/normalopenglgraphics.h +++ b/src/normalopenglgraphics.h @@ -146,14 +146,14 @@ class NormalOpenGLGraphics final : public Graphics inline void drawQuadArrayfi(const int size); - inline void drawQuadArrayfi(GLint *intVertArray, - GLfloat *floatTexArray, + inline void drawQuadArrayfi(const GLint *const intVertArray, + const GLfloat *const floatTexArray, const int size); inline void drawQuadArrayii(const int size); - inline void drawQuadArrayii(GLint *intVertArray, - GLint *intTexArray, + inline void drawQuadArrayii(const GLint *const intVertArray, + const GLint *const intTexArray, const int size); inline void drawLineArrayi(const int size); @@ -189,7 +189,7 @@ class NormalOpenGLGraphics final : public Graphics static unsigned int mLastDrawCalls; #endif - static void bindTexture(GLenum target, GLuint texture); + static void bindTexture(const GLenum target, const GLuint texture); static GLuint mLastImage; @@ -200,11 +200,11 @@ class NormalOpenGLGraphics final : public Graphics const int width, const int height, const bool useColor) override; - void setTexturingAndBlending(bool enable); + void setTexturingAndBlending(const bool enable); void updateMemoryInfo(); - void debugBindTexture(const Image *image); + void debugBindTexture(const Image *const image); private: void inline setColorAlpha(float alpha); |