Skip to content

Commit

Permalink
document meshgroup::clipframes
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Dec 1, 2024
1 parent 2f0444b commit 81f88c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engine/model/animmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,18 @@ class animmodel : public model
* @return true if the passed index range are all valid
*/
bool hasframes(int i, int n) const;

/**
* @brief Returns the lesser of n and the number of remaining frames between i and n
*
* Returns n if there are existing frames between i and i+n, and returns the largest
* value that would satisfy this condition if not.
*
* @param i the first index to query
* @param n the number of indices thereafter to query
*
* @return n, or the maximum number of entries after i if n is too large
*/
int clipframes(int i, int n) const;
const std::string &groupname() const;

Expand Down

0 comments on commit 81f88c5

Please sign in to comment.