Graphics/SlicedSprite: Fix GetTopLeftCorner linking
This commit is contained in:
parent
a476e705f8
commit
6203d5f0d1
|
|
@ -51,7 +51,7 @@ namespace Nz
|
||||||
|
|
||||||
struct Corner
|
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);
|
Vector2f size = Vector2f(10.f, 10.f);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ namespace Nz
|
||||||
return m_textureCoords;
|
return m_textureCoords;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline auto SlicedSprite::GetTopLeftCorner() const -> const Corner&
|
||||||
|
{
|
||||||
|
return m_topLeftCorner;
|
||||||
|
}
|
||||||
|
|
||||||
inline void SlicedSprite::SetColor(const Color& color)
|
inline void SlicedSprite::SetColor(const Color& color)
|
||||||
{
|
{
|
||||||
m_color = color;
|
m_color = color;
|
||||||
|
|
|
||||||
|
|
@ -55,11 +55,6 @@ namespace Nz
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline auto SlicedSprite::GetTopLeftCorner() const -> const Corner&
|
|
||||||
{
|
|
||||||
return m_topLeftCorner;
|
|
||||||
}
|
|
||||||
|
|
||||||
Vector3ui SlicedSprite::GetTextureSize() const
|
Vector3ui SlicedSprite::GetTextureSize() const
|
||||||
{
|
{
|
||||||
assert(m_material);
|
assert(m_material);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue