| 132 | } |
| 133 | |
| 134 | m2::PointF TextureManager::BaseRegion::GetPixelSize() const |
| 135 | { |
| 136 | if (!IsValid()) |
| 137 | return m2::PointF(0.0f, 0.0f); |
| 138 | |
| 139 | m2::RectF const & texRect = m_info->GetTexRect(); |
| 140 | return m2::PointF(texRect.SizeX() * m_texture->GetWidth(), texRect.SizeY() * m_texture->GetHeight()); |
| 141 | } |
| 142 | |
| 143 | float TextureManager::BaseRegion::GetPixelHeight() const |
| 144 | { |
no test coverage detected