Core/Animation: Remove loop-point interpolation boolean
This commit is contained in:
parent
d9ad489820
commit
3c7e2a1685
|
|
@ -70,8 +70,6 @@ namespace Nz
|
||||||
bool CreateSkeletal(std::size_t frameCount, std::size_t jointCount);
|
bool CreateSkeletal(std::size_t frameCount, std::size_t jointCount);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
void EnableLoopPointInterpolation(bool loopPointInterpolation);
|
|
||||||
|
|
||||||
std::size_t GetFrameCount() const;
|
std::size_t GetFrameCount() const;
|
||||||
std::size_t GetJointCount() const;
|
std::size_t GetJointCount() const;
|
||||||
Sequence* GetSequence(std::string_view sequenceName);
|
Sequence* GetSequence(std::string_view sequenceName);
|
||||||
|
|
@ -87,7 +85,6 @@ namespace Nz
|
||||||
bool HasSequence(std::string_view sequenceName) const;
|
bool HasSequence(std::string_view sequenceName) const;
|
||||||
bool HasSequence(std::size_t index = 0) const;
|
bool HasSequence(std::size_t index = 0) const;
|
||||||
|
|
||||||
bool IsLoopPointInterpolationEnabled() const;
|
|
||||||
bool IsValid() const;
|
bool IsValid() const;
|
||||||
|
|
||||||
void RemoveSequence(std::string_view sequenceName);
|
void RemoveSequence(std::string_view sequenceName);
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ namespace Nz
|
||||||
std::vector<Sequence> sequences;
|
std::vector<Sequence> sequences;
|
||||||
std::vector<SequenceJoint> sequenceJoints; // Uniquement pour les animations squelettiques
|
std::vector<SequenceJoint> sequenceJoints; // Uniquement pour les animations squelettiques
|
||||||
AnimationType type;
|
AnimationType type;
|
||||||
bool loopPointInterpolation = false;
|
|
||||||
std::size_t frameCount;
|
std::size_t frameCount;
|
||||||
std::size_t jointCount; // Uniquement pour les animations squelettiques
|
std::size_t jointCount; // Uniquement pour les animations squelettiques
|
||||||
};
|
};
|
||||||
|
|
@ -126,13 +125,6 @@ namespace Nz
|
||||||
m_impl.reset();
|
m_impl.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Animation::EnableLoopPointInterpolation(bool loopPointInterpolation)
|
|
||||||
{
|
|
||||||
NazaraAssert(m_impl, "Animation not created");
|
|
||||||
|
|
||||||
m_impl->loopPointInterpolation = loopPointInterpolation;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::size_t Animation::GetFrameCount() const
|
std::size_t Animation::GetFrameCount() const
|
||||||
{
|
{
|
||||||
NazaraAssert(m_impl, "Animation not created");
|
NazaraAssert(m_impl, "Animation not created");
|
||||||
|
|
@ -249,13 +241,6 @@ namespace Nz
|
||||||
return index >= m_impl->sequences.size();
|
return index >= m_impl->sequences.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Animation::IsLoopPointInterpolationEnabled() const
|
|
||||||
{
|
|
||||||
NazaraAssert(m_impl, "Animation not created");
|
|
||||||
|
|
||||||
return m_impl->loopPointInterpolation;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Animation::IsValid() const
|
bool Animation::IsValid() const
|
||||||
{
|
{
|
||||||
return m_impl != nullptr;
|
return m_impl != nullptr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue