29#ifndef NOMLIB_GRAPHICS_SHAPES_RECTANGLE_HPP
30#define NOMLIB_GRAPHICS_SHAPES_RECTANGLE_HPP
32#include "nomlib/config.hpp"
33#include "nomlib/math/Color4.hpp"
34#include "nomlib/math/Rect.hpp"
35#include "nomlib/graphics/shapes/Shape.hpp"
36#include "nomlib/system/SDL_helpers.hpp"
52 typedef Shape derived_type;
64 Rectangle(
const IntRect& rect,
const Color4i& fill);
89 void draw(RenderTarget& target)
const override;
Run-time type information (RTTI) container class.
Texture * texture() const
Get a texture representation of the rectangle.
ObjectTypeInfo type() const override
Re-implements the IObject::type method.
virtual ~Rectangle()
Destructor; should be fine to inherit from.
Rectangle(const IntRect &rect, const Color4i &fill)
Construct a Rectangle object from parameters.
Rectangle()
Default constructor.
void draw(RenderTarget &target) const override
Render the rectangle shape.
virtual Shape * clone() const override
Shape(const Shape ©)
Copy constructor.