From 6f303e8727f686a8815f600a68bca5a3a881f6f1 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Thu, 24 Jul 2014 13:50:23 +0100 Subject: [PATCH] Shadow bone lighting example uses the new TextActor's constructor. Change-Id: I0234549e95c5de5f7ed581b772ca65ba73622716 Signed-off-by: Victor Cebollada --- examples/shadows/shadow-bone-lighting-example.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/shadows/shadow-bone-lighting-example.cpp b/examples/shadows/shadow-bone-lighting-example.cpp index cb6d5ab..1805c73 100644 --- a/examples/shadows/shadow-bone-lighting-example.cpp +++ b/examples/shadows/shadow-bone-lighting-example.cpp @@ -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); -- 2.7.4