A class handling GameObjects' Draw()
More...
#include <Renderer.hpp>
A class handling GameObjects' Draw()
- See also
- Util::GameObject
◆ Renderer()
| Util::Renderer::Renderer |
( |
const std::vector< std::shared_ptr< GameObject > > & |
children = {} | ) |
|
Parameterized constructor. `.
- Parameters
-
◆ AddChild()
| void Util::Renderer::AddChild |
( |
const std::shared_ptr< GameObject > & |
child | ) |
|
◆ AddChildren()
| void Util::Renderer::AddChildren |
( |
const std::vector< std::shared_ptr< GameObject > > & |
children | ) |
|
Add children to Renderer.
- Parameters
-
| children | The GameObjects needing to be managed by Renderer. |
◆ RemoveChild()
| void Util::Renderer::RemoveChild |
( |
std::shared_ptr< GameObject > |
child | ) |
|
Remove the child.
- Parameters
-
◆ Update()
| void Util::Renderer::Update |
( |
| ) |
|
Draw children according to their z-index.
- Note
- The user is not recommended to modify this function.
The documentation for this class was generated from the following file: