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/normalopenglgraphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/normalopenglgraphics.h') diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h index 62d0fffb6..b88a073c3 100644 --- a/src/render/normalopenglgraphics.h +++ b/src/render/normalopenglgraphics.h @@ -115,6 +115,11 @@ class NormalOpenGLGraphics 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