Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / public-api / actors / renderable-actor.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 // CLASS HEADER
18 #include <dali/public-api/actors/renderable-actor.h>
19
20 // INTERNAL INCLUDES
21 #include <dali/internal/event/actors/renderable-actor-impl.h>
22
23 namespace Dali
24 {
25
26 const BlendingMode::Type RenderableActor::DEFAULT_BLENDING_MODE = BlendingMode::AUTO;
27
28 RenderableActor::RenderableActor()
29 {
30 }
31
32 RenderableActor RenderableActor::DownCast( BaseHandle handle )
33 {
34   return RenderableActor( dynamic_cast<Dali::Internal::RenderableActor*>(handle.GetObjectPtr()) );
35 }
36
37 RenderableActor::~RenderableActor()
38 {
39 }
40
41 void RenderableActor::SetSortModifier(float modifier)
42 {
43   GetImplementation(*this).SetSortModifier(modifier);
44 }
45
46 float RenderableActor::GetSortModifier() const
47 {
48   return GetImplementation(*this).GetSortModifier();
49 }
50
51 void RenderableActor::SetCullFace(const CullFaceMode mode)
52 {
53   GetImplementation(*this).SetCullFace(mode);
54 }
55
56 CullFaceMode RenderableActor::GetCullFace() const
57 {
58   return GetImplementation(*this).GetCullFace();
59 }
60
61 void RenderableActor::SetBlendMode( BlendingMode::Type mode )
62 {
63   GetImplementation(*this).SetBlendMode( mode );
64 }
65
66 BlendingMode::Type RenderableActor::GetBlendMode() const
67 {
68   return GetImplementation(*this).GetBlendMode();
69 }
70
71 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgba, BlendingFactor::Type destFactorRgba )
72 {
73   GetImplementation(*this).SetBlendFunc( srcFactorRgba, destFactorRgba );
74 }
75
76 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgb,   BlendingFactor::Type destFactorRgb,
77                                     BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha )
78 {
79   GetImplementation(*this).SetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
80 }
81
82 void RenderableActor::GetBlendFunc( BlendingFactor::Type& srcFactorRgb,   BlendingFactor::Type& destFactorRgb,
83                                     BlendingFactor::Type& srcFactorAlpha, BlendingFactor::Type& destFactorAlpha ) const
84 {
85   GetImplementation(*this).GetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
86 }
87
88 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgba )
89 {
90   GetImplementation(*this).SetBlendEquation( equationRgba );
91 }
92
93 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha )
94 {
95   GetImplementation(*this).SetBlendEquation( equationRgb, equationAlpha );
96 }
97
98 void RenderableActor::GetBlendEquation( BlendingEquation::Type& equationRgb, BlendingEquation::Type& equationAlpha ) const
99 {
100   GetImplementation(*this).GetBlendEquation( equationRgb, equationAlpha );
101 }
102
103 void RenderableActor::SetBlendColor( const Vector4& color )
104 {
105   GetImplementation(*this).SetBlendColor( color );
106 }
107
108 const Vector4& RenderableActor::GetBlendColor() const
109 {
110   return GetImplementation(*this).GetBlendColor();
111 }
112
113 RenderableActor::RenderableActor(Internal::RenderableActor* internal)
114 : Actor(internal)
115 {
116 }
117
118 } // namespace Dali