X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fshader-effects%2Fimage-region-effect.h;h=0593d7d4acc4b50e586ec60497035fd8a9c87181;hb=ddd53ec00e62ad53fcdf97c2bc3fdf3911c92214;hp=4f3f3f175aa0385911537947259fc924adfe89ba;hpb=abf2533b2621e07a62a7ac65944959a18bd89673;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/shader-effects/image-region-effect.h b/dali-toolkit/devel-api/shader-effects/image-region-effect.h index 4f3f3f1..0593d7d 100644 --- a/dali-toolkit/devel-api/shader-effects/image-region-effect.h +++ b/dali-toolkit/devel-api/shader-effects/image-region-effect.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_IMAGE_REGION_EFFECT_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -21,6 +21,9 @@ // EXTERNAL INCLUDES #include +// INTERNAL INCLUDES +#include + namespace Dali { @@ -38,7 +41,7 @@ namespace Toolkit * "uBottomRight" - The bottom-right corner of the image region. The coordinates are in percentage, * (0,0) being the top-left and (1,1) the bottom right of the original image * - * @return A handle to a newly allocated ShaderEffect + * @return A property map of the required shader */ inline Property::Map CreateImageRegionEffect() { @@ -73,9 +76,9 @@ inline Property::Map CreateImageRegionEffect() Property::Map map; Property::Map customShader; - customShader[ "vertexShader" ] = vertexShader; + customShader[ Visual::Shader::Property::VERTEX_SHADER ] = vertexShader; - map[ "shader" ] = customShader; + map[ Toolkit::Visual::Property::SHADER ] = customShader; return map; }