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

Method startTileCulling

source/camera/CullingManager.cpp:63–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
83void CullingManager::stopTileCulling(const std::vector<Ogre::Vector3>& ogreVectors)

Callers 2

MiniMapCameraMethod · 0.80
GameEditorModeBaseMethod · 0.80

Calls 5

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

Tested by

no test coverage detected