#include <Framebuffer.h>
Definition at line 29 of file Framebuffer.h.
◆ Framebuffer() [1/2]
| hellfire::Framebuffer::Framebuffer |
( |
| ) |
|
◆ ~Framebuffer()
| hellfire::Framebuffer::~Framebuffer |
( |
| ) |
|
◆ Framebuffer() [2/2]
| hellfire::Framebuffer::Framebuffer |
( |
const Framebuffer & |
| ) |
|
|
delete |
◆ attach_color_texture()
◆ attach_depth_texture()
◆ attach_stencil_texture()
◆ attach_texture_by_id()
| void hellfire::Framebuffer::attach_texture_by_id |
( |
uint32_t |
texture_id, |
|
|
GLenum |
attachment = GL_COLOR_ATTACHMENT0, |
|
|
GLenum |
target = GL_FRAMEBUFFER |
|
) |
| |
◆ bind()
| void hellfire::Framebuffer::bind |
( |
| ) |
const |
◆ cleanup()
| void hellfire::Framebuffer::cleanup |
( |
| ) |
|
|
private |
◆ create_framebuffer()
| void hellfire::Framebuffer::create_framebuffer |
( |
| ) |
|
|
private |
◆ get_color_attachment()
| uint32_t hellfire::Framebuffer::get_color_attachment |
( |
const size_t |
index = 0 | ) |
const |
|
inline |
◆ get_color_attachment_count()
| size_t hellfire::Framebuffer::get_color_attachment_count |
( |
| ) |
const |
|
inline |
◆ get_color_attachments()
| const std::vector< uint32_t > & hellfire::Framebuffer::get_color_attachments |
( |
| ) |
const |
|
inline |
◆ get_depth_attachment()
| uint32_t hellfire::Framebuffer::get_depth_attachment |
( |
| ) |
const |
|
inline |
◆ get_height()
| uint32_t hellfire::Framebuffer::get_height |
( |
| ) |
const |
◆ get_width()
| uint32_t hellfire::Framebuffer::get_width |
( |
| ) |
const |
◆ is_complete()
| bool hellfire::Framebuffer::is_complete |
( |
| ) |
const |
◆ operator=()
◆ read_pixel_from_texture()
| uint32_t hellfire::Framebuffer::read_pixel_from_texture |
( |
uint32_t |
texture_id, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Reads a pixel from an external texture using this framebuffer.
- Parameters
-
| texture_id | Texture to read from |
| x | X coordinate |
| y | Y coordinate |
- Returns
- Pixel value as uint32_t
Definition at line 187 of file Framebuffer.cpp.
◆ resize()
| void hellfire::Framebuffer::resize |
( |
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
◆ unbind()
| void hellfire::Framebuffer::unbind |
( |
| ) |
|
◆ color_attachments_
| std::vector<uint32_t> hellfire::Framebuffer::color_attachments_ |
|
private |
◆ color_settings_
◆ depth_attachment_
| uint32_t hellfire::Framebuffer::depth_attachment_ |
|
private |
◆ depth_settings_
◆ framebuffer_id_
| uint32_t hellfire::Framebuffer::framebuffer_id_ |
|
private |
◆ has_depth_
| bool hellfire::Framebuffer::has_depth_ = false |
|
private |
◆ has_stencil_
| bool hellfire::Framebuffer::has_stencil_ = false |
|
private |
◆ stencil_attachment_
| uint32_t hellfire::Framebuffer::stencil_attachment_ |
|
private |
◆ stencil_settings_
The documentation for this class was generated from the following files: