const ColorMode Node::DEFAULT_COLOR_MODE( USE_OWN_MULTIPLY_PARENT_ALPHA );
-Node* Node::New()
+Node* Node::New( unsigned int id )
{
- return new ( gNodeMemoryPool.AllocateRawThreadSafe() ) Node();
+ return new ( gNodeMemoryPool.AllocateRawThreadSafe() ) Node( id );
}
void Node::Delete( Node* node )
}
}
-Node::Node()
+Node::Node( unsigned int id )
: mTransformManager( NULL ),
mTransformId( INVALID_TRANSFORM_ID ),
mParentOrigin( TRANSFORM_PROPERTY_PARENT_ORIGIN ),
mWorldMatrix(),
mWorldColor( Color::WHITE ),
mClippingSortModifier( 0u ),
+ mId( id ),
mParent( NULL ),
mExclusiveRenderTask( NULL ),
mChildren(),
} // namespace SceneGraph
-template <>
-void OwnerPointer<Dali::Internal::SceneGraph::Node>::Reset()
-{
- if( mObject != NULL )
- {
- Dali::Internal::SceneGraph::Node::Delete( mObject );
- mObject = NULL;
- }
-}
-
} // namespace Internal
-template <>
-void OwnerContainer<Dali::Internal::SceneGraph::Node*>::Delete(Dali::Internal::SceneGraph::Node* pointer)
-{
- Dali::Internal::SceneGraph::Node::Delete( pointer );
-}
-
} // namespace Dali