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

Method SetTextureWindow

trinity/Sprite2d/Tr2Sprite2dScene.cpp:781–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void Tr2Sprite2dScene::SetTextureWindow( unsigned int ix, float x, float y, float width, float height )
782{
783 //CCP_STATS_ZONE( __FUNCTION__ );
784
785 CCP_ASSERT( ix < 2 );
786
787 if( m_texture[ix] )
788 {
789 TextureSetting& texSettings = m_textureSettings[ix];
790 m_texture[ix]->CalcSubTextureWindow( texSettings.textureWindow, x, y, width, height );
791 }
792}
793
794void Tr2Sprite2dScene::SetTextureTransform( unsigned int ix, Matrix* m )
795{

Callers 1

ApplyMethod · 0.80

Calls 1

CalcSubTextureWindowMethod · 0.80

Tested by

no test coverage detected