- nom
- Line
#include <Line.hpp>
Public Member Functions | |
| Line (void) | |
| Default constructor; construct component objects with their sane defaults. | |
| virtual | ~Line (void) |
| Lazy destructor with nothing to do. Please inherit me! | |
| Line (const Coords &coords, const Color &color) | |
| Line (int32 x, int32 y, int32 width, int32 height, const Color &color) | |
| void | update (void) |
| void | draw (RenderTarget target) const |
| Draw a 3D line segment onto the the attached renderer. | |
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 Line segment shape
Construct a Line object using a nom::Coords (X, Y, width & height) coordinates and a chosen color.
| nom::Line::Line | ( | int32 | x, |
| int32 | y, | ||
| int32 | width, | ||
| int32 | height, | ||
| const Color & | color | ||
| ) |
|
virtual |
Do nothing method; we have it only because it is required by interface contract with IDrawable (which is fine).
Implements nom::IDrawable.