MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetResPath

Method SetResPath

trinity/Sprite2d/Tr2Sprite2dTexture.cpp:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void Tr2Sprite2dTexture::SetResPath( const std::string& path )
63{
64 m_resPath = path;
65
66 if( m_atlasTexture )
67 {
68 m_atlasTexture->UnregisterForChangeNotification( this );
69 }
70 m_atlasTexture.Unlock();
71
72 BeResMan->GetResource( m_resPath.c_str(), "atlas", m_atlasTexture );
73
74 if( m_atlasTexture )
75 {
76 m_atlasTexture->RegisterForChangeNotification( this );
77 }
78
79 SetDirty();
80}
81
82bool Tr2Sprite2dTexture::Initialize()
83{

Callers

nothing calls this directly

Calls 4

UnlockMethod · 0.45
GetResourceMethod · 0.45

Tested by

no test coverage detected