SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLEntity Struct Reference

SLEntity is the Data Oriented Design version of a SLNode. More...

#include <SLEntities.h>

Public Member Functions

 SLEntity (SLNode *myNode=nullptr)
 

Public Attributes

SLint parentID
 ID of the parent node (-1 of no parent) More...
 
SLuint childCount
 Number of children. More...
 
SLMat4f om
 Object matrix for local transforms. More...
 
SLMat4f wm
 World matrix for world transform. More...
 
SLMat4f wmI
 Inverse world matrix. More...
 
SLNodenode
 Pointer to the corresponding SLNode instance. More...
 

Detailed Description

SLEntity is the Data Oriented Design version of a SLNode.

Definition at line 27 of file SLEntities.h.

Constructor & Destructor Documentation

◆ SLEntity()

SLEntity::SLEntity ( SLNode myNode = nullptr)
inline

Definition at line 29 of file SLEntities.h.

30  : node(myNode),
31  parentID(0),
32  childCount(0) {}
SLuint childCount
Number of children.
Definition: SLEntities.h:35
SLint parentID
ID of the parent node (-1 of no parent)
Definition: SLEntities.h:34
SLNode * node
Pointer to the corresponding SLNode instance.
Definition: SLEntities.h:39

Member Data Documentation

◆ childCount

SLuint SLEntity::childCount

Number of children.

Definition at line 35 of file SLEntities.h.

◆ node

SLNode* SLEntity::node

Pointer to the corresponding SLNode instance.

Definition at line 39 of file SLEntities.h.

◆ om

SLMat4f SLEntity::om

Object matrix for local transforms.

Definition at line 36 of file SLEntities.h.

◆ parentID

SLint SLEntity::parentID

ID of the parent node (-1 of no parent)

Definition at line 34 of file SLEntities.h.

◆ wm

SLMat4f SLEntity::wm

World matrix for world transform.

Definition at line 37 of file SLEntities.h.

◆ wmI

SLMat4f SLEntity::wmI

Inverse world matrix.

Definition at line 38 of file SLEntities.h.


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