SDL Utility
Shape.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
11 #include "structures/Color.hpp"
12 
17 class Shape :
18  public Drawable, public Transformable
19 {
20 public:
24  virtual ~Shape();
25 
29  void SetColor(const Color& color);
30 
35 
36 protected:
40  Shape();
41 
42 protected:
44 };
45 SDLU_END
Provides utility for creating and handling colors.
The base class of everything renderable by RenderTarget.
Contains information for transformable objects.
#define SDLU_BEGIN
Definition: Util.hpp:32
Everything that can be rendered derives from this class.
Definition: Drawable.hpp:18
The non-instantiable base class for all SDLU shapes.
Definition: Shape.hpp:19
Color GetColor()
Gets the color of the shape.
void SetColor(const Color &color)
Sets the color of the shape.
Shape()
Default constructor.
virtual ~Shape()
Deconstructor.
Color color
Definition: Shape.hpp:43
A class that stores locational information.
Definition: Transformable.hpp:21
A structure holding color data.
Definition: Color.hpp:20