Commit 33854344896574c90e539bccf4e1905c0c4b77e5
1 parent
9380a280
Changes following the patch:
"Changed draw ordering to take into account the depth of the node in the hierarchy" Change-Id: I19a20705ae42be53023a76dbfea0894533087b39
Showing
2 changed files
with
2 additions
and
0 deletions
examples/cube-transition-effect/cube-transition-effect-example.cpp
| @@ -238,6 +238,7 @@ void CubeTransitionApp::OnInit( Application& application ) | @@ -238,6 +238,7 @@ void CubeTransitionApp::OnInit( Application& application ) | ||
| 238 | 238 | ||
| 239 | // Creates a default view with a default tool bar, the view is added to the stage. | 239 | // Creates a default view with a default tool bar, the view is added to the stage. |
| 240 | mContent = DemoHelper::CreateView( application, mView, mToolBar, "", TOOLBAR_IMAGE, "" ); | 240 | mContent = DemoHelper::CreateView( application, mView, mToolBar, "", TOOLBAR_IMAGE, "" ); |
| 241 | + mContent.SetBehavior( Layer::LAYER_3D ); | ||
| 241 | 242 | ||
| 242 | // Add an effect-changing button on the right of the tool bar. | 243 | // Add an effect-changing button on the right of the tool bar. |
| 243 | mImageWave = ResourceImage::New( EFFECT_WAVE_IMAGE ); | 244 | mImageWave = ResourceImage::New( EFFECT_WAVE_IMAGE ); |
examples/item-view/item-view-example.cpp
| @@ -298,6 +298,7 @@ public: | @@ -298,6 +298,7 @@ public: | ||
| 298 | 298 | ||
| 299 | // Display item view on the stage | 299 | // Display item view on the stage |
| 300 | stage.Add( mItemView ); | 300 | stage.Add( mItemView ); |
| 301 | + stage.GetRootLayer().SetBehavior( Layer::LAYER_3D ); | ||
| 301 | 302 | ||
| 302 | // Create the layouts | 303 | // Create the layouts |
| 303 | mSpiralLayout = DefaultItemLayout::New( DefaultItemLayout::SPIRAL ); | 304 | mSpiralLayout = DefaultItemLayout::New( DefaultItemLayout::SPIRAL ); |