Added constructors with parameters for shapes, and default-constructed shapes are now always empty
This commit is contained in:
parent
6034b80ddf
commit
44cc9bad84
8 changed files with 35 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue