restructured everything
This commit is contained in:
parent
4225a524b9
commit
c66cae17f2
61 changed files with 18406 additions and 1710 deletions
45
include/graphics/drawable/shapes/Shape.hpp
Normal file
45
include/graphics/drawable/shapes/Shape.hpp
Normal file
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* @file Shape.hpp
|
||||
* @brief The base class for all native SDLU shapes
|
||||
* @author Lauchmelder23
|
||||
* @date 23.05.2020
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "graphics/drawable/Drawable.hpp"
|
||||
#include "graphics/drawable/Transformable.hpp"
|
||||
#include "structures/Color.hpp"
|
||||
|
||||
SDLU_BEGIN
|
||||
/**
|
||||
* @brief The non-instantiable base class for all SDLU shapes
|
||||
*/
|
||||
class Shape :
|
||||
public Drawable, public Transformable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief Deconstructor
|
||||
*/
|
||||
virtual ~Shape();
|
||||
|
||||
/**
|
||||
* @brief Sets the color of the shape
|
||||
*/
|
||||
void SetColor(const Color& color);
|
||||
|
||||
/**
|
||||
* @brief Gets the color of the shape
|
||||
*/
|
||||
Color GetColor();
|
||||
|
||||
protected:
|
||||
/**
|
||||
* @brief Default constructor
|
||||
*/
|
||||
Shape();
|
||||
|
||||
protected:
|
||||
Color color;
|
||||
};
|
||||
SDLU_END
|
Loading…
Add table
Add a link
Reference in a new issue