*   >> Lecture Éducation Articles >> science >> la programmation

Faire un jeu en 3D avec Ogre - Chargement d'un Scene

, "texte source"); si (pageSource.size ()! = 0) {terrainConfig + = "texte source ="; terrainConfig + = texte source; terrainConfig + = "\\ n"; }

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

cordes heightmapRawSize = getAttrib (XMLNode, "Heightmap.raw.size"); si (heightmapRawSize.size ()! = 0) {terrainConfig + = "Heightmap.raw.

size ="; terrainConfig + = heightmapRawSize; terrainConfig + = "\\ n"; }

cordes heightmapRawBpp = getAttrib (XMLNode, "Heightmap.raw.bpp"); si (heightmapRawBpp.size ()! = 0) {terrainConfig + = "Heightmap.raw.bpp ="; terrainConfig + = heightmapRawBpp; terrainConfig + = "\\ n"; }

cordes pageSize = getAttrib (XMLNode, "PageSize"); si (pageSize.size ()! = 0) {terrainConfig + = "PageSize ="; terrainConfig + = pageSize; terrainConfig + = "\\ n"; }

cordes tileSize = getAttrib (XMLNode, "TileSize"); si {terrainConfig + = "TileSize =" (tileSize.

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

cordes maxPixelError = getAttrib (XMLNode, "MaxPixelError"); si {terrainConfig + = "MaxPixelError =" (maxPixelError.size ()! = 0); terrainConfig + = maxPixelError; terrainConfig + = "\\ n"; }

cordes pageWorldX = getAttrib (XMLNode, "PageWorldX"); si (pageWorldX.size ()! = 0) {terrainConfig + = "PageWorldX ="; terrainConfig + = pageWorldX; terrainConfig + = "\\ n"; }

cordes pageWorldZ = getAttrib (XMLNode, "PageWorldZ"); si (pageWorldZ.

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

cordes maxHeight = getAttrib (XMLNode, "MaxHeight"); si (maxHeight.size ()! = 0) {terrainConfig + = "MaxHeight ="; terrainConfig + = maxHeight; terrainConfig + = "\\ n"; }

cordes maxMipMapLevel = getAttrib (XMLNode, "MaxMipMapLevel"); si {terrainConfig + = "MaxMipMapLevel =" (maxMipMapLevel.size ()! = 0); terrainConfig + = maxMipMapLevel; terrainConfig + = "\\ n"; }

cordes vertexNormals = getAttrib (XMLNode, "VertexNormals"); (si vertexNormals.

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

cordes vertexColors = getAttrib (XMLNode, "VertexColors»); si (vertexColors.size ()! = 0) {terrainConfig + = "VertexColors ="; vertexColors + = vertexColors; terrainConfig + = "\\ n"; }

cordes useTriStrips = getAttrib (XMLNode, "UseT

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Lecture Éducation Articles,https://lecture.nmjjxx.com All rights reserved.