|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
The scene object that contains information about the 3d rendering and renderables objects. More...
#include <scene3d.h>

Public Member Functions | |
| Scene3D (Renderer3D *renderer) | |
| Creates a 3D scene to store 3d renderable objects. More... | |
| virtual | ~Scene3D () |
| Destructor of the scene More... | |
| virtual void | add (Renderable3D *renderable) |
| Adds 3D renderables to the scene. More... | |
| virtual void | render () |
| Renders the scene by submitting it's renderables to the renderer's render queue. More... | |
| const std::vector< Renderable3D * > & | getRendetables () const |
| Gets a reference to the pool of renderables in the scene. More... | |
Public Attributes | |
| Renderer3D * | renderer |
| The Renderer3D used by the scene to render the 3d renderables. More... | |
| std::vector< Renderable3D * > | renderables |
| The list of 3d renderables that are present in the scene. More... | |
The scene object that contains information about the 3d rendering and renderables objects.
It stores all the renderables and information about renderable3d objects, also takes care of render queuing
| fireworks::graphics::Scene3D::Scene3D | ( | Renderer3D * | renderer | ) |
Creates a 3D scene to store 3d renderable objects.
| renderer | The 3DRenderer to use to render the 3d objects |
|
virtual |
Destructor of the scene
|
virtual |
Adds 3D renderables to the scene.
| renderable | The renderable object to be rendered in the scene |
|
inline |
Gets a reference to the pool of renderables in the scene.
|
virtual |
Renders the scene by submitting it's renderables to the renderer's render queue.
| std::vector<Renderable3D*> fireworks::graphics::Scene3D::renderables |
The list of 3d renderables that are present in the scene.
| Renderer3D* fireworks::graphics::Scene3D::renderer |
The Renderer3D used by the scene to render the 3d renderables.