|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
Creates a Layer to hold a collection of renderables. More...
#include <layer.h>

Public Member Functions | |
| Layer (Renderer2D *renderer) | |
| Create the layer by passing the renderer of your choice. More... | |
| virtual | ~Layer () |
| virtual void | add (Renderable2D *renderable) |
| Use this to add the renderables to the layer. More... | |
| virtual void | render () |
| Renders all the renderables present in the layer. More... | |
| const std::vector< Renderable2D * > & | getRenderables () |
| Gets the list of renderables in the layer. More... | |
Public Attributes | |
| Renderer2D * | m_Renderer |
| The renderer used the by the layer to render the renderables. More... | |
| std::vector< Renderable2D * > | m_Renderables |
| The collection of renderables rendered by the layer. More... | |
Creates a Layer to hold a collection of renderables.
Add the renderables such as Sprite to the layer and automatically submit it to the render queue to render them using the renderer of your choice
| fireworks::graphics::Layer::Layer | ( | Renderer2D * | renderer | ) |
Create the layer by passing the renderer of your choice.
| renderer | The render of your choice |
|
virtual |
|
virtual |
Use this to add the renderables to the layer.
|
inline |
Gets the list of renderables in the layer.
|
virtual |
Renders all the renderables present in the layer.
| std::vector<Renderable2D*> fireworks::graphics::Layer::m_Renderables |
The collection of renderables rendered by the layer.
| Renderer2D* fireworks::graphics::Layer::m_Renderer |
The renderer used the by the layer to render the renderables.