*   >> Leitura Educação Artigos >> science >> programação

Fazendo um jogo 3D com Ogre - Carregando um Scene

declarationsclass TiXmlElement ;

namespace Ogre {//Atacante classe declarações SceneManager; classe SceneNode;

classe nodeProperty {public: String nodeName; Cordas propertyNm; Cordas valueName; Cordas typeName;

nodeProperty (const string & nó, const string & propertyName, const string & valor, const string & tipo): nodeName (nó), propertyNm (propertyName), valueName (valor), typeName (tipo) {}};

classe DotSceneLoader {public: DotSceneLoader (): mSceneMgr

(0) {} Virtual ~ DotSceneLoader () {}

anular parseDotScene (const string & SceneName, const string & groupName, SceneManager * yourSceneMgr, SceneNode * pAttachNode = NULL, const string & sPrependNode = ""); Cadeia getProperty (const string & ndNm, const seqüência α);

nodeProperties std :: vector; StaticObjects std :: vector; dynamicObjects std :: vector;

protegida: void processScene (TiXmlElement * XmlRoot);

processNodes void (* TiXmlElement XMLNode); processExternals void (* TiXmlElement XMLNode); anular processEnvironment (TiXmlElement * XMLNode); anular processTerrain (TiXmlElement * XMLNode); vazio processUserDataReference (TiXmlElement * XMLNode, SceneNode * pParent = 0); vazio processUserDataReference (TiXmlElement * XMLNode, Entity * pEntity); anular processOctree (TiXmlElement * XMLNode); anular processLight (TiXmlElement * XMLNode, SceneNode * pParent = 0); vazio processCamera (TiXmlElement * XMLNode, SceneNode * pParent = 0);

processNode void (* TiXmlElement XMLNode, SceneNode * pParent = 0); vazio processLookTarget (TiXmlElement * XMLNode, SceneNode * pParent); vazio processTrackTarget (TiXmlElement * XMLNode, SceneNode * pParent); anular processEntity (TiXmlElement * XMLNode, SceneNode * pParent); vazio processParticleSystem (TiXmlElement * XMLNode, SceneNode * pParent); vazio processBillboardSet (TiXmlElement * XMLNode, SceneNode * pParent); anular processPlane (TiXmlElement * XMLNode, SceneNode * pParent);

anular processFog (TiXmlElement * XMLNode); anular processSkyBox (TiXmlElement * XMLNode); anular processSkyDome (TiXmlElement * XMLNode); anular processSkyPlane (TiXmlElement * XMLNode); processClipping void (* TiXmlElement XMLNode);

anular processLightRange (TiXmlElement * XMLNode, Luz * situação); processLightAttenuation void (* TiXmlElement XMLNode, Luz * situação);

corda getAttrib (TiXmlElement * XMLNode, const string & parâmetro, const string & defaultValue = ""); Real getAttribReal (TiXmlElement * XMLNode, const string & pa

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Leitura Educação Artigos,https://artigos.nmjjxx.com All rights reserved.