(*) = pElement XMLNode-> FirstChildElement ("billboardSet"); while (pElement) {processBillboardSet (pElement, pNode); pElement = pElement-> NextSiblingElement ("billboardSet"); } //
plano Processo (*) = pElement XMLNode-> FirstChildElement ("Plano"); while (pElement) {processPlane (pElement, pNode); pElement = pElement-> NextSiblingElement ("Plano"); } //Processo userDataReference
pElement = XMLNode-> FirstChildElement ("userDataReference") (?); if (pElement) processUserDataReference (pElement, pNode);}
anular DotSceneLoader :: processLookTarget (TiXmlElement * XMLNode, SceneNode * pParent) {//! todo É este correto? Porque eu não tenho a menor idéia atributos realmente
//Processo nodeName String = getAttrib (XMLNode, "nodeName");
Node :: TransformSpace relativeTo = Node :: TS_PARENT; SValue String = getAttrib (XMLNode, "relativeTo"); if (sValue == "local") relativeTo = Node :: TS_LOCAL; else if (sValue == "pai") relativeTo = Node :: TS_PARENT; else if (sValue == "mundo") relativeTo = Node :: TS_WORLD;
TiXmlElement * pElement;
//posição Processo posição Vector3 (?); pElement = XMLNode-> FirstChildElement ("posição"); se a posição (pElement) = parseVector3 (pElement);
//Processo localDirection Vector3 localDirection = Vector3 :: NEGATIVE_UNIT_Z (?); pElement = XMLNode-> FirstChildElement ("localDirection"); if (pElement) localDirection = parseVector3 (pElement);
//Configuração do try-alvo olhar {if (nodeName.
empty ()!) {SceneNode * pLookNode = mSceneMgr-> getSceneNode (nodeName); posição = pLookNode -> _ getDerivedPosition (); }
pParent-> lookAt (posição, relativeTo, localDirection); } Catch (Ogre :: Exceção & /* e * /) {LogManager :: getSingleton () logMessage ("[DotSceneLoader] Erro ao processar um alvo visual!.
"); }}
anular DotSceneLoader :: processTrackTarget (TiXmlElement * XMLNode, SceneNode * pParent) {//atributos Processo nodeName String = getAttrib (XMLNode, "nodeName");
TiXmlElement * pElement;
//Processo localDirection Vector3 localDirection = Vector3 :: NEGATIVE_UNIT_Z (?); pElement = XMLNode-> FirstChildElement ("localDirection"); if (pElement) localDirection = parseVector3 (pElement);
//Processo de compensar compensar Vector3 = Vector3 :: ZERO (?); pElement = XMLNode-> F