*   >> lukeminen koulutus Artikkelit >> science >> programming

Making 3D-peli, jossa Ogre - lataaminen Scene

t;

//Prosessi sumu (?) pElement = XMLNode-> FirstChildElement ("sumussa"); jos (pElement) processFog (pElement);

//Menetelmä Skybox (?) pElement = XMLNode-> FirstChildElement ("Skybox"); jos (pElement) processSkyBox (pElement);

//Prosessi Skydome (?) pElement = XMLNode-> FirstChildElement ("Skydome"); jos (pElement) processSkyDome (pElement);

//Menetelmä skyPlane (?) pElement = XMLNode-> FirstChildElement ("skyPlane"); jos (pElement) processSkyPlane (pElement);

//Prosessi leikkaus (?) pElement = XMLNode-> FirstChildElement ("leikkaus"); jos (pElement) processClipping (pElement);

//Menetelmä colourAmbient (?) pElement = XMLNode-> FirstChildElement ("colourAmbient"); jos (pElement) mSceneMgr-> setAmbientLight (parseColour (pElement));

//Menetelmä colourBackground (?) //! todo Aseta taustaväri kaikkien kuvaporttia (RenderWindow on tarjottava sitten) pElement = XMLNode-> FirstChildElement ("colourBackground"); jos (pElement); //mSceneMgr-> asetettu (parseColour (pElement));

//Prosessi userDataReference (?) pElement = XMLNode-> FirstChildElement ("userDataReference"); jos (pElement) processUserDataReference (pElement);}

mitätöidä DotSceneLoader :: processTerrain (TiXmlElement * XMLNode) {std :: string terrainConfig; String worldTexture = getAttrib (XMLNode, "WorldTexture"); jos (worldTexture.

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

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

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

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

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

String heightmapRawSize = getAttrib (XMLNode "Heightmap.raw.size"); jos (heightmapRawSize.size ()! = 0) {terrainConfig + = "Heightmap.raw.size ="; terrainConfig + = heightmapRawSize; terrainConfig + = "\\ n"; }

String heightmapRawBpp = getAttrib (XMLNode "Heightmap.

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