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

Method Apply

trinity/Sprite2d/Tr2Sprite2dTexture.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void Tr2Sprite2dTexture::Apply( Tr2Sprite2dScene* renderer, unsigned int ix )
93{
94 renderer->SetTexture( ix, m_atlasTexture, m_settings );
95
96 if( m_hasTextureWindow )
97 {
98 renderer->SetTextureWindow( ix, m_srcX, m_srcY, m_srcWidth, m_srcHeight );
99 }
100 renderer->SetTextureTransform( ix, GetTransform() );
101 renderer->SetTileMode( m_settings );
102}
103
104unsigned int Tr2Sprite2dTexture::GetWidth() const
105{

Callers 4

EndLayerMethod · 0.45
GatherSpritesMethod · 0.45
SetValidatedTexturesMethod · 0.45

Calls 4

SetTextureWindowMethod · 0.80
SetTextureTransformMethod · 0.80
SetTileModeMethod · 0.80
SetTextureMethod · 0.45

Tested by

no test coverage detected