From bbed1413d3ea2ef67f7fd7db146c372a7181ad43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 20:04:35 +0300 Subject: add calcImageRect into each renderer. but copy function body to shared file. --- src/render/nullopenglgraphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/nullopenglgraphics.h') diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index 35aa8d3de..bb18da05b 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -107,6 +107,11 @@ class NullOpenGLGraphics final : public Graphics void inline restoreColor(); + void inline calcImageRect(ImageVertexes *const vert, + int x, int y, + int w, int h, + const ImageRect &imgRect); + GLfloat *mFloatTexArray; GLint *mIntTexArray; GLint *mIntVertArray; -- cgit v1.2.3-60-g2f50