![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
#include <Renderer.hpp>
Collaboration diagram for galaxy::Renderer:Public Member Functions | |
| Renderer () | |
| ~Renderer () | |
| void | prepare () |
| Called only in the update loop when we need to refresh data to render. | |
| void | begin_pass (RenderPass &pass) |
| void | bind_pipeline (RenderPipeline &pipeline) |
| void | push_cmd (RenderCmd &&cmd) |
| Try not to push too many non-quads, only quads are batched. | |
| void | end_pass (Camera &camera) |
Private Attributes | |
| VertexBatch | m_quads |
| All quads get batched. | |
| std::vector< RenderCmd > | m_commands |
| RenderCommands. | |
| RenderPass * | m_pass |
| RenderPipeline * | m_pipeline |
| ShaderBuffer | m_uniform_storage |
| Shader uniform data. | |
| ShaderBuffer | m_camera_storage |
| std::vector< RenderData > | m_uniform_data |
Definition at line 21 of file Renderer.hpp.
| galaxy::Renderer::Renderer | ( | ) |
| galaxy::Renderer::~Renderer | ( | ) |
Definition at line 29 of file Renderer.cpp.
| void galaxy::Renderer::prepare | ( | ) |
Called only in the update loop when we need to refresh data to render.
Definition at line 35 of file Renderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void galaxy::Renderer::begin_pass | ( | RenderPass & | pass | ) |
| void galaxy::Renderer::bind_pipeline | ( | RenderPipeline & | pipeline | ) |
| void galaxy::Renderer::push_cmd | ( | RenderCmd && | cmd | ) |
Try not to push too many non-quads, only quads are batched.
Definition at line 84 of file Renderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void galaxy::Renderer::end_pass | ( | Camera & | camera | ) |
Definition at line 109 of file Renderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
All quads get batched.
Definition at line 65 of file Renderer.hpp.
|
private |
RenderCommands.
Definition at line 70 of file Renderer.hpp.
|
private |
Definition at line 75 of file Renderer.hpp.
|
private |
Definition at line 80 of file Renderer.hpp.
|
private |
Shader uniform data.
Definition at line 85 of file Renderer.hpp.
|
private |
Definition at line 87 of file Renderer.hpp.
|
private |
Definition at line 89 of file Renderer.hpp.