mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-18 20:43:33 +00:00
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"
|
#include "CIndexBuffer.h"
|
||||||
|
|
||||||
CIndexBuffer::CIndexBuffer()
|
CIndexBuffer::CIndexBuffer() = default;
|
||||||
: mBuffered(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CIndexBuffer::CIndexBuffer(GLenum Type)
|
CIndexBuffer::CIndexBuffer(GLenum Type)
|
||||||
: mPrimitiveType(Type)
|
: mPrimitiveType(Type)
|
||||||
, mBuffered(false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
|
|
||||||
class CIndexBuffer
|
class CIndexBuffer
|
||||||
{
|
{
|
||||||
GLuint mIndexBuffer;
|
GLuint mIndexBuffer = 0;
|
||||||
std::vector<uint16> mIndices;
|
std::vector<uint16> mIndices;
|
||||||
GLenum mPrimitiveType;
|
GLenum mPrimitiveType{};
|
||||||
bool mBuffered;
|
bool mBuffered = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CIndexBuffer();
|
CIndexBuffer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user