Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
group.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../renderables/renderable2d.h"
4 
5 namespace fireworks { namespace graphics {
6 
10  class Group : public Renderable2D
11  {
12  private:
13  std::vector<Renderable2D*> m_Renderables;
14  glm::mat4 m_TransformationMatrix;
15  public:
20  Group(const glm::mat4& transform);
21  ~Group();
25  void add(Renderable2D* renderable);
27  void submit(Renderer2D* renderer) const override;
28  };
29 } }
Group(const glm::mat4 &transform)
Creates a group to position renderables relatively.
Definition: group.cpp:5
The Class responsible for drawing the basic Renderable objects onto the screen.
Definition: renderable2d.h:36
void submit(Renderer2D *renderer) const override
Submits the group to the Renderer Queue.
Definition: group.cpp:23
Definition: audioclip.cpp:3
void add(Renderable2D *renderable)
Adds renderables to this group.
Definition: group.cpp:18
Forward declaration of the graphics::Renderable2D.
Definition: renderer2d.h:15
~Group()
Definition: group.cpp:11
Creates groups of renderables in a hierarchical relative fashion.
Definition: group.h:10