| 60 | } |
| 61 | |
| 62 | void 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 | |
| 82 | bool Tr2Sprite2dTexture::Initialize() |
| 83 | { |
nothing calls this directly
no test coverage detected