diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 21:21:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 21:21:40 +0300 |
commit | 9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (patch) | |
tree | 21df896ff8139745775d41c1c8f82a4c6431698e /src/render/nullopenglgraphics.cpp | |
parent | 96f7714510cba0a84cd749869f236188473c4553 (diff) | |
download | manaplus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.gz manaplus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.bz2 manaplus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.xz manaplus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.zip |
add calcPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index 3a59f44bc..fa8e8e0e4 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -543,6 +543,14 @@ void NullOpenGLGraphics::calcPattern(ImageVertexes* const vert, const int x, const int y, const int w, const int h) const { + calcPatternInline(vert, image, x, y, w, h); +} + +void NullOpenGLGraphics::calcPatternInline(ImageVertexes* const vert, + const Image *const image, + const int x, const int y, + const int w, const int h) const +{ if (!image || !vert) return; @@ -728,7 +736,7 @@ void NullOpenGLGraphics::calcPattern(ImageCollection* const vertCol, vert = vertCol->currentVert; } - calcPattern(vert, image, x, y, w, h); + calcPatternInline(vert, image, x, y, w, h); } void NullOpenGLGraphics::calcTileVertexes(ImageVertexes *const vert, @@ -1143,7 +1151,7 @@ void NullOpenGLGraphics::drawImageRect(const int x, const int y, const int w, const int h, const ImageRect &imgRect) { - #include "render/openglgraphics_drawImageRect.hpp" + #include "render/graphics_drawImageRect.hpp" } void NullOpenGLGraphics::calcImageRect(ImageVertexes *const vert, @@ -1151,7 +1159,7 @@ void NullOpenGLGraphics::calcImageRect(ImageVertexes *const vert, const int w, const int h, const ImageRect &imgRect) { - #include "render/openglgraphics_calcImageRect.hpp" + #include "render/graphics_calcImageRect.hpp" } #ifdef DEBUG_BIND_TEXTURE |