1 #ifndef __DALI_TOOLKIT_SHADER_COLOR_ADJUSTER_H__
2 #define __DALI_TOOLKIT_SHADER_COLOR_ADJUSTER_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/dali.h>
24 namespace Dali DALI_IMPORT_API
31 * ColorAdjuster is a custom shader effect to adjust the image color in HSV space.
33 class ColorAdjuster : public ShaderEffect
38 * Create an empty ColorAdjuster handle.
45 * This is non-virtual since derived Handle types must not contain data or virtual methods.
50 * Create an initialized ColorAdjuster.
51 * @param[in] hsvDelta The color difference to apply to the HSV channel.
52 * @param[in] ignoreAlpha If true, the result color will be opaque even though source has alpha value
53 * @return A handle to a newly allocated Dali resource.
55 static ColorAdjuster New( const Vector3& hsvDelta, bool ignoreAlpha = false );
58 * Get the name of the uHSVDelta uniform so that it can be animated
60 std::string GetHsvDeltaPropertyName() const;
62 private: // Not intended for application developers
64 ColorAdjuster( ShaderEffect handle );
68 } // namespace Toolkit
71 #endif /* __DALI_TOOLKIT_COLOR_ADJUSTER_EFFECT_H__ */