/**
* @copydoc Dali::Layer::ZValue(const Vector3&, float)
- */
- static float ZValue(const Vector3& position, float sortModifier)
+ *
+ * This is the default sorting function.
+ * It is useful for 2D user interfaces, and it's used to sort translucent renderers.
+ *
+ * Only the Z signed distance from the camera is considererd, lower values will be drawn on top.
+ *
+ * @param[in] position position of actor in view space
+ * @return depth
+ */
+ static float ZValue(const Vector3& position)
{
// inlined so we avoid a function call when sorting renderers
- return position.z + sortModifier;
+ return position.z;
}
/**
}
/**
+ * @copydoc Dali::Layer::SetBehavior()
+ */
+ void SetBehavior( Dali::Layer::Behavior behavior );
+
+ /**
+ * @copydoc Dali::Layer::GetBehavior()
+ */
+ Dali::Layer::Behavior GetBehavior() const
+ {
+ return mBehavior;
+ }
+
+ /**
* @copydoc Dali::Layer::SetDepthTestDisabled()
*/
void SetDepthTestDisabled( bool disable );
/**
* @copydoc Dali::Internal::Actor::DoAction()
*/
- static bool DoAction(BaseObject* object, const std::string& actionName, const std::vector<Property::Value>& attributes);
+ static bool DoAction(BaseObject* object, const std::string& actionName, const Property::Map& attributes);
public: // Default property extensions from Object
/**
ClippingBox mClippingBox; ///< The clipping box, in window coordinates
Dali::Layer::SortFunctionType mSortFunction; ///< Used to sort semi-transparent geometry
+ Dali::Layer::Behavior mBehavior; ///< Behavior of the layer
+
bool mIsClipping:1; ///< True when clipping is enabled
bool mDepthTestDisabled:1; ///< Whether depth test is disabled.
bool mTouchConsumed:1; ///< Whether we should consume touch (including gesture).