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

Method SetTexturePrimary

trinity/Sprite2d/Tr2SpriteObject.cpp:250–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void Tr2TexturedSpriteObject::SetTexturePrimary( ITr2Sprite2dTexture* t )
251{
252 if( t != m_texturePrimary )
253 {
254 if( m_texturePrimary )
255 {
256 m_texturePrimary->UnregisterForChangeNotification( this );
257 }
258 m_texturePrimary = t;
259 if( m_texturePrimary )
260 {
261 m_texturePrimary->RegisterForChangeNotification( this );
262 }
263 SetDirty();
264 }
265}
266
267ITr2Sprite2dTexture* Tr2TexturedSpriteObject::GetTexturePrimary() const
268{

Callers

nothing calls this directly

Tested by

no test coverage detected