DubiousEngine  0.2.0
Simple Game Engine
Dubious::Renderer::Scene Class Reference

A Visible Scene. More...

#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
 
Sceneoperator= (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...
 
Lightscene_light ()
 Accessor to the light. More...
 
const Open_gl_context_storecontext_store () const
 Accessor to the context store. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Dubious::Renderer::Scene::Scene ( const std::shared_ptr< Open_gl_context_store > &  store)

Constructor.

Parameters
store- [in] An Open GL Context Store
Dubious::Renderer::Scene::Scene ( const Scene )
delete

Member Function Documentation

void Dubious::Renderer::Scene::add_object ( const std::shared_ptr< Visible_object > &  object)

Add an object to the scene.

Parameters
object- [in] the object
const Open_gl_context_store& Dubious::Renderer::Scene::context_store ( ) const
inline

Accessor to the context store.

Scene& Dubious::Renderer::Scene::operator= ( const Scene )
delete
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.

Parameters
object- [in] the object
void Dubious::Renderer::Scene::render ( Camera camera)

Call this to render the scene.

Light& Dubious::Renderer::Scene::scene_light ( )
inline

Accessor to the light.


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