--- /dev/null
+This example shows the GuassianBlurView in action.
+
+Press 1, touch or click in order to toggle the blurring.
+
+Used to test render tasks, frame buffers and fence syncs.
if(PointState::DOWN == state)
{
- if(!mActivate)
- {
- mActivate = true;
- mGaussianBlurView.Activate();
+ ToggleBlurState();
+ }
- mOnLabel.SetProperty(Actor::Property::VISIBLE, true);
- mOffLabel.SetProperty(Actor::Property::VISIBLE, false);
- }
- else
- {
- mActivate = false;
- mGaussianBlurView.Deactivate();
+ return true;
+ }
- mOnLabel.SetProperty(Actor::Property::VISIBLE, false);
- mOffLabel.SetProperty(Actor::Property::VISIBLE, true);
- }
+ void ToggleBlurState()
+ {
+ if(!mActivate)
+ {
+ mActivate = true;
+ mGaussianBlurView.Activate();
+
+ mOnLabel.SetProperty(Actor::Property::VISIBLE, true);
+ mOffLabel.SetProperty(Actor::Property::VISIBLE, false);
}
+ else
+ {
+ mActivate = false;
+ mGaussianBlurView.Deactivate();
- return true;
+ mOnLabel.SetProperty(Actor::Property::VISIBLE, false);
+ mOffLabel.SetProperty(Actor::Property::VISIBLE, true);
+ }
}
void OnKeyEvent(const KeyEvent& event)
{
mApplication.Quit();
}
+ else if(!event.GetKeyName().compare("1"))
+ {
+ ToggleBlurState();
+ }
}
}