Definition at line 19 of file Scene.hpp.
◆ Scene()
ns::Scene::Scene |
( |
std::string |
name | ) |
|
|
explicit |
Constructs a Scene object.
A Scene contains multiple ordered Layer objects. The Layer objects with the lower orders will render their drawables first on the Scene.
- Parameters
-
◆ deleteLayer()
void ns::Scene::deleteLayer |
( |
const std::string & |
name | ) |
|
Removes and clears the Layer of the given name.
- Parameters
-
◆ getDefaultLayer()
auto ns::Scene::getDefaultLayer |
( |
| ) |
-> Layer & |
Returns the default Scene Layer Default layer will always be drawn first, before any other layer.
- Returns
- Reference to the default Layer object
◆ getLayer()
auto ns::Scene::getLayer |
( |
const std::string & |
name | ) |
-> Layer & |
Returns the layer of the given name.
- Parameters
-
name | The name of the layer to get |
- Returns
- Reference to the requested Layer object
The documentation for this class was generated from the following file: