Castor3D  ..
Static Public Member Functions | List of all members
Castor3D::ElementAttacher< Elem, typename std::enable_if< !is_detachable< Elem >::value >::type > Struct Template Reference

Helper structure to enable attaching if a type supports it. More...

Static Public Member Functions

static void Attach (std::shared_ptr< Elem > p_element, SceneNodeSPtr p_parent, SceneNodeSPtr p_rootNode, SceneNodeSPtr p_rootCameraNode, SceneNodeSPtr p_rootObjectNode)
 Attaches an element to the appropriate parent node. More...
 

Detailed Description

template<typename Elem>
struct Castor3D::ElementAttacher< Elem, typename std::enable_if< !is_detachable< Elem >::value >::type >

Helper structure to enable attaching if a type supports it.

Author
Sylvain DOREMUS
Date
29/01/2016
Version
0.8.0
Remarks
Specialisation for non attachable object types.

Member Function Documentation

◆ Attach()

template<typename Elem >
static void Castor3D::ElementAttacher< Elem, typename std::enable_if< !is_detachable< Elem >::value >::type >::Attach ( std::shared_ptr< Elem >  p_element,
SceneNodeSPtr  p_parent,
SceneNodeSPtr  p_rootNode,
SceneNodeSPtr  p_rootCameraNode,
SceneNodeSPtr  p_rootObjectNode 
)
inlinestatic

Attaches an element to the appropriate parent node.

Parameters
[in]p_elementThe scene node.
[in]p_parentThe parent scene node.
[in]p_rootNodeThe root node.
[in]p_rootCameraNodeThe cameras root node.
[in]p_rootObjectNodeThe objects root node.

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