forked from organicmaps/organicmaps
new tests
This commit is contained in:
parent
2f9284edbe
commit
8829a7c135
1 changed files with 7 additions and 7 deletions
|
@ -364,7 +364,7 @@ void TestingEngine::DrawImpl()
|
|||
fd.m_color = Color(200, 80, 240, 255);
|
||||
fd.m_needOutline = true;
|
||||
fd.m_outlineColor = Color(255, 255, 255, 255);
|
||||
fd.m_size = 20.0f;
|
||||
fd.m_size = 60.0f;
|
||||
FontDecl auxFd;
|
||||
auxFd.m_color = Color(0, 80, 240, 255);
|
||||
auxFd.m_needOutline = false;
|
||||
|
@ -374,13 +374,13 @@ void TestingEngine::DrawImpl()
|
|||
TextViewParams params;
|
||||
params.m_featureID = FeatureID(23, 567);
|
||||
params.m_depth = 10.0f;
|
||||
params.m_anchor = dp::LeftBottom;
|
||||
params.m_anchor = dp::Left;
|
||||
params.m_primaryOffset = m2::PointF(0,0);
|
||||
params.m_primaryText = "hjksdfhjajsdf";
|
||||
params.m_primaryTextFont = fd;
|
||||
params.m_secondaryTextFont = auxFd;
|
||||
params.m_secondaryText = "Странные вещи происходят здесь, the strajjjjjnge things ...";
|
||||
TextShape sh1(m2::PointF(200.0f, 298.0f), params);
|
||||
params.m_secondaryText = "Small fix bugs";
|
||||
TextShape sh1(m2::PointF(200.0f, 300.0f), params);
|
||||
sh1.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
|
||||
|
||||
params.m_featureID = FeatureID(23, 78);
|
||||
|
@ -388,13 +388,13 @@ void TestingEngine::DrawImpl()
|
|||
params.m_anchor = dp::RightTop;
|
||||
//params.m_primaryTextFont.m_needOutline = false;
|
||||
TextShape sh2(m2::PointF(250.0f, 250.0f), params);
|
||||
sh2.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
|
||||
//sh2.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
|
||||
|
||||
vector<m2::PointF> path;
|
||||
|
||||
path.push_back(m2::PointF(200, 650));
|
||||
path.push_back(m2::PointF(200, 450));
|
||||
for(int i = 16; i >= -12 ; --i)
|
||||
for(int i = 16; i >= 0 ; --i)
|
||||
{
|
||||
float r = 200.0f;
|
||||
float x = r * cos((float)i/32.0f*2.0f*M_PI) + 800;
|
||||
|
@ -408,7 +408,7 @@ void TestingEngine::DrawImpl()
|
|||
params3.m_depth = -10.0f;
|
||||
params3.m_OffsetEnd = 4000.0f;
|
||||
params3.m_OffsetStart = 100.0f;
|
||||
params3.m_Text = "√2+√3=?-----------------+gahdjgahjkfgasdfhjagdfhgadshfasghdfkadshfgakdhsjfgsahjkdfg";
|
||||
params3.m_Text = "√2+√3=?----------------+";
|
||||
params3.m_TextFont = params.m_primaryTextFont;
|
||||
PathTextShape sh3(path, params3);
|
||||
sh3.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());
|
||||
|
|
Loading…
Add table
Reference in a new issue