summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-10 21:53:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-10 21:58:33 +0300
commit01e2d489c4346d6d3862023f3da40f809da45fe6 (patch)
tree469165999522e80edb8830bf1a2dcb369d690a9d /src/render/modernopenglgraphics.h
parent960d6010125af65db183c3998d890299c577f326 (diff)
downloadmv-01e2d489c4346d6d3862023f3da40f809da45fe6.tar.gz
mv-01e2d489c4346d6d3862023f3da40f809da45fe6.tar.bz2
mv-01e2d489c4346d6d3862023f3da40f809da45fe6.tar.xz
mv-01e2d489c4346d6d3862023f3da40f809da45fe6.zip
In modernopengl implimented drawpattern.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r--src/render/modernopenglgraphics.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h
index 34124bacc..1fed5d371 100644
--- a/src/render/modernopenglgraphics.h
+++ b/src/render/modernopenglgraphics.h
@@ -73,10 +73,12 @@ class ModernOpenGLGraphics final : public Graphics
#include "render/openglgraphicsdefadvanced.hpp"
private:
- void drawQuad(const Image *const image,
- const int srcX, const int srcY,
- const int dstX, const int dstY,
- const int width, const int height);
+ inline void drawQuad(const Image *const image,
+ const int srcX, const int srcY,
+ const int dstX, const int dstY,
+ const int width, const int height);
+
+ inline void drawTriangleArray(const int size);
GLfloat *mFloatArray;
GLfloat *mFloatArrayCached;