Implemented persistence of lighting information through XML files

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4034
This commit is contained in:
kearwood
2012-04-12 01:27:30 +00:00
parent 4215bf8b22
commit d4b80212cc
10 changed files with 90 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ std::string KRInstance::getElementName() {
tinyxml2::XMLElement *KRInstance::saveXML( tinyxml2::XMLNode *parent)
{
tinyxml2::XMLElement *e = KRNode::saveXML(parent);
e->SetAttribute("mesh_name", m_model_name.c_str());
e->SetAttribute("lightmap", m_shadowMap.c_str());
return e;
}