Dali 3D User Interface Engine
blending-options.h
Go to the documentation of this file.
1 #ifndef __DALI_BLENDING_OPTIONS_H__
2 #define __DALI_BLENDING_OPTIONS_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // INTERNAL INCLUDES
24 
25 namespace Dali
26 {
27 
28 namespace Internal
29 {
30 
31 // This is an optimization to avoid storing 6 separate blending values
33 {
38 
43 
48  void SetBitmask( unsigned int bitmask );
49 
54  unsigned int GetBitmask() const;
55 
59  void SetBlendFunc( BlendingFactor::Type srcFactorRgb, BlendingFactor::Type destFactorRgb,
60  BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha );
61 
66 
71 
76 
81 
85  void SetBlendEquation( BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha );
86 
91 
96 
102  void SetBlendColor( const Vector4& color );
103 
108  const Vector4* GetBlendColor() const;
109 
110 private:
111 
112  // Undefined copy constructor.
113  BlendingOptions(const BlendingOptions& typePath);
114 
115  // Undefined copy constructor.
117 
118 private:
119 
120  unsigned int mBitmask;
121 
123 
124 };
125 
126 } // namespace Internal
127 
128 } // namespace Dali
129 
130 #endif // __DALI_BLENDING_OPTIONS_H__
Dali Docs Home
Read more about Dali