|
DubiousEngine
0.2.0
Simple Game Engine
|
#include <Scene.h>
Classes | |
| struct | Light |
| A Light. More... | |
Public Member Functions | |
| Scene (const std::shared_ptr< Open_gl_context_store > &store) | |
| Constructor. More... | |
| Scene (const Scene &)=delete | |
| Scene & | operator= (const Scene &)=delete |
| void | render (Camera &camera) |
| Call this to render the scene. More... | |
| void | add_object (const std::shared_ptr< Visible_object > &object) |
| Add an object to the scene. More... | |
| void | remove_object (const std::shared_ptr< Visible_object > &object) |
| Remove and object from the scene. More... | |
| void | remove_all_objects () |
| Remove all objects from the scene. More... | |
| Light & | scene_light () |
| Accessor to the light. More... | |
| const Open_gl_context_store & | context_store () const |
| Accessor to the context store. More... | |
A Visible Scene.
A Scene represents a collection of drawable object that will be drawn. It is really the top level construct for the Renderer namespace.
| Dubious::Renderer::Scene::Scene | ( | const std::shared_ptr< Open_gl_context_store > & | store | ) |
Constructor.
| store | - [in] An Open GL Context Store |
|
delete |
| void Dubious::Renderer::Scene::add_object | ( | const std::shared_ptr< Visible_object > & | object | ) |
Add an object to the scene.
| object | - [in] the object |
|
inline |
Accessor to the context store.
| void Dubious::Renderer::Scene::remove_all_objects | ( | ) |
Remove all objects from the scene.
| void Dubious::Renderer::Scene::remove_object | ( | const std::shared_ptr< Visible_object > & | object | ) |
Remove and object from the scene.
| object | - [in] the object |
| void Dubious::Renderer::Scene::render | ( | Camera & | camera | ) |
Call this to render the scene.
|
inline |
Accessor to the light.