Merge pull request #33 from lioncash/index

CIndexBuffer: Mark member functions as const where applicable
This commit is contained in:
LC 2020-06-11 10:50:52 -04:00 committed by GitHub
commit 156c92909e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);