summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 18:19:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 18:21:13 +0300
commit00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e (patch)
treec536958c8cf2308bd38d92a414e6af0a64a3c844 /src/render/safeopenglgraphics.h
parent252bfdaf28d9cfa449e6b0af7a15b66483b9c5bd (diff)
downloadManaVerse-00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e.tar.gz
ManaVerse-00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e.tar.bz2
ManaVerse-00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e.tar.xz
ManaVerse-00d8cfee5bc76c59e5c3195f4434c4a4fb741d0e.zip
add drawImageRect into each renderer. but copy function body to shared file.
Diffstat (limited to 'src/render/safeopenglgraphics.h')
-rw-r--r--src/render/safeopenglgraphics.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h
index 8d9b38e5a..a6a32771c 100644
--- a/src/render/safeopenglgraphics.h
+++ b/src/render/safeopenglgraphics.h
@@ -52,6 +52,13 @@ class SafeOpenGLGraphics final : public Graphics
#include "render/openglgraphicsdef.hpp"
+ /**
+ * Draws a rectangle using images. 4 corner images, 4 side images and 1
+ * image for the inside.
+ */
+ void drawImageRect(int x, int y, int w, int h,
+ const ImageRect &imgRect);
+
protected:
void setTexturingAndBlending(const bool enable);