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

Fazendo um jogo 3D com Ogre - Carregando um Scene

setInitialState (); }}

anular DotSceneLoader :: processExternals (TiXmlElement * XMLNode) {//! todo Implementar esta}

anular DotSceneLoader :: processEnvironment (TiXmlElement * XMLNode) {TiXmlElement * pElement (?);

//Processo de nevoeiro pElement = XMLNode-> FirstChildElement ("fog"); if (pElement) processFog (pElement);

//Processo SkyBOX pElement = XMLNode-> FirstChildElement ("Skybox") (?); if (pElement) processSkyBox (pElement);

//Processo Skydome pElement = XMLNode-> FirstChildElement ("Skydome") (?); if (pElement) processSkyDome (pElement);

//Processo skyPlane pElement = XMLNode-> FirstChildElement ("skyPlane") (?); if (pElement) processSkyPlane (pElement); (?)

//recorte Processo pElement = XMLNode-> FirstChildElement ("recorte"); if (pElement) processClipping (pElement);

//Processo colourAmbient pElement = XMLNode-> FirstChildElement ("colourAmbient") (?); if (pElement) mSceneMgr-> setAmbientLight (parseColour (pElement)); //Processo colourBackground

//(?)! todo Defina a cor de todos os visores (RenderWindow tem de ser fornecida em seguida) pElement = XMLNode-> FirstChildElement ("colourBackground") fundo; if (pElement); //mSceneMgr-> set (parseColour (pElement)); (?)

//Processo userDataReference pElement = XMLNode-> FirstChildElement ("userDataReference"); if (pElement) processUserDataReference (pElement);}

anular DotSceneLoader :: processTerrain (TiXmlElement * XMLNode) {std :: string terrainConfig; WorldTexture String = getAttrib (XMLNode, "WorldTexture"); se (worldTexture.

size () = 0!) + = {terrainConfig "WorldTexture ="; terrainConfig + = worldTexture; terrainConfig + = "\\ n"; }

detailTexture String = getAttrib (XMLNode, "DetailTexture"); se (detailTexture.size () = 0!) + = {terrainConfig "DetailTexture ="; terrainConfig + = detailTexture; terrainConfig + = "\\ n"; }

detailTile String = getAttrib (XMLNode, "DetailTile"); se (detailTile.size () = 0!) + = {terrainConfig "DetailTile ="; terrainConfig + = detailTile; terrainConfig + = "\\ n"; } PageSource String = getAttrib (XMLNode, "PageSource"); se (pageSource.

size () = 0!) + = {terrainConfig "PageSource ="; terrainConfig + = pageSource; terrainConfig + = "\\ n"; }

heightmapImage String = getAttrib (XMLNode, "Heightmap.image"); se (heightmapImage.size () = 0!) + = {terrainConfig "Heightmap.image ="; terrainConfig + = heightmapImage; terrainConfig + = "\\ n"; }

heightmapRawSize String = g

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.