Commit 11e37d62 authored by hybrid's avatar hybrid

Improved inputs handling. Implemented instance before geometry handling. Enhanced debug output.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3223 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9e23a048
This diff is collapsed.
...@@ -247,12 +247,14 @@ private: ...@@ -247,12 +247,14 @@ private:
f32 readFloatNode(io::IXMLReaderUTF8* reader); f32 readFloatNode(io::IXMLReaderUTF8* reader);
//! reads a <instance> node //! reads a <instance> node
void readInstanceNode(io::IXMLReaderUTF8* reader, scene::ISceneNode* parent, void readInstanceNode(io::IXMLReaderUTF8* reader,
scene::ISceneNode** outNode, CScenePrefab* p=0); scene::ISceneNode* parent, scene::ISceneNode** outNode,
CScenePrefab* p=0, const core::stringc& type=core::stringc());
//! creates a scene node from Prefabs (with name given in 'url') //! creates a scene node from Prefabs (with name given in 'url')
void instantiateNode(scene::ISceneNode* parent, scene::ISceneNode** outNode=0, void instantiateNode(scene::ISceneNode* parent, scene::ISceneNode** outNode=0,
CScenePrefab* p=0, const core::stringc& url=""); CScenePrefab* p=0, const core::stringc& url="",
const core::stringc& type=core::stringc());
//! reads a <light> element and stores it as prefab //! reads a <light> element and stores it as prefab
void readLightPrefab(io::IXMLReaderUTF8* reader); void readLightPrefab(io::IXMLReaderUTF8* reader);
...@@ -306,7 +308,7 @@ private: ...@@ -306,7 +308,7 @@ private:
void readColladaInputs(io::IXMLReaderUTF8* reader, const core::stringc& parentName); void readColladaInputs(io::IXMLReaderUTF8* reader, const core::stringc& parentName);
//! reads a collada input tag and adds it to the input parameter //! reads a collada input tag and adds it to the input parameter
void readColladaInput(io::IXMLReaderUTF8* reader); void readColladaInput(io::IXMLReaderUTF8* reader, core::array<SColladaInput>& inputs);
//! returns a collada input or none if not found //! returns a collada input or none if not found
SColladaInput* getColladaInput(ECOLLADA_INPUT_SEMANTIC input); SColladaInput* getColladaInput(ECOLLADA_INPUT_SEMANTIC input);
...@@ -319,8 +321,8 @@ private: ...@@ -319,8 +321,8 @@ private:
//! reads a polygons section and creates a mesh from it //! reads a polygons section and creates a mesh from it
void readPolygonSection(io::IXMLReaderUTF8* reader, void readPolygonSection(io::IXMLReaderUTF8* reader,
const core::stringc& vertexPositionSource, core::array<SSource>& sources, core::array<SSource>& sources, scene::SMesh* mesh,
scene::SMesh* mesh, const core::stringc& geometryId); const core::stringc& geometryId);
//! finds a material, possible instancing it //! finds a material, possible instancing it
const SColladaMaterial * findMaterial(const core::stringc & materialName); const SColladaMaterial * findMaterial(const core::stringc & materialName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment