From 1f1e02d2b0143dd1f89720cc204bb0da36b302e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jun 2014 01:41:07 +0300 Subject: In modernopengl add draw rescaled image. --- src/render/modernopenglgraphics.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render/modernopenglgraphics.h') 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; -- cgit v1.2.3-70-g09d2