restructured everything
This commit is contained in:
parent
4225a524b9
commit
c66cae17f2
61 changed files with 18406 additions and 1710 deletions
30
include/graphics/drawable/Drawable.hpp
Normal file
30
include/graphics/drawable/Drawable.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* @file Drawable.hpp
|
||||
* @brief The base class of everything renderable by RenderTarget
|
||||
* @author Lauchmelder23
|
||||
* @date 20.05.2020
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "Util.hpp"
|
||||
|
||||
struct SDL_Renderer;
|
||||
|
||||
SDLU_BEGIN
|
||||
/**
|
||||
* @brief Everything that can be rendered derives from this class.
|
||||
*/
|
||||
class Drawable
|
||||
{
|
||||
public:
|
||||
Drawable(const Drawable& other) = delete;
|
||||
Drawable(Drawable&& other) = delete;
|
||||
Drawable& operator=(const Drawable& other) = delete;
|
||||
|
||||
friend class RenderTarget;
|
||||
|
||||
protected:
|
||||
Drawable() { }
|
||||
virtual void Draw(SDL_Renderer* const target) const = 0;
|
||||
};
|
||||
SDLU_END
|
Loading…
Add table
Add a link
Reference in a new issue