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();
|
Unbind();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CIndexBuffer::IsBuffered()
|
bool CIndexBuffer::IsBuffered() const
|
||||||
{
|
{
|
||||||
return mBuffered;
|
return mBuffered;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint CIndexBuffer::GetSize()
|
uint CIndexBuffer::GetSize() const
|
||||||
{
|
{
|
||||||
return mIndices.size();
|
return mIndices.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
GLenum CIndexBuffer::GetPrimitiveType()
|
GLenum CIndexBuffer::GetPrimitiveType() const
|
||||||
{
|
{
|
||||||
return mPrimitiveType;
|
return mPrimitiveType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,10 @@ public:
|
||||||
void Unbind();
|
void Unbind();
|
||||||
void DrawElements();
|
void DrawElements();
|
||||||
void DrawElements(uint Offset, uint Size);
|
void DrawElements(uint Offset, uint Size);
|
||||||
bool IsBuffered();
|
bool IsBuffered() const;
|
||||||
|
|
||||||
uint GetSize();
|
uint GetSize() const;
|
||||||
GLenum GetPrimitiveType();
|
GLenum GetPrimitiveType() const;
|
||||||
void SetPrimitiveType(GLenum Type);
|
void SetPrimitiveType(GLenum Type);
|
||||||
|
|
||||||
void TrianglesToStrips(uint16 *pIndices, uint Count);
|
void TrianglesToStrips(uint16 *pIndices, uint Count);
|
||||||
|
|
Loading…
Reference in New Issue