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

Method createResource

OgreMain/src/OgreResourceManager.cpp:55–69  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

53 }
54 //-----------------------------------------------------------------------
55 ResourcePtr ResourceManager::createResource( const String &name, const String &group, bool isManual,
56 ManualResourceLoader *loader,
57 const NameValuePairList *params )
58 {
59 // Call creation implementation
60 ResourcePtr ret =
61 ResourcePtr( createImpl( name, getNextHandle(), group, isManual, loader, params ) );
62 if( params )
63 ret->setParameterList( *params );
64
65 addImpl( ret );
66 // Tell resource group manager
67 ResourceGroupManager::getSingleton()._notifyResourceCreated( ret );
68 return ret;
69 }
70 //-----------------------------------------------------------------------
71 ResourceManager::ResourceCreateOrRetrieveResult ResourceManager::createOrRetrieve(
72 const String &name, const String &group, bool isManual, ManualResourceLoader *loader,

Callers 3

_writePageStreamMethod · 0.45
_writeWorldStreamMethod · 0.45
createFileStreamMethod · 0.45

Calls 2

setParameterListMethod · 0.80

Tested by

no test coverage detected