Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::graphics::ShotRenderer2D Class Reference

Renders the renderables on a per draw call basis. More...

#include <ShotRenderer2D.h>

Inheritance diagram for fireworks::graphics::ShotRenderer2D:
Collaboration diagram for fireworks::graphics::ShotRenderer2D:

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
Camera2Dm_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...
 

Detailed Description

Renders the renderables on a per draw call basis.

Uses one draw call per renderable given to the renderer

Constructor & Destructor Documentation

◆ ShotRenderer2D()

fireworks::graphics::ShotRenderer2D::ShotRenderer2D ( Camera2D camera)

Creates the renderer from the camera.

Parameters
Thecamera to which the renderers output will be displayed to

◆ ~ShotRenderer2D()

fireworks::graphics::ShotRenderer2D::~ShotRenderer2D ( )

Member Function Documentation

◆ begin()

void fireworks::graphics::ShotRenderer2D::begin ( )
overridevirtual

Begins the rendering process.

Reimplemented from fireworks::graphics::Renderer2D.

◆ end()

void fireworks::graphics::ShotRenderer2D::end ( )
overridevirtual

Ends the submission and prepares the renderer to start drawing.

Reimplemented from fireworks::graphics::Renderer2D.

◆ flush()

void fireworks::graphics::ShotRenderer2D::flush ( )
overridevirtual

Draws the data processed onto the screen.

Implements fireworks::graphics::Renderer2D.

◆ submit()

void fireworks::graphics::ShotRenderer2D::submit ( const Renderable2D renderable)
overridevirtual

Begins to submit the renderables to render queue.

Implements fireworks::graphics::Renderer2D.


The documentation for this class was generated from the following files: