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

Method SetTextureSecondary

trinity/Sprite2d/Tr2Sprite2dLayer.cpp:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void Tr2Sprite2dLayer::SetTextureSecondary( ITr2Sprite2dTexture* t )
145{
146 if( t != m_textureSecondary )
147 {
148 if( m_textureSecondary )
149 {
150 m_textureSecondary->UnregisterForChangeNotification( this );
151 }
152 m_textureSecondary = t;
153 if( m_textureSecondary )
154 {
155 m_textureSecondary->RegisterForChangeNotification( this );
156 }
157 SetDirty();
158 }
159}
160
161ITr2Sprite2dTexture* Tr2Sprite2dLayer::GetTextureSecondary() const
162{

Callers

nothing calls this directly

Tested by

no test coverage detected