Added constructors with parameters for shapes, and default-constructed shapes are now always empty

This commit is contained in:
Laurent Gomila 2011-12-04 10:53:14 +01:00
parent 6034b80ddf
commit 44cc9bad84
8 changed files with 35 additions and 34 deletions

View file

@ -44,16 +44,14 @@ public :
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
/// Creates a 10x10 rectangle.
/// \param size Size of the rectangle
///
////////////////////////////////////////////////////////////
RectangleShape();
RectangleShape(const Vector2f& size = Vector2f(0, 0));
////////////////////////////////////////////////////////////
/// \brief Set the size of the rectangle
///
/// The default size of a rectangle is 10x10.
///
/// \param size New size of the rectangle
///
/// \see GetSize