Made method const.

This commit is contained in:
David Williams 2015-03-19 23:08:35 +01:00
parent 639eb6620f
commit cd48c6f611
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace PolyVox
uint32_t getNoOfIndices(void) const;
IndexType getIndex(uint32_t index) const;
const IndexType* getRawIndexData(void);
const IndexType* getRawIndexData(void) const;
POLYVOX_DEPRECATED const std::vector<IndexType>& getIndices(void) const;
const Vector3DInt32& getOffset(void) const;

View File

@ -70,7 +70,7 @@ namespace PolyVox
}
template <typename VertexType, typename IndexType>
const IndexType* Mesh<VertexType, IndexType>::getRawIndexData(void)
const IndexType* Mesh<VertexType, IndexType>::getRawIndexData(void) const
{
return &(m_vecIndices[0]);
}