29 #include "nomlib/graphics/shapes/Line.hpp"
54 NOM_LOG_ERR ( NOM, SDL_GetError() );
60 NOM_LOG_ERR ( NOM,
"Could not render 3D SDL line: " + std::string (SDL_GetError()) );
uint8 & r
Reference alias for red instance variable.
virtual ~Line(void)
Lazy destructor with nothing to do. Please inherit me!
Color color
Rendering color (RGBA).
void draw(RenderTarget target) const
Draw a 3D line segment onto the the attached renderer.
uint8 & a
Reference alias for alpha instance variable.
Coords coords
X, Y signed integer rendering coordinates.
int32 & h
Reference alias for height instance variable.
uint8 & g
Reference alias for green instance variable.
SDL_RENDERER::RawPtr renderer(void) const
Get a raw pointer to the SDL_Renderer in use.
Coordinate values (x, y, z, width, height ) wrapper.
uint8 & b
Reference alias for blue instance variable.
Utility class container for RGBA colors.
int32 & w
Reference alias for width instance variable.
Line(void)
Default constructor; construct component objects with their sane defaults.