|
Turbo Engine 0.3
A C++ game engine using Allegro 5
|
Represents a drawable rectangle. More...
#include <RectangleShape.hpp>
Public Member Functions | |
| RectangleShape (const Vector2< unsigned int > &size, const Color &color=Color()) | |
| RectangleShape (unsigned int width, unsigned int height, const Color &color=Color()) | |
| void | draw () const override |
| Draw the drawable -_-. | |
Public Attributes | |
| bool | is_filled = true |
| Is filled or only borders ? | |
| float | thickness = 1.0f |
| Thickness of the border is is_filled is false. | |
| float | border_radius = 0.0f |
| Border radius of the rectangle. | |
| Color | color = Color() |
| Color of the shape. | |
| Vector2< unsigned int > | size |
| size of the rectangle in pixels | |
Represents a drawable rectangle.
| turbo::RectangleShape::RectangleShape | ( | const Vector2< unsigned int > & | size, |
| const Color & | color = Color() ) |
| turbo::RectangleShape::RectangleShape | ( | unsigned int | width, |
| unsigned int | height, | ||
| const Color & | color = Color() ) |
|
overridevirtual |
Draw the drawable -_-.
Implements turbo::Drawable.
| float turbo::RectangleShape::border_radius = 0.0f |
Border radius of the rectangle.
| bool turbo::RectangleShape::is_filled = true |
Is filled or only borders ?
| Vector2<unsigned int> turbo::RectangleShape::size |
size of the rectangle in pixels
| float turbo::RectangleShape::thickness = 1.0f |
Thickness of the border is is_filled is false.