2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 #include <dali/public-api/actors/renderable-actor.h>
21 #include <dali/internal/event/actors/renderable-actor-impl.h>
26 const BlendingMode::Type RenderableActor::DEFAULT_BLENDING_MODE = BlendingMode::AUTO;
28 RenderableActor::RenderableActor()
32 RenderableActor RenderableActor::DownCast( BaseHandle handle )
34 return RenderableActor( dynamic_cast<Dali::Internal::RenderableActor*>(handle.GetObjectPtr()) );
37 RenderableActor::~RenderableActor()
41 void RenderableActor::SetSortModifier(float modifier)
43 GetImplementation(*this).SetSortModifier(modifier);
46 float RenderableActor::GetSortModifier() const
48 return GetImplementation(*this).GetSortModifier();
51 void RenderableActor::SetCullFace(const CullFaceMode mode)
53 GetImplementation(*this).SetCullFace(mode);
56 CullFaceMode RenderableActor::GetCullFace() const
58 return GetImplementation(*this).GetCullFace();
61 void RenderableActor::SetBlendMode( BlendingMode::Type mode )
63 GetImplementation(*this).SetBlendMode( mode );
66 BlendingMode::Type RenderableActor::GetBlendMode() const
68 return GetImplementation(*this).GetBlendMode();
71 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgba, BlendingFactor::Type destFactorRgba )
73 GetImplementation(*this).SetBlendFunc( srcFactorRgba, destFactorRgba );
76 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgb, BlendingFactor::Type destFactorRgb,
77 BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha )
79 GetImplementation(*this).SetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
82 void RenderableActor::GetBlendFunc( BlendingFactor::Type& srcFactorRgb, BlendingFactor::Type& destFactorRgb,
83 BlendingFactor::Type& srcFactorAlpha, BlendingFactor::Type& destFactorAlpha ) const
85 GetImplementation(*this).GetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
88 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgba )
90 GetImplementation(*this).SetBlendEquation( equationRgba );
93 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha )
95 GetImplementation(*this).SetBlendEquation( equationRgb, equationAlpha );
98 void RenderableActor::GetBlendEquation( BlendingEquation::Type& equationRgb, BlendingEquation::Type& equationAlpha ) const
100 GetImplementation(*this).GetBlendEquation( equationRgb, equationAlpha );
103 void RenderableActor::SetBlendColor( const Vector4& color )
105 GetImplementation(*this).SetBlendColor( color );
108 const Vector4& RenderableActor::GetBlendColor() const
110 return GetImplementation(*this).GetBlendColor();
113 RenderableActor::RenderableActor(Internal::RenderableActor* internal)