mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-06 05:06:08 +00:00
Merge pull request #33 from lioncash/index
CIndexBuffer: Mark member functions as const where applicable
This commit is contained in:
commit
156c92909e
@ -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…
x
Reference in New Issue
Block a user