| 40 | } |
| 41 | |
| 42 | void CullingManager::cullTiles(const std::vector<Ogre::Vector3>& ogreVectors) |
| 43 | { |
| 44 | mOldWalk = mWalk; |
| 45 | mWalk.mVertices.mMyArray.clear(); |
| 46 | for (int ii = 0 ; ii < 4 ; ++ii) |
| 47 | mWalk.mVertices.mMyArray.push_back(VectorInt64(ogreVectors[ii])); |
| 48 | |
| 49 | // create a slope -- a set of left and right path |
| 50 | mWalk.convexHull(); |
| 51 | mWalk.buildSlopes(); |
| 52 | |
| 53 | OD_LOG_DBG(mOldWalk.debug()); |
| 54 | OD_LOG_DBG(mWalk.debug()); |
| 55 | |
| 56 | // reset index pointers to the begging of collections |
| 57 | mOldWalk.prepareWalk(); |
| 58 | mWalk.prepareWalk(); |
| 59 | |
| 60 | newBashAndSplashTiles(SHOW | HIDE); |
| 61 | } |
| 62 | |
| 63 | void CullingManager::startTileCulling(Ogre::Camera* camera, const std::vector<Ogre::Vector3>& ogreVectors) |
| 64 | { |
nothing calls this directly
no test coverage detected