#include <spBoundingVolume.hpp>
List of all members.
Constructor & Destructor Documentation
sp::scene::BoundingVolume::BoundingVolume |
( |
|
) |
|
sp::scene::BoundingVolume::BoundingVolume |
( |
const BoundingVolume & |
Other |
) |
|
sp::scene::BoundingVolume::~BoundingVolume |
( |
|
) |
|
Member Function Documentation
Proceeds frustum-culling for more optimization. This function is used in the mesh's "render" function.
- Parameters:
-
| Frustum,: | ViewFrustum of the active camera. Camera objects can be activated by the SceneManager using "SceneManager::setActiveCamera". |
| Transformation,: | Frustum's matrix transformation. Use the object's global transformation. |
- Returns:
- True if the object is inside the frustum otherwise false.
const dim::aabbox3df& sp::scene::BoundingVolume::getBox |
( |
|
) |
const [inline] |
f32 sp::scene::BoundingVolume::getRadius |
( |
|
) |
const [inline] |
void sp::scene::BoundingVolume::setBox |
( |
const dim::aabbox3df & |
BoundBox |
) |
[inline] |
Sets the bounding box if the bounding type is BOUNDING_BOX.
- Parameters:
-
| BoundBox,: | Axis-aligned-bounding-box which is to used for frustum-culling. |
void sp::scene::BoundingVolume::setRadius |
( |
const f32 |
Radius |
) |
[inline] |
Sets the bounding-sphere radius if the bounding type is BOUNDING_SPHERE.
void sp::scene::BoundingVolume::setType |
( |
const EBoundingVolumes |
Type |
) |
[inline] |
Sets the type of bounding box. This is used for frustum-culling only for Entity object. Use BOUNDING_NONE to disable frustum culling. Mostly used are bounding boxes. But bounding spheres are faster because of less calculation steps.
- Parameters:
-
| Type,: | Type of the bounding volume. |
The documentation for this class was generated from the following files:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spBoundingVolume.hpp
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/SceneGraph/spBoundingVolume.cpp