Commit 33b54297a6343c04d4c9528e9cc5106c9a87c804

Authored by Paul Wisbey
Committed by Gerrit Code Review
2 parents da1e39ca 6f303e87

Merge "Shadow bone lighting example uses the new TextActor's constructor." into tizen

examples/shadows/shadow-bone-lighting-example.cpp
... ... @@ -264,7 +264,13 @@ public:
264 264 mCastingLight.SetAnchorPoint(AnchorPoint::CENTER);
265 265 mCastingLight.SetPosition( Vector3( 0.0f, 0.0f, 800.0f ) * scaleFactor );
266 266  
267   - TextActor text = TextActor::New("Light", Font::New(FontParameters("Times New Roman", "Book", PointSize(20.0f))));
  267 + TextStyle style;
  268 + style.SetFontPointSize( PointSize(20.0f) );
  269 + style.SetFontName("Times New Roman");
  270 + style.SetFontStyle("Book");
  271 +
  272 + TextActorParameters parameters( style, TextActorParameters::FONT_DETECTION_ON );
  273 + TextActor text = TextActor::New("Light", parameters);
268 274 text.SetColor(Color::BLUE);
269 275  
270 276 mCastingLight.Add(text);
... ...