|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
Renders the renderables in a single draw call using batching. More...
#include <batchrenderer2d.h>


Public Member Functions | |
| BatchRenderer2D (Camera2D *camera2D, Shader *shader) | |
| Creates the batch renderer. More... | |
| ~BatchRenderer2D () | |
| void | begin () override |
| Begins the rendering process. More... | |
| void | submit (const Renderable2D *renderable) override |
| Begins to submit the renderables to render queue. More... | |
| void | end () override |
| Ends the submission and prepares the renderer to start drawing. More... | |
| void | flush () override |
| Draws the data processed onto the screen. More... | |
Public Member Functions inherited from fireworks::graphics::Renderer2D | |
| void | push (const glm::mat4 &matrix, bool override=false) |
| Pushes the transformation matrix to transform the renderables if using groups. More... | |
| void | pop () |
| Pops the transformation matrix to transform the renderables if using groups. More... | |
| virtual | ~Renderer2D () |
Public Attributes | |
| Shader * | m_Shader |
| The shader with which the batch will be rendered with. More... | |
Public Attributes inherited from fireworks::graphics::Renderer2D | |
| Camera2D * | m_Camera2D |
| The camera to which the renderers out will be displayed to. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from fireworks::graphics::Renderer2D | |
| Renderer2D (Camera2D *camera2D) | |
| Creates the renderer using the camera. More... | |
Protected Attributes inherited from fireworks::graphics::Renderer2D | |
| std::vector< glm::mat4 > | m_TransformationStack |
| The transformation matrix stack that keeps track of relative transformation matrix of the groups. More... | |
| const glm::mat4 * | m_TransformationBack |
| The transformation matrix to renders stuff relative to one another aka if using groups. More... | |
Renders the renderables in a single draw call using batching.
Creates the batch renderer.
| camera2D | The graphics::Camera2D to which the rendered view will be relayed to |
| shader | The shader with which the batch will be rendered with |
| fireworks::graphics::BatchRenderer2D::~BatchRenderer2D | ( | ) |
|
overridevirtual |
Begins the rendering process.
Reimplemented from fireworks::graphics::Renderer2D.
|
overridevirtual |
Ends the submission and prepares the renderer to start drawing.
Reimplemented from fireworks::graphics::Renderer2D.
|
overridevirtual |
Draws the data processed onto the screen.
Implements fireworks::graphics::Renderer2D.
|
overridevirtual |
Begins to submit the renderables to render queue.
Implements fireworks::graphics::Renderer2D.
| Shader* fireworks::graphics::BatchRenderer2D::m_Shader |
The shader with which the batch will be rendered with.