hope you're HaPpY

This commit is contained in:
Clément Le Bihan
2021-06-02 18:42:21 +02:00
parent 4ea98204a2
commit 066e77c47b
2 changed files with 16 additions and 1 deletions
@@ -39,3 +39,12 @@ const RAY::ModelAnimation &RAY::ModelAnimations::at(int index) const
return this->_animations.at(index);
}
const RAY::ModelAnimation &RAY::ModelAnimations::operator[](int index) const
{
return this->_animations[index];
}
RAY::ModelAnimation &RAY::ModelAnimations::at(int index)
{
return this->_animations.at(index);
}
+7 -1
View File
@@ -36,9 +36,15 @@ namespace RAY {
//! @brief Castin Object to raw model animation pointer
ModelAnimation &operator[](int index);
//! @brief Same usage as the operator[] but const
//! @brief std [] const
const ModelAnimation &operator[](int index) const;
//! @brief std at const
const ModelAnimation &at(int index) const;
//! @brief std at
ModelAnimation &at(int index);
//! @return the number of loaded animations
size_t getAnimationsCount() const;