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