Lagrange
Scene< Scalar, Index > Struct Template Reference

Public Types

using MeshType = SurfaceMesh< Scalar, Index >
 

Public Member Functions

template<typename T >
ElementId add (T &&value)
 Add an element to the scene. More...
 
void add_child (ElementId parent_id, ElementId child_id)
 Add a child node to a given parent node. More...
 

Public Attributes

std::string name
 
std::vector< Nodenodes
 
std::vector< ElementId > root_nodes
 
std::vector< MeshTypemeshes
 
std::vector< ImageExperimentalimages
 
std::vector< Texturetextures
 
std::vector< MaterialExperimentalmaterials
 
std::vector< Lightlights
 
std::vector< Cameracameras
 
std::vector< Skeletonskeletons
 
std::vector< Animationanimations
 
Extensions extensions
 

Member Function Documentation

◆ add()

ElementId add ( T &&  value)

Add an element to the scene.

Parameters
valueThe element to add. It can be node, mesh, image, texture, material, light, camera, skeleton or animation.
Returns
The element id of the added element.

◆ add_child()

void add_child ( ElementId  parent_id,
ElementId  child_id 
)

Add a child node to a given parent node.

The parent-child relationship will be updated for both nodes.

Parameters
parent_idThe parent node id.
child_idThe child node id.

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