mGraphics( nullptr ),
mDisplayConnection( nullptr ),
mDepthBufferRequired( Integration::DepthBufferAvailable::FALSE ),
- mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE )
+ mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE ),
+ mBackgroundColor()
{}
/**
*/
virtual Integration::StencilBufferAvailable GetStencilBufferRequired() = 0;
+ /**
+ * @brief Sets the background color of the surface.
+ * @param[in] color The new background color
+ */
+ virtual void SetBackgroundColor( Vector4 color ) override
+ {
+ mBackgroundColor = color;
+ }
+
+ /**
+ * @brief Gets the background color of the surface.
+ * @return The background color
+ */
+ virtual Vector4 GetBackgroundColor() override
+ {
+ return mBackgroundColor;
+ }
+
public:
void SetAdaptor( Dali::Internal::Adaptor::AdaptorInternalServices& adaptor )
void SceneHolder::SetBackgroundColor( const Vector4& color )
{
- if( mScene )
+ if ( mSurface )
{
- mScene.SetBackgroundColor( color );
+ mSurface->SetBackgroundColor( color );
}
}
Vector4 SceneHolder::GetBackgroundColor() const
{
- return mScene ? mScene.GetBackgroundColor() : Vector4();
+ return mSurface ? mSurface->GetBackgroundColor() : Vector4();
}
void SceneHolder::SetAdaptor(Dali::Adaptor& adaptor)