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

Method SetTextureTransform

trinity/Sprite2d/Tr2Sprite2dScene.cpp:794–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void Tr2Sprite2dScene::SetTextureTransform( unsigned int ix, Matrix* m )
795{
796 //CCP_STATS_ZONE( __FUNCTION__ );
797
798 CCP_ASSERT( ix < 2 );
799
800 if( m )
801 {
802 m_textureSettings[ix].useTransform = true;
803 m_textureSettings[ix].transform = *m;
804 }
805 else
806 {
807 m_textureSettings[ix].useTransform = false;
808 }
809}
810
811inline bool Tr2Sprite2dScene::TexturesReady() const
812{

Callers 1

ApplyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected