Changeset 923 for OGRE


Ignore:
Timestamp:
05/07/06 18:37:01 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/src/OgrePass.cpp

    r768 r923  
    124124#ifdef GAMETOOLS_ILLUMINATION_MODULE 
    125125                mActive = oth.mActive; 
     126 
     127                for(int i = 0; i < oth.illumTechniques.size(); i++ ) 
     128                { 
     129                        IllumTechniqueParams* params = oth.illumTechniques.at(i); 
     130                        NameValuePairList& ps = params->getParams(); 
     131                        IllumTechniqueParams* newparams = new IllumTechniqueParams(); 
     132                         
     133                        String type = params->getTypeName(); 
     134                        newparams->setTypeName(type); 
     135 
     136                        NameValuePairList::iterator it = ps.begin(); 
     137                        NameValuePairList::iterator itend = ps.begin(); 
     138                        while(it != itend) 
     139                        { 
     140                                String parameter = (*it).first; 
     141                                String value = (*it).second; 
     142                                newparams->addParam(parameter, value); 
     143                                it++; 
     144                        } 
     145                        illumTechniques.push_back(newparams); 
     146                } 
    126147#endif 
    127148        mName = oth.mName; 
Note: See TracChangeset for help on using the changeset viewer.