*   >> Чтение Образование Статьи >> science >> programming

Создание 3D-игры с Огре - загрузка файла Scene

setInitialState (); } //

вращения Процесс pElement = XMLNode-> FirstChildElement ("вращение") (?); если (pElement) {mAttachNode-> setOrientation (parseQuaternion (pElement)); mAttachNode-> setInitialState (); } //

масштаб Процесс pElement = XMLNode-> FirstChildElement ("Масштаб") (?); если (pElement) {mAttachNode-> setScale (parseVector3 (pElement)); mAttachNode-> setInitialState (); }}

аннулированию DotSceneLoader :: processExternals (TiXmlElement * XMLNode) {//! todo Реализация этого}

аннулированию DotSceneLoader :: processEnvironment (TiXmlElement * XMLNode) {TiXmlElement * pElement (?);

//Процесс туман pElement = XMLNode-> FirstChildElement ("туман"); если (pElement) processFog (pElement);

//Процесс SKYBOX pElement = XMLNode-> FirstChildElement ("SKYBOX") (?); если (pElement) processSkyBox (pElement);

//Процесс SkyDome pElement = XMLNode-> FirstChildElement ("SkyDome") (?); если (pElement) processSkyDome (pElement);

//Процесс skyPlane pElement = XMLNode-> FirstChildElement ("skyPlane") (?); если (pElement) processSkyPlane (pElement) (?);

//Процесс отсечения pElement = XMLNode-> FirstChildElement ("отсечения"); если (pElement) processClipping (pElement);

//Процесс colourAmbient pElement = XMLNode-> FirstChildElement ("colourAmbient") (?); если (pElement) mSceneMgr-> setAmbientLight (parseColour (pElement)); //

Процесс colourBackground //(?)! todo указан цвет фона всех видовых экранах (RenderWindow должен быть обеспечен тогда) pElement = XMLNode-> FirstChildElement ("colourBackground"); если (pElement); //mSceneMgr-> установить (parseColour (pElement)) (?);

//Процесс userDataReference pElement = XMLNode-> FirstChildElement ("userDataReference"); если (pElement) processUserDataReference (pElement);}

аннулированию DotSceneLoader :: processTerrain (TiXmlElement * XMLNode) {STD :: строка terrainConfig; Строка worldTexture = getAttrib (XMLNode, "WorldTexture"); если (worldTexture.

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

струнного detailTexture = getAttrib (XMLNode, "DetailTexture"); если (detailTexture.size ()! = 0) {terrainConfig + = "DetailTexture ="; terrainConfig + = detailTexture; terrainConfig + = "\\ п"; }

струнного detailTile = getAttrib (XMLNode, "DetailTile"); если (detailTile.size ()! = 0) {terrainConfig + = "DetailTile ="; terrainConfig + = detailTile;

Page   <<  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... >>  >> 
Copyright © 2008 - 2016 Чтение Образование Статьи,https://ru.nmjjxx.com All rights reserved.