Graphics/SlicedSprite: Fix GetTopLeftCorner linking

This commit is contained in:
SirLynix 2022-07-12 08:44:43 +02:00
parent a476e705f8
commit 6203d5f0d1
3 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ namespace Nz
struct Corner
{
Vector2f textureCoords = Vector2f(0.15625f, 0.15625f);
Vector2f textureCoords = Vector2f(10.f / 64.f, 10.f / 64.f);
Vector2f size = Vector2f(10.f, 10.f);
};

View File

@ -23,6 +23,11 @@ namespace Nz
return m_textureCoords;
}
inline auto SlicedSprite::GetTopLeftCorner() const -> const Corner&
{
return m_topLeftCorner;
}
inline void SlicedSprite::SetColor(const Color& color)
{
m_color = color;

View File

@ -55,11 +55,6 @@ namespace Nz
return 1;
}
inline auto SlicedSprite::GetTopLeftCorner() const -> const Corner&
{
return m_topLeftCorner;
}
Vector3ui SlicedSprite::GetTextureSize() const
{
assert(m_material);