diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 22:05:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 22:05:55 +0300 |
commit | 080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b (patch) | |
tree | adb12b2ed2020fc5c636d3c5cb7ba1ee0636f9e0 /src/render/mobileopenglgraphics.cpp | |
parent | 9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (diff) | |
download | manaplus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.gz manaplus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.bz2 manaplus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.xz manaplus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.zip |
add calcTileVertexesInline into renders for internal usage.
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 52ed81add..2a2d5f98b 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -661,11 +661,11 @@ void MobileOpenGLGraphics::calcTileCollection(ImageCollection *const vertCol, vertCol->currentVert = vert; vert->image = image; vertCol->draws.push_back(vert); - calcTileVertexes(vert, image, x, y); + calcTileVertexesInline(vert, image, x, y); } else { - calcTileVertexes(vertCol->currentVert, image, x, y); + calcTileVertexesInline(vertCol->currentVert, image, x, y); } } @@ -715,6 +715,13 @@ void MobileOpenGLGraphics::calcTileVertexes(ImageVertexes *const vert, const Image *const image, int dstX, int dstY) const { + calcTileVertexesInline(vert, image, dstX, dstY); +} + +void MobileOpenGLGraphics::calcTileVertexesInline(ImageVertexes *const vert, + const Image *const image, + int dstX, int dstY) const +{ if (!vert || !image) return; |