Fix FrameBuffer sync issue, etc.
[platform/core/uifw/dali-core.git] / dali / integration-api / scene.cpp
index 0a1f690..b2a4922 100644 (file)
@@ -64,12 +64,12 @@ Scene& Scene::operator=( const Scene& rhs )
   return *this;
 }
 
-void Scene::Add( Actor& actor )
+void Scene::Add( Actor actor )
 {
   GetImplementation(*this).Add( GetImplementation(actor) );
 }
 
-void Scene::Remove( Actor& actor )
+void Scene::Remove( Actor actor )
 {
   GetImplementation(*this).Remove( GetImplementation(actor) );
 }
@@ -89,6 +89,16 @@ Vector2 Scene::GetDpi() const
   return GetImplementation(*this).GetDpi();
 }
 
+void Scene::SetBackgroundColor( const Vector4& color )
+{
+  GetImplementation(*this).SetBackgroundColor( color );
+}
+
+Vector4 Scene::GetBackgroundColor() const
+{
+  return GetImplementation(*this).GetBackgroundColor();
+}
+
 RenderTaskList Scene::GetRenderTaskList() const
 {
   return RenderTaskList( &GetImplementation(*this).GetRenderTaskList() );
@@ -119,6 +129,16 @@ Integration::RenderSurface* Scene::GetSurface() const
   return GetImplementation(*this).GetSurface();
 }
 
+void Scene::Discard()
+{
+  GetImplementation(*this).Discard();
+}
+
+Integration::Scene Scene::Get( Actor actor )
+{
+  return Dali::Integration::Scene( &GetImplementation( actor ).GetScene() );
+}
+
 void Scene::QueueEvent( const Integration::Event& event )
 {
   GetImplementation(*this).QueueEvent( event );