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.
22 #include <dali/public-api/actors/camera-actor.h>
23 #include <dali/public-api/actors/image-actor.h>
24 #include <dali/public-api/render-tasks/render-task.h>
27 #include "image-filter.h"
39 * An embossing image filter, implements Dali::Toolkit::Internal::ImageFilter
41 class EmbossFilter : public ImageFilter
45 * Construct an empty filter
52 virtual ~EmbossFilter();
54 public: // From ImageFilter
55 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
56 virtual void Enable();
58 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
59 virtual void Disable();
61 /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
62 virtual void Refresh();
64 /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize
65 virtual void SetSize( const Vector2& size );
69 * Setup position and parameters for camera
74 * Setup render tasks for blur
76 void CreateRenderTasks();
79 EmbossFilter( const EmbossFilter& );
80 EmbossFilter& operator=( const EmbossFilter& );
82 private: // Attributes
84 RenderTask mRenderTaskForEmboss1;
85 RenderTask mRenderTaskForEmboss2;
86 RenderTask mRenderTaskForOutput;
87 FrameBufferImage mImageForEmboss1;
88 FrameBufferImage mImageForEmboss2;
89 CameraActor mCameraActor;
90 ImageActor mActorForInput1;
91 ImageActor mActorForInput2;
92 ImageActor mActorForEmboss1;
93 ImageActor mActorForEmboss2;
94 Actor mActorForComposite;
95 }; // class EmbossFilter
97 } // namespace Internal
99 } // namespace Toolkit
103 #endif // __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__