| 178 | //---------------------------------------------------------------------------- |
| 179 | |
| 180 | void DepthSortList::set(const MatrixF & mat, Point3F & extents) |
| 181 | { |
| 182 | setBaseTransform(mat); |
| 183 | mNormal.set(0,1,0); // ignore polys not facing up... |
| 184 | mExtent = extents; |
| 185 | mExtent *= 0.5f; |
| 186 | |
| 187 | // set clip planes |
| 188 | mPlaneList.clear(); |
| 189 | |
| 190 | mPlaneList.increment(); |
| 191 | mPlaneList.last().set(-1.0f, 0.0f, 0.0f, -mExtent.x); |
| 192 | mPlaneList.increment(); |
| 193 | mPlaneList.last().set( 1.0f, 0.0f, 0.0f, -mExtent.x); |
| 194 | |
| 195 | mPlaneList.increment(); |
| 196 | mPlaneList.last().set( 0.0f,-1.0f, 0.0f, 0); |
| 197 | mPlaneList.increment(); |
| 198 | mPlaneList.last().set( 0.0f, 1.0f, 0.0f, -2.0f * mExtent.y); |
| 199 | |
| 200 | mPlaneList.increment(); |
| 201 | mPlaneList.last().set( 0.0f, 0.0f,-1.0f, -mExtent.z); |
| 202 | mPlaneList.increment(); |
| 203 | mPlaneList.last().set( 0.0f, 0.0f, 1.0f, -mExtent.z); |
| 204 | } |
| 205 | |
| 206 | //---------------------------------------------------------------------------- |
| 207 |
no test coverage detected