summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-25 21:43:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-26 13:48:26 +0300
commit9abb51fce0cca32ebe267c4797363d99520c2a0a (patch)
treee0a22c5dc699fdd0f85d04ff1aa96196cc8d43ac /src/graphicsmanager.cpp
parent5ff486002243e1481e6686494a85480a85220451 (diff)
downloadmv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.gz
mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.bz2
mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.xz
mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.zip
Add initial version of mobile OpenGL backend.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index f03d784a1..4c97ea327 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -219,6 +219,12 @@ void GraphicsManager::initGraphics(bool noOpenGL)
mainGraphics = new SafeOpenGLGraphics;
mUseTextureSampler = false;
break;
+ case 3:
+ imageHelper = new OpenGLImageHelper;
+ sdlImageHelper = new SDLImageHelper;
+ mainGraphics = new MobileOpenGLGraphics;
+ mUseTextureSampler = false;
+ break;
};
mUseAtlases = imageHelper->useOpenGL()
&& config.getBoolValue("useAtlases");