*   >> Lese Utdanning Artikler >> science >> programming

Å gjøre en 3D-spill med Ogre - Legge en Scene

Attribute ("forfatter"));

LogManager :: getSingleton () logMessage (melding);.
TiXmlElement * pElement;

//Prosess noder pElement = XMLRoot-> FirstChildElement ("noder") (?); if (pElement) processNodes (pElement), (?)

//Prosess externals pElement = XMLRoot-> FirstChildElement ("externals"); if (pElement) processExternals (pElement), (?)

//Process miljø pElement = XMLRoot-> FirstChildElement ("miljø"); if (pElement) processEnvironment (pElement), (?)

//Process terreng pElement = XMLRoot-> FirstChildElement ("terreng"); if (pElement) processTerrain (pElement);

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

//Process octree pElement = XMLRoot-> FirstChildElement ("octree"); if (pElement) processOctree (pElement);

//Process lys pElement = XMLRoot-> FirstChildElement ("lys") (?); if (pElement) processLight (pElement), (?)

//Process kamera pElement = XMLRoot-> FirstChildElement ("kamera"); if (pElement) processCamera (pElement);}

annullere DotSceneLoader :: processNodes (TiXmlElement * XMLNode) {TiXmlElement * pElement;

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

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

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

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

annullere DotSceneLoader :: processExternals (TiXmlElement * XMLNode) {//! todo Implementere dette}

annul

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Lese Utdanning Artikler,https://utdanning.nmjjxx.com All rights reserved.