Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2010, 3:35:48 PM (14 years ago)
Author:
kolibri7
Message:

*everything works now; setting the lodlevels and also the XML-Port.
*added lod information for Carrier.mesh in gametype_underattack.oxw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/src/orxonox/Level.cc

    r6838 r6877  
    7272        XMLPortParam(Level, "description", setDescription, getDescription, xmlelement, mode);
    7373        XMLPortParam(Level, "gametype", setGametypeString, getGametypeString, xmlelement, mode).defaultValues("Gametype");
    74 
    75         XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false);           
     74           
    7675        XMLPortObject(Level, MeshLodInformation, "lodinformation", addLodInfo, getLodInfo, xmlelement, mode);
     76        XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false);
    7777}
    7878
     
    141141    }
    142142   
    143     //LoD
    144143    void Level::addLodInfo(MeshLodInformation* lodInformation)
    145144    {
    146 //        std::pair<std::map<std::string,MeshLodInformation*>::iterator,bool> it
    147 //            = new std::pair<lodInformation->getMeshName(),lodInformation>;
    148145        std::string meshName = lodInformation->getMeshName();
    149146        this->lodInformation_.insert(std::make_pair(meshName,lodInformation));
    150         //this->lodInformation_[std::make_pair<meshName,lodInformation>);
    151147    }
    152148
     
    157153       
    158154        return 0;
    159        
    160        
    161         /*
    162         unsigned int i = 0;
    163         for (std::map<MeshLodInformation*>::const_iterator it = this->lodInformation_.begin(); it != this->lodInformation_.end(); ++it)
    164         {
    165             if (i == index)
    166                 return (*it);
    167             ++i;
    168         }
    169         return 0;*/
    170155    }
    171156
Note: See TracChangeset for help on using the changeset viewer.