Pre Point2f Nuke

Fixed drawing,
Added general optimisations
This commit is contained in:
Bram Verhulst
2024-04-16 14:08:41 +02:00
parent f50597d1a5
commit 64e96ab209
13 changed files with 228 additions and 177 deletions

View File

@@ -238,7 +238,7 @@ void Texture::Draw( const Point2f& dstBottomLeft, const Rectf& srcRect, bool fli
dstRect.width = m_Width;
dstRect.height = m_Height;
}
Draw( dstRect, srcRect );
Draw( dstRect, srcRect, flip );
}
}
@@ -341,6 +341,9 @@ bool Texture::IsCreationOk( ) const
{
return m_CreationOk;
}
Rectf Texture::getSrcRect() {
return Rectf{0, 0, m_Width, m_Height};
}
void Texture::DrawFilledRect(const Rectf& rect) const
{