*   >> läser Utbildning artiklar >> science >> programming

Att göra en 3D-spel med Ogre - Laddar ett Scene

FirstChildElement ("dimma"); 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), (?) Review //Process klippning pElement = XMLNode-> FirstChildElement ("klippning"); if (pElement) processClipping (pElement);

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

//Process colourBackground //(?)! todo Ställ bakgrundsfärgen på alla vyportar (RenderWindow måste lämnas sedan) pElement = XMLNode-> FirstChildElement ("colourBackground"); if (pElement); //mSceneMgr-> set (parseColour (pElement)), (?) Review //Process userDataReference pElement = XMLNode-> FirstChildElement ("userDataReference"); if (pElement) processUserDataReference (pElement);} Omdömen annullera 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 pageSource = getAttrib (XMLNode, "PageSource"); if (pageSource.

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

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

String heightmapRawSize = getAttrib (XMLNode, "Heightmap.raw.size"); if (heightmapRawSize.size () = 0!) {terrainConfig + = "Heightmap.raw.size ="; terrainConfig + = heightmapRawSize; terrainConfi

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 läser Utbildning artiklar,https://utbildning.nmjjxx.com All rights reserved.