cordes vertexProgramMorph = getAttrib (XMLNode, "VertexProgramMorph"); si (vertexProgramMorph.size ()! = 0) {terrainConfig + = "VertexProgramMorph ="; terrainConfig + = vertexProgramMorph; terrainConfig + = "\\ n"; }
cordes morphLODFactorParamName = getAttrib (XMLNode, "MorphLODFactorParamName"); si {terrainConfig + = "MorphLODFactorParamName =" (morphLODFactorParamName.
size ()! = 0); terrainConfig + = morphLODFactorParamName; terrainConfig + = "\\ n"; }
cordes morphLODFactorParamIndex = getAttrib (XMLNode, "MorphLODFactorParamIndex"); si {terrainConfig + = "MorphLODFactorParamIndex =" (morphLODFactorParamIndex.size ()! = 0); terrainConfig + = morphLODFactorParamIndex; terrainConfig + = "\\ n"; }
cordes lodMorphStart = getAttrib (XMLNode, "LODMorphStart"); si (lodMorphStart.size ()! = 0) {terrainConfig + = "LODMorphStart ="; terrainConfig + = lodMorphStart; terrainConfig + = "\\ n"; } void * pmem
= OGRE_ALLOC_T (unsigned char, terrainConfig.
length () + 1, MEMCATEGORY_GENERAL); memset (PMEM, 0, terrainConfig.length () + 1); memcpy (pmem, terrainConfig.c_str (), terrainConfig.length () + 1); DataStreamPtr pStr (nouvelle Ogre :: MemoryDataStream (pmem, terrainConfig.length () + 1, true));
this-> mSceneMgr-> setWorldGeometry (pStr);}
annuler DotSceneLoader :: processUserDataReference (TiXmlElement * XMLNode , SceneNode * pParent) {//! Mettre en œuvre cettetodo}
annuler DotSceneLoader :: processOctree (TiXmlElement * XMLNode) {//! Mettre en œuvre cettetodo}
annuler DotSceneLoader :: processLight (TiXmlElement * XMLNode, SceneNode * pParent) {//Traitement attributs String name = getAttrib (XMLNode, "nom"); String id = getAttrib (XMLNode, "id"); //
Créer la Lumière de lumière * sort = mSceneMgr-> createLight (nom); si (pParent) pParent-> AttachObject (sort);
cordes sValue = getAttrib (XMLNode, «type»); si (sValue == "point") pLight-> setType (Light :: LT_POINT); else if (sValue == "directionnel") pLight-> setType (Light :: LT_DIRECTIONAL); else if (sValue == "spot") pLight-> setType (Light :: LT_SPOTLIGHT); else if (sValue == "radPoint") pLight-> setType (Light :: LT_POINT);
pLight-> setVisible (getAttribBool (XMLNode, "visible", true)); pLight-> setCastShadows (getAttribBool (XMLNode, "castShadows", true));
TiXmlElement * pElement;
//position de processus pElement = XMLNode-> FirstChildElement ("position") (?); si (pElement) pLight->
2 et jailbreak pour 1G, 2G, 3G B…