2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali/public-api/actors/renderable-actor.h>
22 #include <dali/internal/event/actors/renderable-actor-impl.h>
27 const BlendingMode::Type RenderableActor::DEFAULT_BLENDING_MODE = BlendingMode::AUTO;
29 RenderableActor::RenderableActor()
33 RenderableActor RenderableActor::DownCast( BaseHandle handle )
35 return RenderableActor( dynamic_cast<Dali::Internal::RenderableActor*>(handle.GetObjectPtr()) );
38 RenderableActor::~RenderableActor()
42 void RenderableActor::SetSortModifier(float modifier)
44 GetImplementation(*this).SetSortModifier(modifier);
47 float RenderableActor::GetSortModifier() const
49 return GetImplementation(*this).GetSortModifier();
52 void RenderableActor::SetCullFace(const CullFaceMode mode)
54 GetImplementation(*this).SetCullFace(mode);
57 CullFaceMode RenderableActor::GetCullFace() const
59 return GetImplementation(*this).GetCullFace();
62 void RenderableActor::SetBlendMode( BlendingMode::Type mode )
64 GetImplementation(*this).SetBlendMode( mode );
67 BlendingMode::Type RenderableActor::GetBlendMode() const
69 return GetImplementation(*this).GetBlendMode();
72 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgba, BlendingFactor::Type destFactorRgba )
74 GetImplementation(*this).SetBlendFunc( srcFactorRgba, destFactorRgba );
77 void RenderableActor::SetBlendFunc( BlendingFactor::Type srcFactorRgb, BlendingFactor::Type destFactorRgb,
78 BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha )
80 GetImplementation(*this).SetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
83 void RenderableActor::GetBlendFunc( BlendingFactor::Type& srcFactorRgb, BlendingFactor::Type& destFactorRgb,
84 BlendingFactor::Type& srcFactorAlpha, BlendingFactor::Type& destFactorAlpha ) const
86 GetImplementation(*this).GetBlendFunc( srcFactorRgb, destFactorRgb, srcFactorAlpha, destFactorAlpha );
89 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgba )
91 GetImplementation(*this).SetBlendEquation( equationRgba );
94 void RenderableActor::SetBlendEquation( BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha )
96 GetImplementation(*this).SetBlendEquation( equationRgb, equationAlpha );
99 void RenderableActor::GetBlendEquation( BlendingEquation::Type& equationRgb, BlendingEquation::Type& equationAlpha ) const
101 GetImplementation(*this).GetBlendEquation( equationRgb, equationAlpha );
104 void RenderableActor::SetBlendColor( const Vector4& color )
106 GetImplementation(*this).SetBlendColor( color );
109 const Vector4& RenderableActor::GetBlendColor() const
111 return GetImplementation(*this).GetBlendColor();
114 void RenderableActor::SetFilterMode( FilterMode::Type minFilter, FilterMode::Type magFilter )
116 GetImplementation(*this).SetFilterMode( minFilter, magFilter );
119 void RenderableActor::GetFilterMode( FilterMode::Type& minFilter, FilterMode::Type& magFilter ) const
121 GetImplementation(*this).GetFilterMode( minFilter, magFilter );
124 RenderableActor::RenderableActor(Internal::RenderableActor* internal)