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