1 #ifndef __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__
2 #define __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
23 #include <dali/dali.h>
24 #include "image-filter.h"
36 * An embossing image filter, implements Dali::Toolkit::Internal::ImageFilter
38 class EmbossFilter : public ImageFilter
42 * Construct an empty filter
49 virtual ~EmbossFilter();
51 public: // From ImageFilter
52 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
53 virtual void Enable();
55 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
56 virtual void Disable();
58 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
59 virtual void Refresh();
63 * Setup position and parameters for camera
68 * Setup render tasks for blur
70 void CreateRenderTasks();
73 EmbossFilter( const EmbossFilter& );
74 EmbossFilter& operator=( const EmbossFilter& );
76 private: // Attributes
78 RenderTask mRenderTaskForEmboss1;
79 RenderTask mRenderTaskForEmboss2;
80 RenderTask mRenderTaskForOutput;
81 FrameBufferImage mImageForEmboss1;
82 FrameBufferImage mImageForEmboss2;
83 CameraActor mCameraActor;
84 ImageActor mActorForInput1;
85 ImageActor mActorForInput2;
86 ImageActor mActorForEmboss1;
87 ImageActor mActorForEmboss2;
88 Actor mActorForComposite;
89 }; // class EmbossFilter
91 } // namespace Internal
93 } // namespace Toolkit
97 #endif // __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__