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

Method SetAtlasTexture

trinity/Sprite2d/Tr2Sprite2dTexture.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void Tr2Sprite2dTexture::SetAtlasTexture( Tr2AtlasTexture* val )
42{
43 if( m_atlasTexture )
44 {
45 m_atlasTexture->UnregisterForChangeNotification( this );
46 }
47 m_atlasTexture = val;
48 if( m_atlasTexture )
49 {
50 m_atlasTexture->RegisterForChangeNotification( this );
51 }
52
53 m_resPath = "";
54 SetDirty();
55}
56
57std::string Tr2Sprite2dTexture::GetResPath() const
58{

Callers

nothing calls this directly

Tested by

no test coverage detected