Base class for all shapes. More...
#include <shapes.h>
Public Member Functions | |
virtual void | Draw () const =0 |
Draw the shape on the screen. | |
Public Attributes | |
Axle::Color | color |
The color of the shape. | |
Axle::Math::Vector2 | position |
The position of the center of the shape. | |
Protected Member Functions | |
Shape () | |
Construct a new Shape object. | |
Base class for all shapes.
This class is used to represent a shape that can be drawn on the screen. It should not be instantiated directly, but rather be used as a base class for other shapes.
|
protected |
|
pure virtual |
Draw the shape on the screen.
Implemented in Axle::Rectangle.