Ocular Engine
Ocular::Core::BVHSceneNode Class Reference

#include <BVHSceneNode.hpp>

Inheritance diagram for Ocular::Core::BVHSceneNode:
Ocular::Core::SceneNode

Public Member Functions

virtual void attachObject (SceneObject *object) override
 

Public Attributes

Math::BoundsAABB bounds
 Bounds of this BVH node that encompass all children.
 
uint64_t morton
 The morton index value for this node.
 
BVHSceneNodeleft
 The 'left' child node (null if this is a leaf).
 
BVHSceneNoderight
 The 'right' child node (null if this is a leaf).
 
SceneObjectobject
 The object attached to this node (null unless this is a leaf).
 
- Public Attributes inherited from Ocular::Core::SceneNode
SceneNodeType type
 What type of node this scene node is.
 
SceneNodeparent
 Parent node (null if this is root).
 

Detailed Description

Implementation of a node of a Bounding Volume Hierarchy Tree. See the BVHSceneTree for more information.

Member Function Documentation

void Ocular::Core::BVHSceneNode::attachObject ( SceneObject object)
overridevirtual

Attaches the specified parent object to this scene node.

Parameters
[in]object

Implements Ocular::Core::SceneNode.


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