D2d offscreen rendering finish up.

This commit is contained in:
jmsgrogan 2023-01-12 09:18:16 +00:00
parent 8c814ce89f
commit c63138c455
32 changed files with 288 additions and 64 deletions

View file

@ -8,7 +8,8 @@
Scene::Scene()
: mRootNode(std::make_unique<RootNode>()),
mSceneInfo(std::make_unique<SceneInfo>())
mSceneInfo(std::make_unique<SceneInfo>()),
mBackGroundColor(Color(255, 255, 255))
{
mRootNode->setName("Scene_RootNode");
}
@ -34,6 +35,16 @@ bool Scene::isEmpty() const
return mRootNode->getNumChildren() == 0;
}
const Color& Scene::getBackgroundColor() const
{
return mBackGroundColor;
}
void Scene::setBackgroundColor(const Color& color)
{
mBackGroundColor = color;
}
void Scene::updateNode(AbstractVisualNode* node)
{
for (auto child : node->getChildren())