Apply changed API of BackgroundBlurEffect 77/314177/1
authorjmm <j0064423.lee@samsung.com>
Mon, 8 Jul 2024 05:00:25 +0000 (14:00 +0900)
committerjmm <j0064423.lee@samsung.com>
Mon, 8 Jul 2024 05:00:25 +0000 (14:00 +0900)
Change-Id: If3e301c28644bd4e0ecc2649a25b13c8cc51f603

examples/render-effects/render-effects-example.cpp

index 518edf4e951101708480442d6ef899e7b72af8e7..91ffa2e17d0f8578d03a9825122eee1186ea9a9f 100644 (file)
@@ -75,7 +75,7 @@ public:
     UIPanel.SetProperty(Actor::Property::SIZE, size * 0.8f);
     UIPanel.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
     window.Add(UIPanel);
-    UIPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+    UIPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
 
     // Welcome message
     {
@@ -132,7 +132,7 @@ public:
       label.Add(unitLabel);
 
       UIPanel.Add(weatherPanel);
-      weatherPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      weatherPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
     }
 
     // Icon mini panels
@@ -146,25 +146,25 @@ public:
       control.SetProperty(Actor::Property::POSITION, Vector2(-x_incrementer, y_starter));
       control.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
       UIPanel.Add(control);
-      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
 
       control = CreateIconPanel("BlueTooth", "2 devices", true, DEMO_IMAGE_DIR "application-icon-14.png", iconPanelSize);
       control.SetProperty(Actor::Property::POSITION, Vector2(x_incrementer, y_starter));
       control.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
       UIPanel.Add(control);
-      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
 
       control = CreateIconPanel("Wi-Fi", "TizenUIFW", true, DEMO_IMAGE_DIR "application-icon-55.png", iconPanelSize);
       control.SetProperty(Actor::Property::POSITION, Vector2(-x_incrementer, y_starter + y_incrementer));
       control.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
       UIPanel.Add(control);
-      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
 
       control = CreateIconPanel("Lighting", "5 devices", true, DEMO_IMAGE_DIR "application-icon-21.png", iconPanelSize);
       control.SetProperty(Actor::Property::POSITION, Vector2(x_incrementer, y_starter + y_incrementer));
       control.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
       UIPanel.Add(control);
-      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      control.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
     }
 
     // Air conditioner
@@ -213,7 +213,7 @@ public:
       airConPanel.SetProperty(Toolkit::Control::Property::BACKGROUND, airConPanelDimmer);
 
       UIPanel.Add(airConPanel);
-      airConPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40, 10.0f));
+      airConPanel.SetRenderEffect(Toolkit::BackgroundBlurEffect::New(0.4f, 40));
     }
 
     // lower background layer