+ pauseButton.SetParentOrigin( Vector3( 0.5, 1.0 - BUTTONS_OFFSET_BOTTOM, 0.5 ) );
+ pauseButton.SetAnchorPoint( AnchorPoint::CENTER );
+ pauseButton.SetProperty( Toolkit::Button::Property::LABEL, PAUSE );
+ layer.Add( pauseButton );
+
+ //Actor for positioning light position buttons.
+ Actor positionActorLight = Actor::New();
+ positionActorLight.SetParentOrigin( Vector3( 1.0 - BUTTONS_OFFSET_SIDE, 1.0 - BUTTONS_OFFSET_BOTTOM, 0.5 ) );
+ positionActorLight.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
+ layer.Add( positionActorLight );
+
+ //Create button for switching between manual and fixed light position.
+ PushButton lightModeButton = Toolkit::PushButton::New();
+ lightModeButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
+ lightModeButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeLightModeClicked );
+ lightModeButton.SetParentOrigin( ParentOrigin::TOP_CENTER );
+ lightModeButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
+ lightModeButton.SetProperty( Toolkit::Button::Property::LABEL, FIXED );
+ positionActorLight.Add( lightModeButton );
+
+ //Create button for switching between front and back light position.
+ PushButton lightSideButton = Toolkit::PushButton::New();
+ lightSideButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
+ lightSideButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeLightSideClicked );
+ lightSideButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
+ lightSideButton.SetAnchorPoint( AnchorPoint::TOP_CENTER );
+ lightSideButton.SetProperty( Toolkit::Button::Property::LABEL, FRONT );
+ positionActorLight.Add( lightSideButton );
+
+ //Text label title for light position mode.
+ TextLabel lightTitleLabel = TextLabel::New( "Light Position" );
+ lightTitleLabel.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
+ lightTitleLabel.SetProperty( TextLabel::Property::UNDERLINE, "{\"thickness\":\"2.0\"}" );
+ lightTitleLabel.SetParentOrigin( ParentOrigin::TOP_CENTER );
+ lightTitleLabel.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
+ lightModeButton.Add( lightTitleLabel );
+ }