Changed Shadow example to use ImageView. 60/49660/2
authorChu Hoang <c.hoang@samsung.com>
Fri, 16 Oct 2015 15:08:21 +0000 (16:08 +0100)
committerChu Hoang <c.hoang@samsung.com>
Wed, 21 Oct 2015 09:13:15 +0000 (10:13 +0100)
Change-Id: Id5e73e4214bc1c88d66bf89d5f50da5a7f9be01b

examples/shadow-bone-lighting/shadow-bone-lighting-example.cpp

index ca4dd07..ba23b90 100644 (file)
@@ -199,8 +199,7 @@ public:
     mShadowView.SetPointLightFieldOfView( Math::PI / 2.0f);
     mContents.Add(mShadowView);
 
-    Image brickWall = ResourceImage::New(DALI_IMAGE_DIR "brick-wall.jpg");
-    mShadowPlaneBg = ImageActor::New(brickWall);
+    mShadowPlaneBg = ImageView::New( DALI_IMAGE_DIR "brick-wall.jpg" );
     mShadowPlaneBg.SetParentOrigin(ParentOrigin::CENTER);
     mShadowPlaneBg.SetAnchorPoint(AnchorPoint::CENTER);
     mShadowPlaneBg.SetName("Plane");
@@ -208,7 +207,7 @@ public:
     mContents.Add(mShadowPlaneBg);
     mShadowPlaneBg.SetPosition(Vector3(50.0f, 50.0f, -200.0f));
 
-    mShadowView.SetShadowPlane(mShadowPlaneBg);
+    mShadowView.SetShadowPlaneBackground(mShadowPlaneBg);
     mShadowView.Activate();
 
     mLightAnchor = Actor::New();
@@ -454,8 +453,8 @@ private:
   Animation                 mSceneAnimation;
   bool                      mPaused;
   Toolkit::ShadowView       mShadowView;
-  ImageActor                mShadowPlaneBg;
-  ImageActor                mShadowPlane;
+  ImageView                 mShadowPlaneBg;
+  ImageView                 mShadowPlane;
   Actor                     mCastingLight;
   Actor                     mLightAnchor;
   ImageActor                mImageActor1;