Falcon
|
#include <Octree.h>
Public Member Functions | |
Scene::entityVector * | GetViewables () |
void | SetProjection (glm::mat4 proj) |
Octree (glm::vec3 nearTopLeft, glm::vec3 farBottomRight, float minSide, Scene::SceneGraph *scene, Camera *camera) | |
void | Update () |
~Octree () | |
Data structure to hold all data and implementations related to the entire octree.
Rendering::Octree::Octree | ( | glm::vec3 | nearTopLeft, |
glm::vec3 | farBottomRight, | ||
float | minSide, | ||
Scene::SceneGraph * | scene, | ||
Camera * | camera | ||
) |
Rendering::Octree::~Octree | ( | ) |
Default Destructor for the Octree.
|
inline |
|
inline |
void Rendering::Octree::Update | ( | ) |
Main Update Function for Octree. Checks for moved entities and reasssigns them to a new node if necessary. Assigns nodes to entities entering the octree space. Extracts viewing plane equations for the current frame Culls objects based on whether their nodes intersect with the viewing plane.