| 61 | } |
| 62 | |
| 63 | void CullingManager::startTileCulling(Ogre::Camera* camera, const std::vector<Ogre::Vector3>& ogreVectors) |
| 64 | { |
| 65 | showAllTiles(); |
| 66 | |
| 67 | mWalk.mVertices.mMyArray.clear(); |
| 68 | for (int ii = 0 ; ii < 4 ; ++ii) |
| 69 | mWalk.mVertices.mMyArray.push_back(VectorInt64(ogreVectors[ii])); |
| 70 | |
| 71 | mWalk.convexHull(); |
| 72 | mWalk.buildSlopes(); |
| 73 | mOldWalk = mWalk; |
| 74 | mOldWalk.prepareWalk(); |
| 75 | mWalk.prepareWalk(); |
| 76 | hideAllTiles(); |
| 77 | newBashAndSplashTiles(SHOW); |
| 78 | |
| 79 | mCullTilesFlag = true; |
| 80 | } |
| 81 | |
| 82 | |
| 83 | void CullingManager::stopTileCulling(const std::vector<Ogre::Vector3>& ogreVectors) |
no test coverage detected