Shadow bone lighting example uses the new TextActor's constructor. 65/24965/1
authorVictor Cebollada <v.cebollada@samsung.com>
Thu, 24 Jul 2014 12:50:23 +0000 (13:50 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 24 Jul 2014 12:50:23 +0000 (13:50 +0100)
Change-Id: I0234549e95c5de5f7ed581b772ca65ba73622716
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
examples/shadows/shadow-bone-lighting-example.cpp

index cb6d5ab..1805c73 100644 (file)
@@ -264,7 +264,13 @@ public:
     mCastingLight.SetAnchorPoint(AnchorPoint::CENTER);
     mCastingLight.SetPosition( Vector3( 0.0f, 0.0f, 800.0f ) * scaleFactor );
 
-    TextActor text = TextActor::New("Light", Font::New(FontParameters("Times New Roman", "Book", PointSize(20.0f))));
+    TextStyle style;
+    style.SetFontPointSize( PointSize(20.0f) );
+    style.SetFontName("Times New Roman");
+    style.SetFontStyle("Book");
+
+    TextActorParameters parameters( style, TextActorParameters::FONT_DETECTION_ON );
+    TextActor text = TextActor::New("Light", parameters);
     text.SetColor(Color::BLUE);
 
     mCastingLight.Add(text);