/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Integration
{
-Scene Scene::New( const Size& size )
+Scene Scene::New( Size size )
{
Internal::ScenePtr internal = Internal::Scene::New( size );
return Scene( internal.Get() );
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() );
return GetImplementation(*this).GetLayer( depth );
}
-void Scene::SetSurface( Integration::RenderSurface& surface )
+void Scene::SurfaceResized( float width, float height, int orientation, bool forceUpdate )
+{
+ GetImplementation( *this ).SurfaceResized( width, height, orientation, forceUpdate );
+}
+
+void Scene::SurfaceReplaced()
{
- GetImplementation(*this).SetSurface( surface );
+ GetImplementation( *this ).SurfaceReplaced();
}
-Integration::RenderSurface* Scene::GetSurface() const
+void Scene::Discard()
{
- return GetImplementation(*this).GetSurface();
+ GetImplementation(*this).Discard();
}
Integration::Scene Scene::Get( Actor actor )