diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-06 13:16:05 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 0e40bc7ce8c3b3be083002f88c3317d65f6570ad (patch) | |
tree | 2fcc470a0f1ce1d51ff26c53c8a9a890b3f31b3b /src/engine/graphics/bounds.hpp | |
parent | f4d812a5b9131e65bb55db7211dc68fc453792df (diff) |
refactor: make vector2 & bounds data classes
Diffstat (limited to 'src/engine/graphics/bounds.hpp')
-rw-r--r-- | src/engine/graphics/bounds.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/engine/graphics/bounds.hpp b/src/engine/graphics/bounds.hpp deleted file mode 100644 index 3f4dd5b..0000000 --- a/src/engine/graphics/bounds.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include "interfaces/bounds.hpp" -#include "interfaces/vector2.hpp" - -class Bounds : public IBounds -{ -public: - explicit Bounds(const IBoundsOptions &options); - - [[nodiscard]] unsigned int width() const override; - - void width(unsigned int width) override; - - [[nodiscard]] unsigned int height() const override; - - void height(unsigned int height) override; - - [[nodiscard]] CoordsValidation validate_coords(const IVector2 &coords) const override; - - const IBounds &operator*=(const IBounds &bounds) override; - const IBounds &operator+=(const IBounds &bounds) override; - const IBounds &operator-=(const IBounds &bounds) override; - -private: - unsigned int _width = 0U; - unsigned int _height = 0U; -}; |