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%2Fmotion-blur-effect.h;h=1e16f21735e6a01b4414e5b0ae870868ad734e1c;hp=9e6adc7e9fed597eaf85133eb1a5fa58cf2c5f96;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=f31a7b83577275e88914a00f37c4ff5224336553 diff --git a/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h b/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h index 9e6adc7..1e16f21 100644 --- a/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h +++ b/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ -#define __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ +#ifndef DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H +#define DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_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. @@ -19,7 +19,13 @@ */ // EXTERNAL INCLUDES -#include +#include +#include +#include +#include + +// INTERNAL INCLUDES +#include namespace Dali { @@ -223,16 +229,15 @@ inline Property::Map CreateMotionBlurEffect() Property::Map map; Property::Map customShader; - customShader[ "vertexShader" ] = vertexSource; - customShader[ "fragmentShader" ] = fragmentSource; + customShader[ Visual::Shader::Property::VERTEX_SHADER ] = vertexSource; + customShader[ Visual::Shader::Property::FRAGMENT_SHADER ] = fragmentSource; - customShader[ "subdivideGridX" ] = 10; - customShader[ "subdivideGridY" ] = 10; + customShader[ Visual::Shader::Property::SUBDIVIDE_GRID_X ] = 10; + customShader[ Visual::Shader::Property::SUBDIVIDE_GRID_Y ] = 10; - // NOTE: we must turn on alpha blending for the actor (HINT_BLENDING) - customShader[ "hints" ] = "outputIsTransparent"; + customShader[ Visual::Shader::Property::HINTS ] = Shader::Hint::OUTPUT_IS_TRANSPARENT; - map[ "shader" ] = customShader; + map[ Toolkit::Visual::Property::SHADER ] = customShader; return map; } @@ -240,4 +245,4 @@ inline Property::Map CreateMotionBlurEffect() } -#endif //#ifndef __DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H__ +#endif // DALI_TOOLKIT_SHADER_EFFECT_MOTION_BLUR_H