Browse Source

Added Object2D::move() to manage 2D stacking order.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
881f07ec76
  1. 10
      src/SceneGraph/Object.h

10
src/SceneGraph/Object.h

@ -299,6 +299,16 @@ class SCENEGRAPH_EXPORT Object2D: public Object<Matrix3, Vector2, Object2D, Scen
multiplyTransformation(Matrix3::rotation(angle), type);
return this;
}
/**
* @brief Move object in stacking order
* @param under Sibling object under which to move or `nullptr`,
* if you want to move it above all.
*/
inline Object2D* move(Object2D* under) {
list()->Corrade::Containers::DoubleLinkedList<Object2D>::move(this, under);
return this;
}
};
/** @brief Three-dimensional object */

Loading…
Cancel
Save