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

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

#include <shotrenderer3d.h>

Inheritance diagram for fireworks::graphics::ShotRenderer3D:
Collaboration diagram for fireworks::graphics::ShotRenderer3D:

Public Member Functions

 ShotRenderer3D (PerspectiveCamera *camera)
 Creates the ShotRenderer with a camera target to render to. More...
 
 ~ShotRenderer3D ()
 
void begin () override
 Begins the rendering process. More...
 
void submit (const Renderable3D *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::Renderer3D
virtual ~Renderer3D ()
 

Additional Inherited Members

- Public Attributes inherited from fireworks::graphics::Renderer3D
PerspectiveCameram_Camera3D
 The camera to which the renderers out will be displayed to. More...
 
- Protected Member Functions inherited from fireworks::graphics::Renderer3D
 Renderer3D (PerspectiveCamera *camera3D)
 Creates the renderer using the camera. More...
 

Detailed Description

Renders the 3D renderables on a per draw call basis.

Uses one draw call per renderable given to the renderer

Constructor & Destructor Documentation

◆ ShotRenderer3D()

fireworks::graphics::ShotRenderer3D::ShotRenderer3D ( PerspectiveCamera camera)

Creates the ShotRenderer with a camera target to render to.

Parameters
cameraThe camera target to which the scene will be rendered to

◆ ~ShotRenderer3D()

fireworks::graphics::ShotRenderer3D::~ShotRenderer3D ( )

Member Function Documentation

◆ begin()

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

Begins the rendering process.

Reimplemented from fireworks::graphics::Renderer3D.

◆ end()

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

Ends the submission and prepares the renderer to start drawing.

Reimplemented from fireworks::graphics::Renderer3D.

◆ flush()

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

Draws the data processed onto the screen.

Implements fireworks::graphics::Renderer3D.

◆ submit()

void fireworks::graphics::ShotRenderer3D::submit ( const Renderable3D renderable)
overridevirtual

Begins to submit the renderables to render queue.

Implements fireworks::graphics::Renderer3D.


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