|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
Renders the renderables on a per draw call basis. More...
#include <ShotRenderer2D.h>


Public Member Functions | |
| ShotRenderer2D (Camera2D *camera) | |
| Creates the renderer from the camera. More... | |
| ~ShotRenderer2D () | |
| 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 () |
Additional Inherited Members | |
Public Attributes inherited from fireworks::graphics::Renderer2D | |
| Camera2D * | m_Camera2D |
| The camera to which the renderers out will be displayed to. More... | |
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 on a per draw call basis.
Uses one draw call per renderable given to the renderer
| fireworks::graphics::ShotRenderer2D::ShotRenderer2D | ( | Camera2D * | camera | ) |
Creates the renderer from the camera.
| The | camera to which the renderers output will be displayed to |
| fireworks::graphics::ShotRenderer2D::~ShotRenderer2D | ( | ) |
|
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.