CIndexBuffer: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash 2020-06-12 16:43:54 -04:00
parent 721c4d8121
commit f5e9254c9a
2 changed files with 4 additions and 8 deletions

View File

@ -1,13 +1,9 @@
#include "CIndexBuffer.h"
CIndexBuffer::CIndexBuffer()
: mBuffered(false)
{
}
CIndexBuffer::CIndexBuffer() = default;
CIndexBuffer::CIndexBuffer(GLenum Type)
: mPrimitiveType(Type)
, mBuffered(false)
{
}

View File

@ -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();