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:
@@ -136,6 +136,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
if([fileName hasSuffix: @".krscene"]) {
|
||||
NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
[renderEngine loadResource: path];
|
||||
}
|
||||
}
|
||||
|
||||
KRModelManager *pModelManager = [renderEngine getModelManager];
|
||||
//m_scene.addInstance(pModelManager->getModel("fachwerkhaus12"), KRMat4());
|
||||
//m_scene.addInstance(pModelManager->getModel("ballroom"), KRMat4());
|
||||
|
||||
Reference in New Issue
Block a user