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

Method SetTextureSecondary

trinity/Sprite2d/Tr2SpriteObject.cpp:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void Tr2TexturedSpriteObject::SetTextureSecondary( ITr2Sprite2dTexture* t )
273{
274 if( t != m_textureSecondary )
275 {
276 if( m_textureSecondary )
277 {
278 m_textureSecondary->UnregisterForChangeNotification( this );
279 }
280 m_textureSecondary = t;
281 if( m_textureSecondary )
282 {
283 m_textureSecondary->RegisterForChangeNotification( this );
284 }
285 SetDirty();
286 }
287}
288
289ITr2Sprite2dTexture* Tr2TexturedSpriteObject::GetTextureSecondary() const
290{

Callers

nothing calls this directly

Tested by

no test coverage detected