*   >> Lezen Onderwijs artikelen >> science >> programming

Het maken van een 3D-spel met Ogre - Laden van een Scene

setInitialState (); }}

ongeldig DotSceneLoader :: processExternals (TiXmlElement * XMLNode) {//! todo Implementeer dit}

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

//Proces mist pElement = XMLNode-> FirstChildElement ("mist"); if (pElement) processFog (pElement);

//Process skybox pElement = XMLNode-> FirstChildElement ("Skybox") (?); if (pElement) processSkyBox (pElement);

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

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

//Proces knippen pElement = XMLNode-> FirstChildElement ("clipping"); if (pElement) processClipping (pElement);

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

//Process colourBackground //(?)! todo Stel de achtergrondkleur van alle vensters (RenderWindow moet dan worden voorzien) pElement = XMLNode-> FirstChildElement ("colourBackground"); if (pElement); //mSceneMgr-> set (parseColour (pElement)); (?)

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

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

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

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

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

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

String heightmapImage = getAttrib (XMLNode, "Heightmap.image"); if (heightmapImage.size () = 0!) {terrainConfig + = "H

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Lezen Onderwijs artikelen,https://onderwijs.nmjjxx.com All rights reserved.