ImageActor actor = ImageActor::New();
actor.SetSize( 100.0f, 100.0f );
actor.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- actor.SetDepthIndex( 1 );
+ actor.SetSortModifier( 1.0f );
parent.Add(actor);
// Render and notify
ImageActor actor = ImageActor::New();
actor.SetSize(100.0f, 100.0f);
actor.SetAnchorPoint(AnchorPoint::TOP_LEFT);
- actor.SetDepthIndex( 1 );
+ actor.SetSortModifier( 1.0f );
parent.Add(actor);
// Render and notify
int ImageActor::GetDepthIndex() const
{
- return static_cast< int >( GetSortModifier() );
+ return static_cast< int >( mImageAttachment->GetSortModifier() );
}
void ImageActor::SetCullFace(CullFaceMode mode)
return GetImplementation(*this).GetSortModifier();
}
-void ImageActor::SetDepthIndex( int depthIndex )
-{
- GetImplementation(*this).SetDepthIndex( depthIndex );
-}
-
-int ImageActor::GetDepthIndex() const
-{
- return GetImplementation(*this).GetDepthIndex();
-}
-
void ImageActor::SetCullFace(const CullFaceMode mode)
{
GetImplementation(*this).SetCullFace(mode);
float GetSortModifier() const;
/**
- * @brief Sets the depth index within a layer for the depth sort algorithm.
- *
- * This is intended to replace SetSortModifier, which will be deprecated and remains currently for backwards compatibility.
- *
- * @param[in] depthIndex The depth index to use for sorting within a layer.
- */
- void SetDepthIndex( int depthIndex );
-
- /**
- * @brief Retrieves the depth index within a layer.
- *
- * This will replace GetSortModifier in the same manner as SetDepthIndex.
- *
- * @return The depth index used for sorting within a layer.
- */
- int GetDepthIndex() const;
-
- /**
* @brief Set the face-culling mode for this actor.
*
* @param[in] mode The culling mode.