|
Gin
|
A scene containing multiple 3D objects and a camera. More...
#include <gin_scene3d.h>
Public Member Functions | |
| Scene3D ()=default | |
| void | clear () |
| Clears all objects from the scene. | |
| Object3D * | addObject () |
| Adds an object to the scene and returns a pointer to it. | |
| Object3D * | getObject (size_t index) |
| Gets an object by index. | |
| size_t | getNumObjects () const |
| Gets the number of objects. | |
| void | removeObject (size_t index) |
| Removes an object by index. | |
| Camera3D & | getCamera () |
| Gets the camera. | |
| const Camera3D & | getCamera () const |
| const std::vector< std::unique_ptr< Object3D > > & | getObjects () const |
| Gets all objects (for rendering). | |
A scene containing multiple 3D objects and a camera.
|
default |
| void Scene3D::clear | ( | ) |
Clears all objects from the scene.
| Object3D * Scene3D::addObject | ( | ) |
Adds an object to the scene and returns a pointer to it.
| size_t Scene3D::getNumObjects | ( | ) | const |
Gets the number of objects.
| Camera3D & Scene3D::getCamera | ( | ) |
Gets the camera.
Gets all objects (for rendering).