//Proces colourSpecular pElement = XMLNode-> FirstChildElement ("colourSpecular"); hvis (pElement) pLight-> setSpecularColour (parseColour (pElement)), (?)
//Proces lightRange pElement = XMLNode-> FirstChildElement ("lightRange"); hvis (pElement) processLightRange (pElement, situation)
//Proces lightAttenuation pElement = XMLNode-> FirstChildElement ("lightAttenuation") (?); hvis (pElement) processLightAttenuation (pElement, situation)
//Proces userDataReference pElement = XMLNode-> FirstChildElement ("userDataReference") (?); hvis (pElement) //processUserDataReference (pElement, situation);}
ugyldiggøre DotSceneLoader :: processCamera (TiXmlElement * XMLNode, SceneNode * pParent) {//Proces attributter String navn = getAttrib (XMLNode, "navn"); String id = getAttrib (XMLNode, "id"); Rigtig FOV = getAttribReal (XMLNode "FOV", 45); Rigtig aspectRatio = getAttribReal (XMLNode, "aspectRatio", 1,3333); String projectionType = getAttrib (XMLNode, "projectionType", "perspektiv")
//Find en eksisterende cmaera Kamera * pCamera = mSceneMgr-> getCamera (navn); hvis (pCamera == NULL) {//Opret kameraet Kamera * pCamera = mSceneMgr-> createCamera (navn); hvis (pParent) pParent-> attachObject (pCamera); }
//Indstil field-of-view //! todo Er det altid i grader? pCamera-> setFOVy (Ogre :: Grad (FOV)),
//Indstil skærmformatet pCamera-> setAspectRatio (aspectRatio)
//Sæt fremskrivningen type, hvis (projectionType == "perspektiv") pCamera -> setProjectionType (PT_PERSPECTIVE); ellers hvis (projectionType == "ortografisk") pCamera-> setProjectionType (PT_ORTHOGRAPHIC)
TiXmlElement * pElement;
//Proces klipning pElement = XMLNode-> FirstChildElement ("klipning") (?); hvis (pElement) {Rigtig nearDist = getAttribReal (pElement, "nær"); pCamera-> setNearClipDistance (nearDist)
Rigtig farDist = getAttribReal (pElement, "langt"); pCamera-> setFarClipDistance (farDist); }
//Proces position pElement = XMLNode-> FirstChildElement ("position") (?); hvis (pElement) pCamera-> setPosition (parseVector3 (pElement)), (?)
//Proces rotation pElement = XMLNode-> FirstChildElement ("rotation"); hvis (pElement) pCamera-> setOrientation (parseQuaternion (pElement)),
pElement = XMLNode-> FirstChildElement ("se paa"); hvis (pElement) pCamera-> se paa (parseVector3 (pElement)),
//Proces normal pElement = XMLNode-> FirstChildElement ("normal") (?); hvis (pElement); //! //Proces lookTarget pElement = XMLNode-> FirstChildElement ("lookTarget") (?); hvis (pElement); //! //Proces trackTarget pElement = XMLNode-> FirstChildElement ("trackTarget") (?); hvis (pElement); //! //Proces userDataReference pElement = XMLNode->