Falcon
Public Member Functions | List of all members
Rendering::Octree Class Reference

#include <Octree.h>

Public Member Functions

Scene::entityVectorGetViewables ()
 
void SetProjection (glm::mat4 proj)
 
 Octree (glm::vec3 nearTopLeft, glm::vec3 farBottomRight, float minSide, Scene::SceneGraph *scene, Camera *camera)
 
void Update ()
 
 ~Octree ()
 

Detailed Description

Data structure to hold all data and implementations related to the entire octree.

Constructor & Destructor Documentation

◆ Octree()

Rendering::Octree::Octree ( glm::vec3  nearTopLeft,
glm::vec3  farBottomRight,
float  minSide,
Scene::SceneGraph scene,
Camera camera 
)

Main Constructor method for Octree.

Parameters
[in]Thecorner point of one of the cuboidal space covered in the scene by the octree.
[in]Thediagonally opposite corner of the octree.
[in]Pointerto the main SceneGraph managing the scene.
[in]Pointerto the Current viewing Camera

◆ ~Octree()

Rendering::Octree::~Octree ( )

Default Destructor for the Octree.

Member Function Documentation

◆ GetViewables()

Scene::entityVector* Rendering::Octree::GetViewables ( )
inline

◆ SetProjection()

void Rendering::Octree::SetProjection ( glm::mat4  proj)
inline

◆ Update()

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.


The documentation for this class was generated from the following files: