A flat scene partitioning system.
Definition FlatScenePartition.hpp:30
void rebuild() final
Rebuilds the scene partition after changes were done.
void removeSceneObject(const SceneObject &sceneObject) final
Removes an existing scene object from the scene partition structure.
void addSceneObject(const SceneObject &sceneObject) final
Adds a new scene object to the scene partition structure.
SceneObject rayCast(const Ray &ray) final
Casts a ray on the scene to find the first SceneObject that gets hit by the ray.
void updateSceneObject(const SceneObject &sceneObject) final
Updates an existing scene object on the scene partition structure.
Vector< ObjectInformation > mObjects
Definition FlatScenePartition.hpp:38
Partitions the scene into a highly-efficient representation that allows to quickly perform geometric ...
Definition ScenePartition.hpp:24
Definition Application.hpp:19
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25