*   >> Lectura Educación Artículos >> science >> programación

Hacer un juego en 3D con Ogre - Carga de un Scene

setInitialState (); } //

escala Proceso pElement = XMLNode-> FirstChildElement ("escala") (?); si (pElement) {mAttachNode-> setScale (parseVector3 (pElement)); mAttachNode-> setInitialState (); }}

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

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

//niebla Proceso pElement = XMLNode-> FirstChildElement ("niebla"); si (pElement) processFog (pElement);

//Skybox Proceso pElement = XMLNode-> FirstChildElement ("Skybox") (?); si (pElement) processSkyBox (pElement);

//Proceso Skydome pElement = XMLNode-> FirstChildElement ("Skydome") (?); si (pElement) processSkyDome (pElement);

//SkyPlane Proceso pElement = XMLNode-> FirstChildElement ("SkyPlane") (?); si (pElement) processSkyPlane (pElement); (?)

//recorte Proceso pElement = XMLNode-> FirstChildElement ("clipping"); si (pElement) processClipping (pElement);

//Proceso colourAmbient pElement = XMLNode-> FirstChildElement ("colourAmbient") (?); si (pElement) mSceneMgr-> setAmbientLight (parseColour (pElement));

//Proceso colourBackground //(?)! todo Ajuste el color de fondo de todas las vistas (RenderWindow tiene que ser proporcionada a continuación) pElement = XMLNode-> FirstChildElement ("colourBackground"); si (pElement); //mSceneMgr-> set (parseColour (pElement)); (?)

//userDataReference Proceso pElement = XMLNode-> FirstChildElement ("userDataReference"); si (pElement) processUserDataReference (pElement);}

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

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

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

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

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

Cadena heightmapIm

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Lectura Educación Artículos,https://lectura.nmjjxx.com All rights reserved.