MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / growToDepth

Method growToDepth

OgreMain/src/Math/Array/OgreBoneMemoryManager.cpp:54–65  ·  view source on GitHub ↗

-----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

52 }
53 //-----------------------------------------------------------------------------------
54 void BoneMemoryManager::growToDepth( size_t newDepth )
55 {
56 // TODO: (dark_sylinc) give a specialized hint for each depth.
57 while( newDepth >= mMemoryManagers.size() )
58 {
59 // Disable cleanups if we fall here (use _growToDepth instead)
60 mMemoryManagers.push_back( BoneArrayMemoryManager(
61 static_cast<uint16>( mMemoryManagers.size() ), 100u, std::numeric_limits<size_t>::max(),
62 ArrayMemoryManager::MAX_MEMORY_SLOTS, this ) );
63 mMemoryManagers.back().initialize();
64 }
65 }
66 //-----------------------------------------------------------------------------------
67 void BoneMemoryManager::_growToDepth( const vector<size_t>::type &bonesPerDepth )
68 {

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
push_backMethod · 0.45
initializeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected