| 96 | } |
| 97 | |
| 98 | bool FeatureSet::hasFeature( const FeatureType &type, S32 index ) const |
| 99 | { |
| 100 | PROFILE_SCOPE(FeatureSet_hasFeature); |
| 101 | |
| 102 | for ( U32 i = 0; i < mFeatures.size(); i++) |
| 103 | { |
| 104 | if ( mFeatures[i].type == &type && |
| 105 | ( index < 0 || mFeatures[i].index == index ) ) |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | void FeatureSet::setFeature( const FeatureType &type, bool set, S32 index ) |
| 113 | { |
no test coverage detected