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

Method CheckTextureWindow

trinity/Sprite2d/Tr2Sprite2dTexture.cpp:208–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void Tr2Sprite2dTexture::CheckTextureWindow()
209{
210 if( ( m_srcX == 0.0f ) && ( m_srcY == 0.0f ) && ( m_srcWidth == 0.0f ) && ( m_srcHeight == 0.0f ) )
211 {
212 m_hasTextureWindow = false;
213 return;
214 }
215
216 if( m_atlasTexture &&
217 ( m_srcX == 0.0f ) &&
218 ( m_srcY == 0.0f ) &&
219 ( m_srcWidth == m_atlasTexture->GetWidth() ) &&
220 ( m_srcHeight == m_atlasTexture->GetHeight() ) )
221 {
222 m_hasTextureWindow = false;
223 return;
224 }
225
226 m_hasTextureWindow = true;
227}
228
229int Tr2Sprite2dTexture::GetTextureRepeatMode() const
230{

Callers

nothing calls this directly

Calls 2

GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected