X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fshader-effects%2Fdissolve-effect.h;h=a4ae5646758f8325feda7e6997764eb3b714a62a;hp=5c929b9234876eb7b86c19660b27dcaf54f3a43f;hb=072e6002280ed51a637ed54e0451bdbbe3c4ec79;hpb=e2dd845116bdbe8bd852c73023ccea33ba1c8576 diff --git a/dali-toolkit/devel-api/shader-effects/dissolve-effect.h b/dali-toolkit/devel-api/shader-effects/dissolve-effect.h index 5c929b9..a4ae564 100644 --- a/dali-toolkit/devel-api/shader-effects/dissolve-effect.h +++ b/dali-toolkit/devel-api/shader-effects/dissolve-effect.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H__ -#define __DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H__ +#ifndef DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H +#define DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -20,7 +20,10 @@ // EXTERNAL INCLUDES #include -#include +#include + +// INTERNAL INCLUDES +#include namespace Dali { @@ -113,7 +116,7 @@ inline void DissolveEffectSetCentralLine( Actor& actor, const Vector2& position, /** * @brief Create a new Dissolve effect * - * DissolveEffect is a custom shader effect to achieve Dissolve effects in Image actors. + * DissolveEffect is a custom shader effect to achieve Dissolve effects in image views. * * Animatable/Constrainable uniforms: * "uPercentage" - This value is proportional to the distortion applied; a value of zero means no distortion. @@ -214,15 +217,15 @@ inline Property::Map CreateDissolveEffect( bool useHighPrecision = true ) vertexShaderString.append( vertexShader ); fragmentShaderString.append( fragmentShader ); - customShader[ "vertexShader" ] = vertexShaderString; - customShader[ "fragmentShader" ] = fragmentShaderString; + customShader[ Visual::Shader::Property::VERTEX_SHADER ] = vertexShaderString; + customShader[ Visual::Shader::Property::FRAGMENT_SHADER ] = fragmentShaderString; - customShader[ "subdivideGridX" ] = 20; - customShader[ "subdivideGridY" ] = 20; + customShader[ Visual::Shader::Property::SUBDIVIDE_GRID_X ] = 20; + customShader[ Visual::Shader::Property::SUBDIVIDE_GRID_Y ] = 20; - customShader[ "hints" ] = "outputIsTransparent"; + customShader[ Visual::Shader::Property::HINTS ] = Shader::Hint::OUTPUT_IS_TRANSPARENT; - map[ "shader" ] = customShader; + map[ Toolkit::Visual::Property::SHADER ] = customShader; return map; } @@ -230,4 +233,4 @@ inline Property::Map CreateDissolveEffect( bool useHighPrecision = true ) } // namespace Dali -#endif // __DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H__ +#endif // DALI_TOOLKIT_SHADER_EFFECT_DISSOLVE_H