CIndexBuffer: Make use of in-class initializers where applicable
This commit is contained in:
parent
721c4d8121
commit
f5e9254c9a
|
@ -1,13 +1,9 @@
|
|||
#include "CIndexBuffer.h"
|
||||
|
||||
CIndexBuffer::CIndexBuffer()
|
||||
: mBuffered(false)
|
||||
{
|
||||
}
|
||||
CIndexBuffer::CIndexBuffer() = default;
|
||||
|
||||
CIndexBuffer::CIndexBuffer(GLenum Type)
|
||||
: mPrimitiveType(Type)
|
||||
, mBuffered(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
class CIndexBuffer
|
||||
{
|
||||
GLuint mIndexBuffer;
|
||||
GLuint mIndexBuffer = 0;
|
||||
std::vector<uint16> mIndices;
|
||||
GLenum mPrimitiveType;
|
||||
bool mBuffered;
|
||||
GLenum mPrimitiveType{};
|
||||
bool mBuffered = false;
|
||||
|
||||
public:
|
||||
CIndexBuffer();
|
||||
|
|
Loading…
Reference in New Issue