Takes care of the rendering to the texture and then rendering the texture to the screen.
More...
#include <texture_renderer.h>
Takes care of the rendering to the texture and then rendering the texture to the screen.
Definition at line 32 of file texture_renderer.h.
◆ TextureRenderer()
TextureRenderer::TextureRenderer |
( |
| ) |
|
◆ bind_default_fb()
void TextureRenderer::bind_default_fb |
( |
| ) |
|
◆ bind_fb()
void TextureRenderer::bind_fb |
( |
const glm::vec2 & |
fb_size | ) |
|
◆ bind_fbs_and_textures()
void TextureRenderer::bind_fbs_and_textures |
( |
| ) |
|
|
private |
◆ gen_fbs()
void TextureRenderer::gen_fbs |
( |
| ) |
|
|
private |
◆ gen_textures()
void TextureRenderer::gen_textures |
( |
| ) |
|
|
private |
◆ get_active_fb()
size_t TextureRenderer::get_active_fb |
( |
| ) |
|
|
inline |
◆ get_num_of_texts()
size_t TextureRenderer::get_num_of_texts |
( |
| ) |
|
|
inline |
◆ init()
void TextureRenderer::init |
( |
| ) |
|
◆ prepare_screen_quad_data()
void TextureRenderer::prepare_screen_quad_data |
( |
| ) |
|
|
private |
◆ render()
void TextureRenderer::render |
( |
| ) |
|
◆ resize_fbs()
void TextureRenderer::resize_fbs |
( |
const glm::vec2 & |
fb_size | ) |
|
|
private |
◆ current_fb
size_t TextureRenderer::current_fb |
|
private |
◆ fb_size
glm::vec2 TextureRenderer::fb_size |
|
private |
◆ fbs
◆ num_of_textures
constexpr size_t TextureRenderer::num_of_textures = 5 |
|
staticconstexprprivate |
◆ screen_quad_data
const std::array<float, 12> TextureRenderer::screen_quad_data |
|
private |
◆ shader_tex
Shader TextureRenderer::shader_tex |
|
private |
◆ textures
◆ VAO_quad
unsigned int TextureRenderer::VAO_quad |
|
private |
◆ VBO_quad
unsigned int TextureRenderer::VBO_quad |
|
private |
The documentation for this struct was generated from the following files: