SpatiumLib
Public Member Functions | List of all members
spatium::gfx3d::Scene Class Reference

3D scene More...

#include <Scene.h>

Public Member Functions

 Scene ()
 Constructor. More...
 
void setCamera (std::shared_ptr< Camera > camera)
 Set the camera. More...
 
std::shared_ptr< Cameracamera () const
 Get the camera. More...
 
void addLight (std::shared_ptr< Light > light)
 Add a light. More...
 
std::vector< std::shared_ptr< Light > > lights () const
 Get all lights. More...
 
void addRenderObject (std::shared_ptr< RenderObject > renderObject)
 Add a render object. More...
 
std::vector< std::shared_ptr< RenderObject > > renderObjects () const
 Get all render objects. More...
 

Detailed Description

3D scene

A scene is a collection of:

Constructor & Destructor Documentation

◆ Scene()

spatium::gfx3d::Scene::Scene ( )
inline

Constructor.

Member Function Documentation

◆ addLight()

void spatium::gfx3d::Scene::addLight ( std::shared_ptr< Light light)
inline

Add a light.

Parameters
[in]lightLight

◆ addRenderObject()

void spatium::gfx3d::Scene::addRenderObject ( std::shared_ptr< RenderObject renderObject)
inline

Add a render object.

Parameters
[in]renderObjectRender object

◆ camera()

std::shared_ptr<Camera> spatium::gfx3d::Scene::camera ( ) const
inline

Get the camera.

Returns
The camera

◆ lights()

std::vector<std::shared_ptr<Light> > spatium::gfx3d::Scene::lights ( ) const
inline

Get all lights.

Returns
All lights

◆ renderObjects()

std::vector<std::shared_ptr<RenderObject> > spatium::gfx3d::Scene::renderObjects ( ) const
inline

Get all render objects.

Returns
All render objects

◆ setCamera()

void spatium::gfx3d::Scene::setCamera ( std::shared_ptr< Camera camera)
inline

Set the camera.

Parameters
[in]cameraThe camera

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