| 134 | } |
| 135 | |
| 136 | U32 OptimizedPolyList::insertUV0(const Point2F& uv) |
| 137 | { |
| 138 | S32 retIdx = -1; |
| 139 | |
| 140 | for (U32 i = 0; i < mUV0s.size(); i++) |
| 141 | { |
| 142 | if (mUV0s[i].equal(uv)) |
| 143 | { |
| 144 | retIdx = i; |
| 145 | break; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | if (retIdx == -1) |
| 150 | { |
| 151 | retIdx = mUV0s.size(); |
| 152 | mUV0s.push_back(uv); |
| 153 | } |
| 154 | |
| 155 | return (U32)retIdx; |
| 156 | } |
| 157 | |
| 158 | U32 OptimizedPolyList::insertUV1(const Point2F& uv) |
| 159 | { |
no test coverage detected