mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 12:45:55 +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 <Common/Log.h>
|
||||
|
||||
CFramebuffer::CFramebuffer()
|
||||
: mpRenderbuffer(nullptr)
|
||||
, mpTexture(nullptr)
|
||||
, mWidth(0)
|
||||
, mHeight(0)
|
||||
, mEnableMultisampling(false)
|
||||
, mInitialized(false)
|
||||
{
|
||||
}
|
||||
CFramebuffer::CFramebuffer() = default;
|
||||
|
||||
CFramebuffer::CFramebuffer(uint32 Width, uint32 Height)
|
||||
: mpRenderbuffer(nullptr)
|
||||
, mpTexture(nullptr)
|
||||
, mWidth(0)
|
||||
, mHeight(0)
|
||||
, mEnableMultisampling(false)
|
||||
, mInitialized(false)
|
||||
{
|
||||
Resize(Width, Height);
|
||||
}
|
||||
|
@ -7,13 +7,14 @@
|
||||
|
||||
class CFramebuffer
|
||||
{
|
||||
GLuint mFramebuffer;
|
||||
CRenderbuffer *mpRenderbuffer;
|
||||
CTexture *mpTexture;
|
||||
uint32 mWidth, mHeight;
|
||||
bool mEnableMultisampling;
|
||||
bool mInitialized;
|
||||
GLenum mStatus;
|
||||
GLuint mFramebuffer = 0;
|
||||
CRenderbuffer *mpRenderbuffer = nullptr;
|
||||
CTexture *mpTexture = nullptr;
|
||||
uint32 mWidth = 0;
|
||||
uint32 mHeight = 0;
|
||||
bool mEnableMultisampling = false;
|
||||
bool mInitialized = false;
|
||||
GLenum mStatus{};
|
||||
|
||||
static GLint smDefaultFramebuffer;
|
||||
static bool smStaticsInitialized;
|
||||
|
Loading…
x
Reference in New Issue
Block a user