TDME2 1.9.121
Public Member Functions | List of all members
Partition Struct Referenceabstract

Partition interface. More...

#include <tdme/engine/Partition.h>

Inheritance diagram for Partition:
Inheritance graph
Collaboration diagram for Partition:
Collaboration graph

Public Member Functions

virtual ~Partition ()
 Destructor. More...
 
virtual void reset ()=0
 Reset. More...
 
virtual void addEntity (Entity *entity)=0
 Adds a entity. More...
 
virtual void updateEntity (Entity *entity)=0
 Updates a entity. More...
 
virtual void removeEntity (Entity *entity)=0
 Removes a entity. More...
 
virtual const vector< Entity * > & getVisibleEntities (Frustum *frustum)=0
 Get visible entities. More...
 
virtual bool isVisibleEntity (Entity *entity)=0
 Check if entity is visible. More...
 

Detailed Description

Partition interface.

Author
Andreas Drewke
Version
$Id$

Definition at line 18 of file Partition.h.

Constructor & Destructor Documentation

◆ ~Partition()

virtual ~Partition ( )
inlinevirtual

Destructor.

Definition at line 23 of file Partition.h.

Member Function Documentation

◆ addEntity()

virtual void addEntity ( Entity entity)
pure virtual

Adds a entity.

Parameters
entityentity

Implemented in OctTreePartition, and SimplePartition.

◆ getVisibleEntities()

virtual const vector< Entity * > & getVisibleEntities ( Frustum frustum)
pure virtual

Get visible entities.

Parameters
frustumfrustum
Returns
visible entities

Implemented in OctTreePartition, and SimplePartition.

◆ isVisibleEntity()

virtual bool isVisibleEntity ( Entity entity)
pure virtual

Check if entity is visible.

Parameters
frustumfrustum
entityentity
Returns
if entity has been determined to be visible by last getVisibleEntities() call

Implemented in OctTreePartition, and SimplePartition.

◆ removeEntity()

virtual void removeEntity ( Entity entity)
pure virtual

Removes a entity.

Parameters
entityentity

Implemented in OctTreePartition, and SimplePartition.

◆ reset()

virtual void reset ( )
pure virtual

Reset.

Implemented in OctTreePartition, and SimplePartition.

◆ updateEntity()

virtual void updateEntity ( Entity entity)
pure virtual

Updates a entity.

Parameters
entityentity

Implemented in OctTreePartition, and SimplePartition.


The documentation for this struct was generated from the following file: