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

#include <TransformationNode.h>

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

Public Member Functions

 TransformationNode (const Vector3D &position, const Quaternion &q, RenderInterface *renderer)
 
virtual ~TransformationNode ()
 
void Process ()
 
- Public Member Functions inherited from Ult::Node
 Node ()
 
virtual ~Node ()
 
void AddChild (Node *node)
 
void AddSibling (Node *node)
 

Protected Attributes

Vector3D mPosition
 
Quaternion mQuaternion
 
RenderInterfacemRenderer
 
- Protected Attributes inherited from Ult::Node
NodemNext
 
NodemPrev
 
NodemChild
 

Detailed Description

Represents a single node in a scene graph that has a transformation (position, rotation)

Constructor & Destructor Documentation

◆ TransformationNode()

Ult::TransformationNode::TransformationNode ( const Vector3D & position,
const Quaternion & q,
RenderInterface * renderer )
inline

TransformationNode constructor.

◆ ~TransformationNode()

virtual Ult::TransformationNode::~TransformationNode ( )
inlinevirtual

TransformationNode destructor.

Member Function Documentation

◆ Process()

void Ult::TransformationNode::Process ( )
inlinevirtual

Applies this node's transformation to the renderer matrix stack, and calls process on its children, pop's the node's transformation, then finally calls process on its siblings

Reimplemented from Ult::Node.

Member Data Documentation

◆ mPosition

Vector3D Ult::TransformationNode::mPosition
protected

◆ mQuaternion

Quaternion Ult::TransformationNode::mQuaternion
protected

◆ mRenderer

RenderInterface* Ult::TransformationNode::mRenderer
protected

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