- nom
- Rectangle
#include <Rectangle.hpp>
Public Member Functions | |
| Rectangle (void) | |
| Default constructor; construct component objects with their sane defaults. | |
| virtual | ~Rectangle (void) |
| Lazy destructor with nothing to do. Please inherit me! | |
| Rectangle (const Rectangle &rect) | |
| Rectangle (const Coords &coords, const Color &color) | |
| Rectangle (int32 x1, int32 y1, int32 width, int32 height, const Color &color) | |
| void | update (void) |
| void | draw (RenderTarget target) const |
Public Member Functions inherited from nom::IDrawable | |
| IDrawable (void) | |
| Do nothing at all default constructor. | |
| virtual | ~IDrawable (void) |
| Do nothing at all destructor. | |
Private Attributes | |
| Coords | coords |
| X, Y signed integer rendering coordinates. | |
| Color | color |
| Rendering color (RGBA). | |
Additional Inherited Members | |
Public Types inherited from nom::IDrawable | |
|
typedef std::unique_ptr < IDrawable > | UniquePtr |
| std::unique_ptr definition type for your convenience, sir! | |
|
typedef std::shared_ptr < IDrawable > | SharedPtr |
| std::shared_ptr definition type at your leisure, sir! | |
|
typedef std::vector < std::shared_ptr< IDrawable > > | SharedDrawables |
| Vector of std::shared_ptr definition type for the brotherhood, sir! | |
|
typedef std::vector < std::unique_ptr< IDrawable > > | UniqueDrawables |
| std::unique_ptr vector container type | |
| typedef const Window & | RenderTarget |
3D Rectangle shape
Definition at line 48 of file Rectangle.hpp.
| nom::Rectangle::Rectangle | ( | const Rectangle & | rect | ) |
Construct a Rectangle object using an existing Rectangle instance. (This is a typical copy constructor).
Definition at line 36 of file Rectangle.cpp.
Construct a Rectangle object using a nom::Coords (X, Y, width & height) coordinates and a chosen color.
Definition at line 42 of file Rectangle.cpp.
| nom::Rectangle::Rectangle | ( | int32 | x1, |
| int32 | y1, | ||
| int32 | width, | ||
| int32 | height, | ||
| const Color & | color | ||
| ) |
Construct a Rectangle object using a nom::Coords (X, Y, width & height) coordinates and a chosen color.
Definition at line 48 of file Rectangle.cpp.
|
virtual |
Draw a 3D four sided cube shape (rectangle) onto the the attached renderer
Implements nom::IDrawable.
Definition at line 56 of file Rectangle.cpp.
|
virtual |
Do nothing method; we have it only because it is required by interface contract with IDrawable (which is fine).
Implements nom::IDrawable.
Definition at line 54 of file Rectangle.cpp.