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 Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
24 #include <dali/dali.h>
25 #include "image-filter.h"
37 * An embossing image filter, implements Dali::Toolkit::Internal::ImageFilter
39 class EmbossFilter : public ImageFilter
43 * Construct an empty filter
50 virtual ~EmbossFilter();
52 public: // From ImageFilter
53 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
54 virtual void Enable();
56 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
57 virtual void Disable();
59 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
60 virtual void Refresh();
64 * Setup position and parameters for camera
69 * Setup render tasks for blur
71 void CreateRenderTasks();
74 EmbossFilter( const EmbossFilter& );
75 EmbossFilter& operator=( const EmbossFilter& );
77 private: // Attributes
79 RenderTask mRenderTaskForEmboss1;
80 RenderTask mRenderTaskForEmboss2;
81 RenderTask mRenderTaskForOutput;
82 FrameBufferImage mImageForEmboss1;
83 FrameBufferImage mImageForEmboss2;
84 CameraActor mCameraActor;
85 ImageActor mActorForInput1;
86 ImageActor mActorForInput2;
87 ImageActor mActorForEmboss1;
88 ImageActor mActorForEmboss2;
89 Actor mActorForComposite;
90 }; // class EmbossFilter
92 } // namespace Internal
94 } // namespace Toolkit
98 #endif // __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__