Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Sorokin <sorok-roma@yandex.ru>2014-07-19 00:45:33 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:21:27 +0300
commit190f119ad2c1d81b0f210801d49dfeedf9fedff8 (patch)
tree4fb8b68829a73ce762a8bf8f2a19e29f2b3c8218 /drape_head/testing_engine.cpp
parentd7ca152c3b07549cec9f04e21245457b005d3854 (diff)
syntax fixes
Diffstat (limited to 'drape_head/testing_engine.cpp')
-rw-r--r--drape_head/testing_engine.cpp43
1 files changed, 21 insertions, 22 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp
index 203e800f67..7288ae53ad 100644
--- a/drape_head/testing_engine.cpp
+++ b/drape_head/testing_engine.cpp
@@ -291,7 +291,6 @@ void TestingEngine::Draw()
m_viewport.Apply();
GLFunctions::glClearColor(0.1f, 0.5f, 0.1f, 1.0f);
GLFunctions::glClear();
- //GLFunctions::glDisable(gl_const::GLDepthTest);
TScene::iterator it = m_scene.begin();
for(; it != m_scene.end(); ++it)
@@ -332,26 +331,26 @@ void TestingEngine::timerEvent(QTimerEvent * e)
void TestingEngine::DrawImpl()
{
-// ReaderPtr<ModelReader> reader = GetPlatform().GetReader("test_scene.json");
-// string jsonString;
-// reader.ReadAsString(jsonString);
-
-// vector<MapShape *> shapes;
-// try
-// {
-// my::Json json(jsonString.c_str());
-// MapShapeFactory factory;
-// factory.CreateShapes(shapes, json.get());
-// }
-// catch (RootException & e)
-// {
-// LOG(LCRITICAL, (e.Msg()));
-// }
-
-// for (size_t i = 0; i < shapes.size(); ++i)
-// shapes[i]->Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
-
-// DeleteRange(shapes, DeleteFunctor());
+ ReaderPtr<ModelReader> reader = GetPlatform().GetReader("test_scene.json");
+ string jsonString;
+ reader.ReadAsString(jsonString);
+
+ vector<MapShape *> shapes;
+ try
+ {
+ my::Json json(jsonString.c_str());
+ MapShapeFactory factory;
+ factory.CreateShapes(shapes, json.get());
+ }
+ catch (RootException & e)
+ {
+ LOG(LCRITICAL, (e.Msg()));
+ }
+
+ for (size_t i = 0; i < shapes.size(); ++i)
+ shapes[i]->Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
+
+ DeleteRange(shapes, DeleteFunctor());
FontDecl fd;
fd.m_color = Color(0, 255, 0, 255);
@@ -368,7 +367,7 @@ void TestingEngine::DrawImpl()
params.m_featureID = FeatureID(23, 567);
params.m_depth = 10.0f;
params.m_anchor = dp::LeftBottom;
- params.m_primaryText = "håß∂ƒ©˙∆˚˚¬……πøˆ¨¥†´∑n";
+ params.m_primaryText = "h";
params.m_primaryTextFont = fd;
params.m_secondaryTextFont = auxFd;
params.m_secondaryText = "this is јџќ®†њѓѕѕў‘‘≠≈µи≠ђи~~™≤";