fix namespaces + assets

This commit is contained in:
arthur.jamet
2021-05-25 14:21:31 +02:00
75 changed files with 36276 additions and 627 deletions
+4 -4
View File
@@ -13,7 +13,7 @@
#include "Drawables/IDrawable.hpp"
#include "Color.hpp"
namespace RAY::Drawables::Drawables2D {
namespace RAY::Drawables {
//! @brief Abstraction of any two-dimensionnal drawable
class ADrawable2D: public IDrawable
{
@@ -32,10 +32,10 @@ namespace RAY::Drawables::Drawables2D {
ADrawable2D(const ADrawable2D &) = default;
//! @brief A default destructor
virtual ~ADrawable2D() = default;
~ADrawable2D() override = default;
//! @return the top-left position of the ADrawable
const Vector2 &getPosition(void) const;
const RAY::Vector2 &getPosition(void) const;
//! @return the color of the ADrawable
const RAY::Color &getColor(void) const;
@@ -50,7 +50,7 @@ namespace RAY::Drawables::Drawables2D {
ADrawable2D &setColor(const Color &color);
//! @brief Draw drawble on window
virtual void drawOn(RAY::Window &) = 0;
void drawOn(RAY::Window &) override = 0;
//! @brief Draw drawble on image
virtual void drawOn(RAY::Image &image) = 0;