add const qualifier to Model::size

This commit is contained in:
ohsqueezy 2023-06-30 13:41:05 -04:00
parent 3db0a3bd32
commit 88cf70b828
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ const glm::mat4& sb::Model::translate(glm::vec3 translation)
}
std::size_t sb::Model::size()
std::size_t sb::Model::size() const
{
std::size_t sum = 0;
for (const auto& attributes : this->attributes())

View File

@ -241,7 +241,7 @@ namespace sb
/*!
* @return total size in bytes of the attributes
*/
std::size_t size();
std::size_t size() const;
/*!
* @return the transformation matrix