| 206 | } |
| 207 | |
| 208 | void 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 | |
| 229 | int Tr2Sprite2dTexture::GetTextureRepeatMode() const |
| 230 | { |