MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / cullTiles

Method cullTiles

source/camera/CullingManager.cpp:42–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void 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
63void CullingManager::startTileCulling(Ogre::Camera* camera, const std::vector<Ogre::Vector3>& ogreVectors)
64{

Callers

nothing calls this directly

Calls 6

VectorInt64Class · 0.85
clearMethod · 0.80
convexHullMethod · 0.80
buildSlopesMethod · 0.80
debugMethod · 0.80
prepareWalkMethod · 0.80

Tested by

no test coverage detected