*   >> läser Utbildning artiklar >> science >> programming

Att göra en 3D-spel med Ogre - Laddar ett Scene

Attribut ("författare"));

LogManager :: getSingleton () logMessage (meddelande);.
TiXmlElement * pElement,

//Process noder pElement = XMLRoot-> FirstChildElement ("noder") (?); IF (pElement) processNodes (pElement), (?) Review //Process Externals pElement = XMLRoot-> FirstChildElement ("externa"); if (pElement) processExternals (pElement), (?) Review //processmiljö pElement = XMLRoot-> FirstChildElement ("miljö"); if (pElement) processEnvironment (pElement), (?) Review //Process terräng pElement = XMLRoot-> FirstChildElement ("terräng"); if (pElement) processTerrain (pElement);

//Process userDataReference pElement = XMLRoot-> FirstChildElement ("userDataReference") (?); if (pElement) processUserDataReference (pElement), (?) Review //Process octree pElement = XMLRoot-> FirstChildElement ("octree"); if (pElement) processOctree (pElement);

//Process ljus pElement = XMLRoot-> FirstChildElement ("light") (?); if (pElement) processLight (pElement), (?) Review //Process kamera pElement = XMLRoot-> FirstChildElement ("kamera"); if (pElement) processCamera (pElement);} Omdömen annullera DotSceneLoader :: processNodes (TiXmlElement * XMLNode) {TiXmlElement * pElement,

//Process nod (*) pElement = XMLNode-> FirstChildElement ("nod"); while (pElement) {processNode (pElement); pElement = pElement-> NextSiblingElement ("nod"); }

//Process ställning pElement = XMLNode-> FirstChildElement ("position") (?); if (pElement) {mAttachNode-> setPosition (parseVector3 (pElement)); mAttachNode-> setInitialState (); }

//Process rotation pElement = XMLNode-> FirstChildElement ("rotation") (?); if (pElement) {mAttachNode-> setOrientation (parseQuaternion (pElement)); mAttachNode-> setInitialState (); }

//Process skala pElement = XMLNode-> FirstChildElement ("skala") (?); if (pElement) {mAttachNode-> setScale (parseVector3 (pElement)); mAttachNode-> setInitialState (); }}

annullera DotSceneLoader :: processExternals (TiXmlElement * XMLNode) {//! todo Genomföra detta} Omdömen void DotSceneLoader :: processEnvironment (TiXmlElement * XMLNode) {TiXmlElement * pElement, (?) Review //Process dimma pElement = XMLNode->

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 läser Utbildning artiklar,https://utbildning.nmjjxx.com All rights reserved.