From 00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 18:19:40 +0300 Subject: add drawImageRect into each renderer. but copy function body to shared file. --- src/render/normalopenglgraphics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render/normalopenglgraphics.cpp') diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index 5f24eda2c..2088214c0 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -1545,6 +1545,13 @@ void NormalOpenGLGraphics::restoreColor() mByteColor = mColor; } +void NormalOpenGLGraphics::drawImageRect(const int x, const int y, + const int w, const int h, + const ImageRect &imgRect) +{ + #include "render/openglgraphics_drawImageRect.hpp" +} + #ifdef DEBUG_BIND_TEXTURE void NormalOpenGLGraphics::debugBindTexture(const Image *const image) { -- cgit v1.2.3-70-g09d2