Implementation of FrameBuffer resolution parameters, and saving in

session file of rendering resolution.
This commit is contained in:
brunoherbelin
2020-05-11 23:50:42 +02:00
parent 5a7e1fcbb8
commit 32030e66dc
11 changed files with 113 additions and 30 deletions

View File

@@ -88,6 +88,10 @@ static void saveSession(const std::string& filename, Session *session)
XMLElement *geometry = xmlDoc.NewElement( "Geometry" );
geometry->InsertEndChild( SessionVisitor::NodeToXML(*session->config(View::GEOMETRY), &xmlDoc));
views->InsertEndChild(geometry);
XMLElement *render = xmlDoc.NewElement( "Rendering" );
render->InsertEndChild( SessionVisitor::NodeToXML(*session->config(View::RENDERING), &xmlDoc));
views->InsertEndChild(render);
}
// save file to disk
@@ -401,6 +405,9 @@ void Mixer::swap()
mixing_.scene.root()->copyTransform( session_->config(View::MIXING) );
geometry_.scene.root()->copyTransform( session_->config(View::GEOMETRY) );
// set resolution
session_->setResolution( session_->config(View::RENDERING)->scale_ );
// no current source
current_source_ = session_->end();
current_source_index_ = -1;