Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::Node Class Reference

#include <Node.h>

Inheritance diagram for Ult::Node:
Ult::GeometryNode Ult::TransformationNode

Public Member Functions

 Node ()
 
virtual ~Node ()
 
void AddChild (Node *node)
 
void AddSibling (Node *node)
 
virtual void Process ()
 

Protected Attributes

NodemNext
 
NodemPrev
 
NodemChild
 

Detailed Description

Base class representing a single node in a scene graph

Constructor & Destructor Documentation

◆ Node()

Ult::Node::Node ( )
inline

Node constructor

◆ ~Node()

virtual Ult::Node::~Node ( )
inlinevirtual

Node destructor. Deletes child and next nodes.

Member Function Documentation

◆ AddChild()

void Ult::Node::AddChild ( Node * node)
inline

Adds a new child, or a sibling to the current child if one already exists.

◆ AddSibling()

void Ult::Node::AddSibling ( Node * node)
inline

Adds a sibling node to this current node

◆ Process()

virtual void Ult::Node::Process ( )
inlinevirtual

Calls process on its child and sibling nodes if they exist.

Reimplemented in Ult::GeometryNode, and Ult::TransformationNode.

Member Data Documentation

◆ mChild

Node* Ult::Node::mChild
protected

◆ mNext

Node* Ult::Node::mNext
protected

◆ mPrev

Node* Ult::Node::mPrev
protected

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