1 #ifndef __DALI_BLENDING_H__
2 #define __DALI_BLENDING_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/public-api/common/dali-common.h>
27 namespace BlendingMode
30 * @brief Blending mode.
31 * @see Dali::RenderableActor::SetBlendMode() and Dali::RenderableActor::GetBlendMode()
35 OFF, ///< Blending is disabled.
36 AUTO, ///< Blending is enabled if there is alpha channel.
37 ON ///< Blending is enabled.
40 } //namespace BlendingMode
42 namespace BlendingFactor
45 * @brief Blending Factor.
47 * @see Dali::RenderableActor::SetBlendFunc() and Dali::RenderableActor::GetBlendFunc()
54 ONE_MINUS_SRC_COLOR = 0x0301,
56 ONE_MINUS_SRC_ALPHA = 0x0303,
58 ONE_MINUS_DST_ALPHA = 0x0305,
60 ONE_MINUS_DST_COLOR = 0x0307,
61 SRC_ALPHA_SATURATE = 0x0308,
62 CONSTANT_COLOR = 0x8001,
63 ONE_MINUS_CONSTANT_COLOR = 0x8002,
64 CONSTANT_ALPHA = 0x8003,
65 ONE_MINUS_CONSTANT_ALPHA = 0x8004
68 } // namespace BlendingFactor
70 namespace BlendingEquation
73 * @brief Blending Equation.
75 * @see Dali::RenderableActor::SetBlendEquation() and Dali::RenderableActor::GetBlendEquation()
81 REVERSE_SUBTRACT = 0x800B
84 } // namespace BlendingEquation
86 DALI_IMPORT_API extern const BlendingFactor::Type DEFAULT_BLENDING_SRC_FACTOR_RGB; ///< BlendingFactor::SRC_ALPHA
87 DALI_IMPORT_API extern const BlendingFactor::Type DEFAULT_BLENDING_DEST_FACTOR_RGB; ///< BlendingFactor::ONE_MINUS_SRC_ALPHA
88 DALI_IMPORT_API extern const BlendingFactor::Type DEFAULT_BLENDING_SRC_FACTOR_ALPHA; ///< BlendingFactor::ONE
89 DALI_IMPORT_API extern const BlendingFactor::Type DEFAULT_BLENDING_DEST_FACTOR_ALPHA; ///< BlendingFactor::ONE_MINUS_SRC_ALPHA
91 DALI_IMPORT_API extern const BlendingEquation::Type DEFAULT_BLENDING_EQUATION_RGB; ///< BlendingEquation::ADD
92 DALI_IMPORT_API extern const BlendingEquation::Type DEFAULT_BLENDING_EQUATION_ALPHA; ///< BlendingEquation::ADD
96 #endif // __DALI_BLENDING_H__