1#ifndef UTIL_Renderer_HPP
2#define UTIL_Renderer_HPP
7#include "Util/GameObject.hpp"
25 Renderer(
const std::vector<std::shared_ptr<GameObject>> &children = {});
32 void AddChild(
const std::shared_ptr<GameObject> &child);
39 void AddChildren(
const std::vector<std::shared_ptr<GameObject>> &children);
56 std::vector<std::shared_ptr<GameObject>> m_Children;
A class handling GameObjects' Draw()
Definition: Renderer.hpp:17
void RemoveChild(std::shared_ptr< GameObject > child)
Remove the child.
Renderer(const std::vector< std::shared_ptr< GameObject > > &children={})
Parameterized constructor. `.
void Update()
Draw children according to their z-index.
void AddChild(const std::shared_ptr< GameObject > &child)
Add a child to Renderer.
void AddChildren(const std::vector< std::shared_ptr< GameObject > > &children)
Add children to Renderer.
Useful tools for development.
Definition: Animation.hpp:12