Lagrange
Loading...
Searching...
No Matches
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.
 
void add_child (ElementId parent_id, ElementId child_id)
 Add a child node to a given parent node.
 

Public Attributes

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

Member Function Documentation

◆ add()

template<typename Scalar, typename Index>
template<typename T>
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()

template<typename Scalar, typename Index>
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: