Helper structure to enable attaching if a type supports it.
More...
|
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...
|
|
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
◆ 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_element | The scene node. |
[in] | p_parent | The parent scene node. |
[in] | p_rootNode | The root node. |
[in] | p_rootCameraNode | The cameras root node. |
[in] | p_rootObjectNode | The objects root node. |
The documentation for this struct was generated from the following file: