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:
parent
0096b28294
commit
c929293789
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue