Added XML load filename and texture references for skybox

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4080
This commit is contained in:
mike
2012-08-24 00:37:01 +00:00
parent 7395a63f99
commit e56c217999
3 changed files with 92 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
#import "KRSpotLight.h"
#import "KRDirectionalLight.h"
#import "KRInstance.h"
#import "KRSkyBox.h"
KRNode::KRNode(KRContext &context, std::string name) : KRContextObject(context)
@@ -142,7 +143,8 @@ KRNode *KRNode::LoadXML(KRContext &context, tinyxml2::XMLElement *e) {
new_node = new KRSpotLight(context, szName);
} else if(strcmp(szElementName, "mesh") == 0) {
new_node = new KRInstance(context, szName, szName, KRMat4(), e->Attribute("light_map"));
} else if(strcmp(szElementName, "sky_box") == 0) {
new_node = new KRSkyBox(context, szName);
}
if(new_node) {