Renders a series of framebuffers onto screen. This is a relatively simple way of allowing organization of multiple framebuffers. But layer management is a bit scuffed and could be made more intuitive. How, that's a different question.
How to use:
More...
#include <framebuffer.h>
Renders a series of framebuffers onto screen. This is a relatively simple way of allowing organization of multiple framebuffers. But layer management is a bit scuffed and could be made more intuitive. How, that's a different question.
How to use:
LayerRenderer layers;
int first = layers.AddLayer<FramebufferRenderer>(shader, window);
int second = layers.AddLayer<FramebufferRenderer>(shader, window);
void EndDraw(int layer)
Definition: framebuffer.cpp:207
void NewFrame(const cqsp::engine::Window &window)
Definition: framebuffer.cpp:223
void BeginDraw(int layer)
Definition: framebuffer.cpp:205
void DrawAllLayers()
Definition: framebuffer.cpp:209
std::shared_ptr< ShaderProgram > ShaderProgram_t
The preferred way of using a shader program.
Definition: shader.h:112
double second
Definition: units.h:42
◆ AddLayer()
◆ BeginDraw()
void LayerRenderer::BeginDraw |
( |
int |
layer | ) |
|
◆ DrawAllLayers()
void LayerRenderer::DrawAllLayers |
( |
| ) |
|
◆ EndDraw()
void LayerRenderer::EndDraw |
( |
int |
layer | ) |
|
◆ GetFrameBuffer()
IFramebuffer * cqsp::engine::LayerRenderer::GetFrameBuffer |
( |
int |
layer | ) |
|
|
inline |
◆ GetLayerCount()
int LayerRenderer::GetLayerCount |
( |
| ) |
|
◆ InitFramebuffer()
◆ NewFrame()
◆ framebuffers
std::vector<std::unique_ptr<IFramebuffer> > cqsp::engine::LayerRenderer::framebuffers |
|
private |
The documentation for this class was generated from the following files: