| 76 | //---------------------------------------------------------------------------- |
| 77 | |
| 78 | void DepthSortList::end() |
| 79 | { |
| 80 | S32 numPoly = mPolyList.size(); |
| 81 | |
| 82 | if (mPolyList.last().plane.y >= -MIN_Y_DOT) |
| 83 | { |
| 84 | mIndexList.setSize(mPolyList.last().vertexStart); |
| 85 | mPolyList.decrement(); |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | Parent::end(); |
| 90 | |
| 91 | // we deleted this poly, be sure not to add anything more... |
| 92 | if (mPolyList.size()!=numPoly) |
| 93 | return; |
| 94 | |
| 95 | AssertFatal(mPolyList.last().vertexCount>2,"DepthSortList::end: only two vertices in poly"); |
| 96 | |
| 97 | mPolyExtentsList.increment(); |
| 98 | setExtents(mPolyList.last(),mPolyExtentsList.last()); |
| 99 | mPolyIndexList.push_back(numPoly-1); |
| 100 | } |
| 101 | |
| 102 | //---------------------------------------------------------------------------- |
| 103 |
no test coverage detected