Manages OpenGL framebuffer operations for viewport rendering.
More...
#include <ViewportFramebuffer.h>
Manages OpenGL framebuffer operations for viewport rendering.
◆ ViewportFramebuffer() [1/2]
Editor::Components::ViewportFramebuffer::ViewportFramebuffer |
( |
| ) |
|
◆ ~ViewportFramebuffer()
Editor::Components::ViewportFramebuffer::~ViewportFramebuffer |
( |
| ) |
|
◆ ViewportFramebuffer() [2/2]
◆ Bind()
void Editor::Components::ViewportFramebuffer::Bind |
( |
| ) |
|
Bind the framebuffer for rendering.
◆ Clear()
void Editor::Components::ViewportFramebuffer::Clear |
( |
float |
r = 0.1f , |
|
|
float |
g = 0.1f , |
|
|
float |
b = 0.1f , |
|
|
float |
a = 1.0f |
|
) |
| |
Clear the framebuffer.
- Parameters
-
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
◆ GetColorTexture()
GLuint Editor::Components::ViewportFramebuffer::GetColorTexture |
( |
| ) |
const |
|
inline |
Get the color texture ID for ImGui rendering.
- Returns
- OpenGL texture ID
◆ GetHeight()
int Editor::Components::ViewportFramebuffer::GetHeight |
( |
| ) |
const |
|
inline |
Get current framebuffer height.
- Returns
- Height in pixels
◆ GetWidth()
int Editor::Components::ViewportFramebuffer::GetWidth |
( |
| ) |
const |
|
inline |
Get current framebuffer width.
- Returns
- Width in pixels
◆ Initialize()
void Editor::Components::ViewportFramebuffer::Initialize |
( |
| ) |
|
Initialize the framebuffer.
◆ IsCreated()
bool Editor::Components::ViewportFramebuffer::IsCreated |
( |
| ) |
const |
Check if framebuffer objects are created.
- Returns
- True if OpenGL objects are created
◆ IsValid()
bool Editor::Components::ViewportFramebuffer::IsValid |
( |
| ) |
const |
Check if framebuffer is valid.
- Returns
- True if framebuffer is complete
◆ operator=()
◆ Resize()
void Editor::Components::ViewportFramebuffer::Resize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Resize the framebuffer to new dimensions.
- Parameters
-
width | New width |
height | New height |
◆ Unbind()
void Editor::Components::ViewportFramebuffer::Unbind |
( |
| ) |
|
The documentation for this class was generated from the following files: