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/sdlgraphics.cpp | |
parent | 9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (diff) | |
download | plus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.gz plus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.bz2 plus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.tar.xz plus-080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b.zip |
add calcTileVertexesInline into renders for internal usage.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index 9acee8bdf..7bd6b82e0 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -665,6 +665,14 @@ void SDLGraphics::calcTileVertexes(ImageVertexes *const vert, calcTileSDL(vert, x, y); } +void SDLGraphics::calcTileVertexesInline(ImageVertexes *const vert, + const Image *const image, + int x, int y) const +{ + vert->image = image; + calcTileSDL(vert, x, y); +} + void SDLGraphics::calcTileSDL(ImageVertexes *const vert, int x, int y) const { // Check that preconditions for blitting are met. |