FogMode mode = FOG_NONE; String SMODE = getAttrib (XMLNode, "mode"); if (SMODE == "none") mode = FOG_NONE; else if (SMODE == "exp") mode = FOG_EXP; else if (SMODE == "EXP2") mode = FOG_EXP2; else if (SMODE == "linjära") mode = FOG_LINEAR;
TiXmlElement * pElement,
//Process colourDiffuse ColourValue colourDiffuse = ColourValue :: White (?); pElement = XMLNode-> FirstChildElement ("colourDiffuse"); if (pElement) colourDiffuse = parseColour (pElement);
//Setup dimman mSceneMgr-> setFog (läge colourDiffuse, expDensity, linearStart, linearEnd);} Omdömen annullera DotSceneLoader :: processSkyBox (TiXmlElement * XMLNode) { //Process attribut String material = getAttrib (XMLNode "material"); Faktisk sträcka = getAttribReal (XMLNode "distans", 5000); bool drawFirst = getAttribBool (XMLNode "drawFirst", true);
TiXmlElement * pElement,
//Process rotation Quaternion rotation = Quaternion :: IDENTITET (?); pElement = XMLNode-> FirstChildElement ("rotation"); if (pElement) rotation = parseQuaternion (pElement);
//Setup Sky Box mSceneMgr-> setSkyBox (sant, material, avstånd, drawFirst, rotation, m_sGroupName);} Omdömen annullera DotSceneLoader :: processSkyDome (TiXmlElement * XMLNode) {//Process attribut String material = XMLNode-> Attribut ("material"); Real krökning = getAttribReal (XMLNode "krökning", 10); Verklig kakel = getAttribReal (XMLNode, "tiling", 8); Faktisk sträcka = getAttribReal (XMLNode "distans", 4000); bool drawFirst = getAttribBool (XMLNode "drawFirst", true);
TiXmlElement * pElement,
//Process rotation Quaternion rotation = Quaternion :: IDENTITET (?); pElement = XMLNode-> FirstChildElement ("rotation"); if (pElement) rotation = parseQuaternion (pElement);
//Setup himlen kupolen mSceneMgr-> setSkyDome (sant, material, krökning, kakel, avstånd, drawFirst, rotation, 16, 16, -1, m_sGroupName);}
void DotSceneLoader :: processSkyPlane (TiXmlElement * XMLNode) {//Process attribut String material = getAttrib (XMLNode "material"); Verklig Planex = getAttribReal (XMLNode, "Planex", 0); Verklig planeY = getAttribReal (XMLNode, "planeY", -1); Verklig planeZ = getAttribReal (XMLNode, "Planex", 0); Verklig hyvlat = getAttribReal (XMLNode, "hyvlade", 5000); Real skala = getAttribReal (XMLNode "skala", 1000); Real båge = getAttribReal (