21 #ifndef GF_ENTITY_CONTAINER_H
22 #define GF_ENTITY_CONTAINER_H
24 #include <type_traits>
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
140 std::vector<
Entity *> m_entities;
143 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
friend class RenderTarget
Definition: Shader.h:387
A game entity.
Definition: Entity.h:51
void addEntity(Entity &entity)
Add an entity to the collection.
Entity * removeEntity(Entity *entity)
Remove an entity from the collection.
void render(RenderTarget &target)
Render the entities on the target.
#define GF_API
Definition: Portability.h:35
void update(float dt)
Update the entities.
E * removeTypedEntity(E *entity)
Remove a typed entity from the collection.
Definition: EntityContainer.h:132
A collection of entities.
Definition: EntityContainer.h:57