2 * Copyright (c) 2018 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.
18 #include <dali-toolkit/devel-api/controls/scene/scene.h>
21 #include <dali-toolkit/internal/controls/scene/scene-impl.h>
37 Scene::Scene( const Scene& handle )
42 Scene& Scene::operator=( const Scene& handle )
44 BaseHandle::operator=( handle );
48 Scene Scene::New( const std::string& filePath )
50 return Internal::Scene::New( filePath );
53 Scene Scene::New( const std::string& filePath, const std::string& diffuseTexturePath, const std::string& specularTexturePath, Vector4 ScaleFactor )
55 return Internal::Scene::New( filePath, diffuseTexturePath, specularTexturePath, ScaleFactor );
58 Scene::Scene( Internal::Scene& implementation )
59 : Control( implementation )
63 Scene::Scene( Dali::Internal::CustomActor* internal )
66 VerifyCustomActorPointer<Internal::Scene>( internal );
69 Scene Scene::DownCast( BaseHandle handle )
71 return Control::DownCast<Scene, Internal::Scene>( handle );
74 uint32_t Scene::GetAnimationCount()
76 return GetImpl( *this ).GetAnimationCount();
79 bool Scene::PlayAnimation( uint32_t index )
81 return GetImpl( *this ).PlayAnimation( index );
84 bool Scene::PlayAnimations()
86 return GetImpl( *this ).PlayAnimations();
89 bool Scene::SetLight( LightType type, Vector3 lightVector, Vector3 lightColor )
91 return GetImpl( *this ).SetLight( type, lightVector, lightColor );
94 CameraActor Scene::GetDefaultCamera()
96 return GetImpl( *this ).GetDefaultCamera();
99 CameraActor Scene::GetCamera( const int cameraIndex )
101 return GetImpl( *this ).GetCamera( cameraIndex );