mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-06 05:06:08 +00:00
CFramebuffer: Make use of in-class initializers
Same behavior, less code.
This commit is contained in:
parent
ecce151aaf
commit
b18accfa60
@ -1,23 +1,9 @@
|
|||||||
#include "CFramebuffer.h"
|
#include "CFramebuffer.h"
|
||||||
#include <Common/Log.h>
|
#include <Common/Log.h>
|
||||||
|
|
||||||
CFramebuffer::CFramebuffer()
|
CFramebuffer::CFramebuffer() = default;
|
||||||
: mpRenderbuffer(nullptr)
|
|
||||||
, mpTexture(nullptr)
|
|
||||||
, mWidth(0)
|
|
||||||
, mHeight(0)
|
|
||||||
, mEnableMultisampling(false)
|
|
||||||
, mInitialized(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CFramebuffer::CFramebuffer(uint32 Width, uint32 Height)
|
CFramebuffer::CFramebuffer(uint32 Width, uint32 Height)
|
||||||
: mpRenderbuffer(nullptr)
|
|
||||||
, mpTexture(nullptr)
|
|
||||||
, mWidth(0)
|
|
||||||
, mHeight(0)
|
|
||||||
, mEnableMultisampling(false)
|
|
||||||
, mInitialized(false)
|
|
||||||
{
|
{
|
||||||
Resize(Width, Height);
|
Resize(Width, Height);
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,14 @@
|
|||||||
|
|
||||||
class CFramebuffer
|
class CFramebuffer
|
||||||
{
|
{
|
||||||
GLuint mFramebuffer;
|
GLuint mFramebuffer = 0;
|
||||||
CRenderbuffer *mpRenderbuffer;
|
CRenderbuffer *mpRenderbuffer = nullptr;
|
||||||
CTexture *mpTexture;
|
CTexture *mpTexture = nullptr;
|
||||||
uint32 mWidth, mHeight;
|
uint32 mWidth = 0;
|
||||||
bool mEnableMultisampling;
|
uint32 mHeight = 0;
|
||||||
bool mInitialized;
|
bool mEnableMultisampling = false;
|
||||||
GLenum mStatus;
|
bool mInitialized = false;
|
||||||
|
GLenum mStatus{};
|
||||||
|
|
||||||
static GLint smDefaultFramebuffer;
|
static GLint smDefaultFramebuffer;
|
||||||
static bool smStaticsInitialized;
|
static bool smStaticsInitialized;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user