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

Method _writeWorldStream

Components/Paging/src/OgrePageManager.cpp:418–436  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

416 }
417 //---------------------------------------------------------------------
418 StreamSerialiser* PageManager::_writeWorldStream(const String& filename)
419 {
420 StreamSerialiser* ser = 0;
421 if (mPageProvider)
422 ser = mPageProvider->writeWorldStream(filename);
423 if (!ser)
424 {
425 // use default implementation
426 // create file, overwrite if necessary
427 DataStreamPtr stream = ResourceGroupManager::getSingleton().createResource(
428 filename, mPageResourceGroup, true);
429
430 ser = OGRE_NEW StreamSerialiser(stream);
431
432 }
433
434 return ser;
435
436 }
437 //---------------------------------------------------------------------
438 bool PageManager::_prepareProceduralPage(Page* page, PagedWorldSection* section)
439 {

Callers 1

saveMethod · 0.80

Calls 3

StreamSerialiserClass · 0.85
writeWorldStreamMethod · 0.80
createResourceMethod · 0.45

Tested by

no test coverage detected