summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 20:04:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 20:05:30 +0300
commitbbed1413d3ea2ef67f7fd7db146c372a7181ad43 (patch)
treebcfd0e1802df442df157d829e9fc3490877ceb0f /src/render/normalopenglgraphics.h
parente29a87a240fe2f33c51f4e15067122960f667d66 (diff)
downloadplus-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.gz
plus-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.bz2
plus-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.xz
plus-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.zip
add calcImageRect into each renderer. but copy function body to shared file.
Diffstat (limited to 'src/render/normalopenglgraphics.h')
-rw-r--r--src/render/normalopenglgraphics.h5
1 files changed, 5 insertions, 0 deletions
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;