TDME2 1.9.121
SimplePartition.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include <tdme/tdme.h>
10
11using std::vector;
12
17
18/**
19 * Bogus/Simple partition implementation
20 * @author Andreas Drewke
21 * @version $Id$
22 */
24{
25private:
26 vector<Entity*> entities;
28
29private:
30 // overridden methods
31 void reset() override;
32 void addEntity(Entity* entity) override;
33 void updateEntity(Entity* entity) override;
34 void removeEntity(Entity* entity) override;
35
36public:
37 /**
38 * Public constructor
39 */
41
42 // overridden methods
43 const vector<Entity*>& getVisibleEntities(Frustum* frustum) override;
44 bool isVisibleEntity(Entity* entity) override;
45
46};
TDME engine entity.
Definition: Entity.h:31
Frustum class.
Definition: Frustum.h:30
Bogus/Simple partition implementation.
void removeEntity(Entity *entity) override
Removes a entity.
const vector< Entity * > & getVisibleEntities(Frustum *frustum) override
Get visible entities.
VectorIteratorMultiple< Entity * > arrayListIteratorMultiple
SimplePartition()
Public constructor.
void updateEntity(Entity *entity) override
Updates a entity.
void addEntity(Entity *entity) override
Adds a entity.
bool isVisibleEntity(Entity *entity) override
Check if entity is visible.
void reset() override
Reset.
Vector iterator template to be used to iterate multiple vectors at a single invocation.
Partition interface.
Definition: Partition.h:19