add const qualifier to Model::size
This commit is contained in:
parent
3db0a3bd32
commit
88cf70b828
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue