| 50 | } |
| 51 | |
| 52 | void FeatureSet::_rebuildDesc() |
| 53 | { |
| 54 | PROFILE_SCOPE( FeatureSet_RebuildDesc ); |
| 55 | |
| 56 | // First get the features in the proper order. |
| 57 | mFeatures.sort( _typeCmp ); |
| 58 | |
| 59 | String desc; |
| 60 | |
| 61 | for ( U32 i=0; i < mFeatures.size(); i++ ) |
| 62 | desc += String::ToString( "%s,%d\n", |
| 63 | mFeatures[i].type->getName().c_str(), |
| 64 | mFeatures[i].index ); |
| 65 | |
| 66 | // By interning the description we have only |
| 67 | // one instance in the system and we get fast |
| 68 | // pointer compares for equality. |
| 69 | mDescription = desc.intern(); |
| 70 | } |
| 71 | |
| 72 | const FeatureType& FeatureSet::getAt( U32 index, S32 *outIndex ) const |
| 73 | { |