summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
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/safeopenglgraphics.cpp
parente29a87a240fe2f33c51f4e15067122960f667d66 (diff)
downloadmv-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.gz
mv-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.bz2
mv-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.tar.xz
mv-bbed1413d3ea2ef67f7fd7db146c372a7181ad43.zip
add calcImageRect into each renderer. but copy function body to shared file.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index 41d9b7f77..90dfe2e5b 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -397,12 +397,11 @@ void SafeOpenGLGraphics::updateScreen()
BLOCK_END("Graphics::updateScreen")
}
-bool SafeOpenGLGraphics::calcWindow(ImageCollection *const vertCol A_UNUSED,
+void SafeOpenGLGraphics::calcWindow(ImageCollection *const vertCol A_UNUSED,
const int x A_UNUSED, const int y A_UNUSED,
const int w A_UNUSED, const int h A_UNUSED,
const ImageRect &imgRect A_UNUSED)
{
- return false;
}
void SafeOpenGLGraphics::_beginDraw()
@@ -668,4 +667,12 @@ void SafeOpenGLGraphics::drawImageRect(const int x, const int y,
#include "render/openglgraphics_drawImageRect.hpp"
}
+void SafeOpenGLGraphics::calcImageRect(ImageVertexes *const vert,
+ const int x, const int y,
+ const int w, const int h,
+ const ImageRect &imgRect)
+{
+ #include "render/openglgraphics_calcImageRect.hpp"
+}
+
#endif // USE_OPENGL