30 void Resize(
int width,
int height);
49 void Clear(
float r = 0.1f,
float g = 0.1f,
float b = 0.1f,
float a = 1.0f);
80 void createFramebuffer();
84 GLuint m_ColorTex = 0;
85 GLuint m_DepthRbo = 0;
Manages OpenGL framebuffer operations for viewport rendering.
Definition ViewportFramebuffer.h:11
bool IsCreated() const
Check if framebuffer objects are created.
Definition ViewportFramebuffer.cpp:88
ViewportFramebuffer()
Definition ViewportFramebuffer.cpp:9
int GetWidth() const
Get current framebuffer width.
Definition ViewportFramebuffer.h:61
GLuint GetColorTexture() const
Get the color texture ID for ImGui rendering.
Definition ViewportFramebuffer.h:55
int GetHeight() const
Get current framebuffer height.
Definition ViewportFramebuffer.h:67
void Clear(float r=0.1f, float g=0.1f, float b=0.1f, float a=1.0f)
Clear the framebuffer.
Definition ViewportFramebuffer.cpp:68
bool IsValid() const
Check if framebuffer is valid.
Definition ViewportFramebuffer.cpp:74
~ViewportFramebuffer()
Definition ViewportFramebuffer.cpp:14
void Resize(int width, int height)
Resize the framebuffer to new dimensions.
Definition ViewportFramebuffer.cpp:24
void Initialize()
Initialize the framebuffer.
Definition ViewportFramebuffer.cpp:19
ViewportFramebuffer & operator=(const ViewportFramebuffer &)=delete
ViewportFramebuffer(const ViewportFramebuffer &)=delete
void Unbind()
Unbind the framebuffer.
Definition ViewportFramebuffer.cpp:63
void Bind()
Bind the framebuffer for rendering.
Definition ViewportFramebuffer.cpp:56
Represents the Inspector panel component in the Editor.
Definition Console.cpp:7