Falcon
|
#include <Octree.h>
Public Member Functions | |
OctreeNode (glm::vec3 nearTopLeft, glm::vec3 farBottomRight) | |
~OctreeNode () | |
Static Public Member Functions | |
static unsigned int | GetCount () |
Friends | |
class | Octree |
bool | CheckEntityPosInNode (OctreeNode *node, Entity *entity) |
bool | CheckBounds (OctreeNode *node, glm::vec3 NTL, glm::vec3 FBR) |
Data structure to hold all data and implementations related to a single node inside our dynamic Octree
Rendering::OctreeNode::OctreeNode | ( | glm::vec3 | nearTopLeft, |
glm::vec3 | farBottomRight | ||
) |
Octree Node Constructor function
[in] | the | corner point of one of the cuboidal space covered in the scene by the octreenode. |
[in] | the | diagonally opposite corner of the octreenode. |
Rendering::OctreeNode::~OctreeNode | ( | ) |
Octree Node Destructor
|
inlinestatic |
|
friend |
Non-Member Function that checks if the diagonally opposite corners of a bounding box are within the bounds of the provided octreenode.
[in] | Pointer | to the Octreenode used as reference. |
[in] | The | corner point of the bounding box. |
[in] | The | diagonally opposite corner point of the bounding box. |
[out] | boolean | value indicating if the test was positive or negative (false if outside, true if inside). |
|
friend |
Non-member Function that checks if the provided entity
[in] | Pointer | to the OctreeNode. |
[in] | Pointer | to the enitity. |
[out] | boolean | value indicating if the test was positive or negative (false if outside, true if inside). |
|
friend |