Graphics/Sprite: Allow to change origin

This commit is contained in:
Jérôme Leclercq
2021-12-23 17:32:18 +01:00
parent e2882f6595
commit ed3ee34565
3 changed files with 37 additions and 26 deletions

View File

@@ -15,7 +15,8 @@ namespace Nz
m_material(std::move(material)),
m_color(Color::White),
m_textureCoords(0.f, 0.f, 1.f, 1.f),
m_size(64.f, 64.f)
m_size(64.f, 64.f),
m_origin(0.f, 0.f, 0.f)
{
m_cornerColor.fill(Color::White);