X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fshader-effects%2Fmotion-blur-effect.h;h=e9da7f27ef2c28baeefdd66b9bfad9bc7808ac82;hp=3099d48244d76935f6224d523abcc654c2d0fd4d;hb=refs%2Ftags%2Faccepted%2Ftizen%2Fcommon%2F20150309.091951;hpb=e2eda444afbe82e9591fe198eef339227f90a616 diff --git a/dali-toolkit/public-api/shader-effects/motion-blur-effect.h b/dali-toolkit/public-api/shader-effects/motion-blur-effect.h index 3099d48..e9da7f2 100644 --- a/dali-toolkit/public-api/shader-effects/motion-blur-effect.h +++ b/dali-toolkit/public-api/shader-effects/motion-blur-effect.h @@ -1,28 +1,28 @@ #ifndef __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ #define __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES +#include +#include -// INTERNAL INCLUDES -#include - -namespace Dali DALI_IMPORT_API +namespace Dali { namespace Toolkit @@ -44,7 +44,7 @@ namespace Toolkit * Actor.SetShaderEffect( MotionBlurEffect ); * */ -class MotionBlurEffect : public ShaderEffect +class DALI_IMPORT_API MotionBlurEffect : public ShaderEffect { public: @@ -56,9 +56,11 @@ public: MotionBlurEffect(); /** - * Virtual destructor. + * @brief Destructor + * + * This is non-virtual since derived Handle types must not contain data or virtual methods. */ - virtual ~MotionBlurEffect(); + ~MotionBlurEffect(); /** * Create an initialized MotionBlurEffect @@ -72,18 +74,20 @@ public: * Create a MotionBlurEffect and attach it to the specified actor * The number of texture samples taken along the motion velocity vector of the * actor, producing the blur, is set to a default of 8. + * @param renderable actor to apply the effect to * @return A handle to a newly allocated Dali resource. */ - static MotionBlurEffect Apply( Actor handle ); + static MotionBlurEffect Apply( RenderableActor renderable ); /** * Create an initialized MotionBlurEffect * @param numBlurSamples The number of texture samples taken along the motion * velocity vector of the actor, producing the blur. A higher number gives a * smoother blur but costs more in terms of performance. + * @param numBlurSamples to have * @return A handle to a newly allocated Dali resource. */ - static MotionBlurEffect New( const unsigned int numBlurSamples ); + static MotionBlurEffect New( unsigned int numBlurSamples ); /** * Set texcoord scale property. This scales the offset for texture samples @@ -202,7 +206,7 @@ public: private: // Not intended for application developers - MotionBlurEffect( ShaderEffect handle ); + DALI_INTERNAL MotionBlurEffect( ShaderEffect handle ); }; } @@ -210,4 +214,3 @@ private: } #endif //#ifndef __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ -