CIndexBuffer: Mark member functions as const where applicable

These member functions don't alter internal state, so we can mark them
as const.
This commit is contained in:
Lioncash 2020-06-10 19:33:47 -04:00
parent 0096b28294
commit c929293789
2 changed files with 6 additions and 6 deletions

View File

@ -79,17 +79,17 @@ void CIndexBuffer::DrawElements(uint Offset, uint Size)
Unbind();
}
bool CIndexBuffer::IsBuffered()
bool CIndexBuffer::IsBuffered() const
{
return mBuffered;
}
uint CIndexBuffer::GetSize()
uint CIndexBuffer::GetSize() const
{
return mIndices.size();
}
GLenum CIndexBuffer::GetPrimitiveType()
GLenum CIndexBuffer::GetPrimitiveType() const
{
return mPrimitiveType;
}

View File

@ -25,10 +25,10 @@ public:
void Unbind();
void DrawElements();
void DrawElements(uint Offset, uint Size);
bool IsBuffered();
bool IsBuffered() const;
uint GetSize();
GLenum GetPrimitiveType();
uint GetSize() const;
GLenum GetPrimitiveType() const;
void SetPrimitiveType(GLenum Type);
void TrianglesToStrips(uint16 *pIndices, uint Count);