Initial integration of Mixer, Views and Source classes.

First tests with user interface and Mixing View
This commit is contained in:
brunoherbelin
2020-04-19 00:49:55 +02:00
parent c7a69c1ac8
commit 4f5a71970d
29 changed files with 1211 additions and 630 deletions

View File

@@ -69,7 +69,7 @@ void SessionVisitor::visit(Primitive &n)
XMLElement *Primitive = xmlCurrent_;
xmlCurrent_ = xmlDoc_->NewElement("Shader");
n.getShader()->accept(*this);
n.shader()->accept(*this);
Primitive->InsertEndChild(xmlCurrent_);
// revert to primitive as current
@@ -172,12 +172,12 @@ void SessionVisitor::visit(Mesh &n)
// Node of a different type
xmlCurrent_->SetAttribute("type", "Mesh");
XMLText *filename = xmlDoc_->NewText( n.getResource().c_str() );
XMLText *filename = xmlDoc_->NewText( n.meshPath().c_str() );
XMLElement *obj = xmlDoc_->NewElement("resource");
obj->InsertEndChild(filename);
xmlCurrent_->InsertEndChild(obj);
filename = xmlDoc_->NewText( n.getTexture().c_str() );
filename = xmlDoc_->NewText( n.texturePath().c_str() );
XMLElement *tex = xmlDoc_->NewElement("texture");
tex->InsertEndChild(filename);
xmlCurrent_->InsertEndChild(tex);
@@ -194,7 +194,7 @@ void SessionVisitor::visit(Scene &n)
// start recursive traverse from root node
xmlCurrent_ = xmlRoot_;
n.getRoot()->accept(*this);
n.root()->accept(*this);
}
void SessionVisitor::save(std::string filename)