diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-12 01:41:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-12 01:41:07 +0300 |
commit | 1f1e02d2b0143dd1f89720cc204bb0da36b302e9 (patch) | |
tree | 341a45d31b3e6ec38f11d664e98a8aaf43af04f0 /src/render/modernopenglgraphics.h | |
parent | 1d4c97f2f4337614b6d270ddacbfd00e408f4e9a (diff) | |
download | plus-1f1e02d2b0143dd1f89720cc204bb0da36b302e9.tar.gz plus-1f1e02d2b0143dd1f89720cc204bb0da36b302e9.tar.bz2 plus-1f1e02d2b0143dd1f89720cc204bb0da36b302e9.tar.xz plus-1f1e02d2b0143dd1f89720cc204bb0da36b302e9.zip |
In modernopengl add draw rescaled image.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r-- | src/render/modernopenglgraphics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 56e949aab..fec209a7e 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -78,6 +78,13 @@ class ModernOpenGLGraphics final : public Graphics const int dstX, const int dstY, const int width, const int height); + inline void drawRescaledQuad(const Image *const image, + const int srcX, const int srcY, + const int dstX, const int dstY, + const int width, const int height, + const int desiredWidth, + const int desiredHeight); + inline void drawTriangleArray(const int size); GLfloat *mFloatArray; |